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

Function redactModuleInfo

test/javascript/module-test.ts:130–135  ·  view source on GitHub ↗
(root: string, path: string)

Source from the content-addressed store, hash-verified

128});
129
130function redactModuleInfo(root: string, path: string): Omit<ModuleInfo, "mtimeMs"> | undefined {
131 const info = getModuleInfo(root, path);
132 if (!info) return;
133 const {mtimeMs, ...rest} = info;
134 return rest;
135}
136
137function redactFileInfo(root: string, path: string): Omit<FileInfo, "mtimeMs"> | undefined {
138 const info = getFileInfo(root, path);

Callers 1

module-test.tsFile · 0.85

Calls 1

getModuleInfoFunction · 0.85

Tested by

no test coverage detected