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

Method getModuleHash

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

Source from the content-addressed store, hash-verified

316 }
317
318 getModuleHash(path: string): string {
319 return getModuleHash(this.root, path, (p) => this.getSourceFileHash(p));
320 }
321
322 getModuleResolver(path: string, servePath?: string): (specifier: string) => Promise<string> {
323 return getModuleResolver(this.root, path, servePath, (p) => this.getSourceFileHash(p));

Callers 1

getResolversFunction · 0.80

Calls 2

getSourceFileHashMethod · 0.95
getModuleHashFunction · 0.85

Tested by

no test coverage detected