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

Method getLocalModuleHash

src/loader.ts:314–316  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

312 }
313
314 getLocalModuleHash(path: string): Promise<string> {
315 return getLocalModuleHash(this.root, path, (p) => this.getOutputFileHash(p));
316 }
317
318 getModuleHash(path: string): string {
319 return getModuleHash(this.root, path, (p) => this.getSourceFileHash(p));

Callers 1

resolveLocalImportFunction · 0.80

Calls 2

getOutputFileHashMethod · 0.95
getLocalModuleHashFunction · 0.85

Tested by

no test coverage detected