mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
fix(evidence): separate source and presentation identity
This commit is contained in:
1 parent
3e8923c6eb
commit
2f27d3ac92
17 files changed
+214
-48
No files matched your search
@@ -24,7 +24,10 @@ import {
|
||||
il2cppMetadataTypeSchema,
|
||||
} from "../il2cpp/il2cppMetadata.js";
|
||||
import { err, ok, type Result } from "../result.js";
|
||||
import { createAnalysisViewResultReader } from "./analysisViewParent.js";
|
||||
import {
|
||||
analysisViewSourceSubject,
|
||||
createAnalysisViewResultReader,
|
||||
} from "./analysisViewParent.js";
|
||||
import type {
|
||||
AnalysisViewParent,
|
||||
AnalysisViewRequest,
|
||||
@@ -535,11 +538,12 @@ export const projectIl2cppMetadataView = (
|
||||
const parsed = parseMetadataReport(parent);
|
||||
if (!parsed.ok) return parsed;
|
||||
const { report, counts } = parsed.value;
|
||||
const sourceSubject = analysisViewSourceSubject(parent);
|
||||
if (
|
||||
parent.subject != null &&
|
||||
(parent.subject.format !== "file" ||
|
||||
parent.subject.local_path !== report.artifact.path ||
|
||||
parent.subject.digest.sha256 !== report.artifact.sha256)
|
||||
sourceSubject != null &&
|
||||
(sourceSubject.format !== "file" ||
|
||||
sourceSubject.local_path !== report.artifact.path ||
|
||||
sourceSubject.digest.sha256 !== report.artifact.sha256)
|
||||
)
|
||||
return err(
|
||||
analysisViewInputError([
|
||||
|
||||
Reference in new issue
Block a user