MCPcopy Create free account
hub / github.com/observablehq/framework / getOutputFileHash

Method getOutputFileHash

src/loader.ts:300–304  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

298 }
299
300 getOutputFileHash(name: string): string {
301 const info = this.getOutputInfo(name);
302 if (!info) throw new Error(`output file not found: ${name}`);
303 return createHash("sha256").update(info.hash).update(String(info.mtimeMs)).digest("hex");
304 }
305
306 getSourceInfo(name: string): FileInfo | undefined {
307 return getFileInfo(this.root, this.getSourceFilePath(name));

Callers 1

getLocalModuleHashMethod · 0.95

Calls 1

getOutputInfoMethod · 0.95

Tested by

no test coverage detected