fix(javascript): hash Electron call paths from canonical values

This commit is contained in:
morluto committed 2026-11-09 14:58:24 +08:00
1 parent 84f3401dcf
commit 2c6f981667
3 files changed
+5 -10

No files matched your search

@@ -1,8 +1,8 @@
import type { ElectronCallPath } from "../../domain/javascript/electronStaticAnalysisTypes.js";
import { sha256Text } from "../../domain/javascript/javascriptStaticAnalysisHelpers.js";
import { digestCanonicalValue } from "../../domain/canonicalDigest.js";
/** Keep wrapper-path identity source-scoped across both graph projections. */
export const electronCallPathId = (
filePath: string,
path: ElectronCallPath,
): string => sha256Text(JSON.stringify([filePath, path]));
): string => digestCanonicalValue([filePath, path], "Electron call path");