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

Function getFiles

src/preview.ts:489–491  ·  view source on GitHub ↗
({files, resolveFile}: Resolvers)

Source from the content-addressed store, hash-verified

487}
488
489function getFiles({files, resolveFile}: Resolvers): Map<string, string> {
490 return new Map(Array.from(files, (f) => [f, resolveFile(f)]));
491}
492
493function getTables({data}: MarkdownPage): Map<string, string> {
494 return new Map(Object.entries(data.sql ?? {}));

Callers 2

watcherFunction · 0.85
helloFunction · 0.85

Calls 2

fromMethod · 0.80
resolveFileFunction · 0.70

Tested by

no test coverage detected