mirror of
https://github.com/morluto/rea
synced 2026-10-27 06:33:32 -04:00
fix(javascript): preserve source facts across graph projections
This commit is contained in:
@@ -379,6 +379,13 @@ export const javascriptAnalysisCoverage = (
|
||||
? completeApplicationCoverage()
|
||||
: partialApplicationCoverage([], null);
|
||||
|
||||
/** Parsed inventory identity shared by whole-file graph representations. */
|
||||
export const fileOccurrenceIdentity = (file: JavaScriptArtifactFile) => ({
|
||||
container_sha256: file.container_sha256,
|
||||
path: file.path,
|
||||
sha256: file.sha256,
|
||||
});
|
||||
|
||||
/** Stable identity for a fact scoped to one exact artifact. */
|
||||
export const artifactLocalIdentity = (
|
||||
sha256: string,
|
||||
|
||||
Reference in New Issue
Block a user