MCPcopy Create free account
hub / github.com/W4G1/multithreading / wrapStandard

Function wrapStandard

test/patch_import.test.ts:14–17  ·  view source on GitHub ↗
(argCode: string)

Source from the content-addressed store, hash-verified

12 * Logic: new URL(ARG, new URL("file:///...", import.meta.url).href).href
13 */
14const wrapStandard = (argCode: string) => {
15 const base = JSON.stringify(EXPECTED_BASE_FOR_RELATIVE);
16 return `new URL(${argCode}, new URL(${base}, import.meta.url).href).href`;
17};
18
19/**
20 * Helper 2: Root-Relative Wrapper (The Browser Fix)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected