everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
1 lines • 462 B
Source Map (JSON)
{"version":3,"file":"snapshot-hash.mjs","names":[],"sources":["../../src/utils/snapshot-hash.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\n\nexport function computeSnapshotHash(content: string | Uint8Array): string {\n return createHash(\"sha256\").update(content).digest(\"hex\").substring(0, 16);\n}\n"],"mappings":";;;AAEA,SAAgB,oBAAoB,SAAsC;CACxE,OAAO,WAAW,QAAQ,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,GAAG,EAAE;AAC3E"}