mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
fix(javascript): hash Electron call paths from canonical values
This commit is contained in:
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");
|
||||
Reference in new issue
Block a user