MCPcopy Create free account
hub / github.com/Effect-TS/effect / fingerprint

Function fingerprint

packages/tools/api-diff/src/Json.ts:24–24  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

22}
23
24export const fingerprint = (value: unknown): string => createHash("sha256").update(stableJson(value)).digest("hex")
25
26export const prettyJson = (value: unknown): string => `${JSON.stringify(value, null, 2)}\n`

Callers 5

fingerprintDeclarationsFunction · 0.90
snapshotCacheKeyFunction · 0.90
changeIdFunction · 0.90
declarationHashFunction · 0.90
moduleChangesFunction · 0.90

Calls 3

stableJsonFunction · 0.85
digestMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected