MCPcopy Create free account
hub / github.com/arktypeio/arktype / appendSourceMap

Function appendSourceMap

ark/aot/host.ts:450–456  ·  view source on GitHub ↗
(
	code: string,
	map: object | undefined
)

Source from the content-addressed store, hash-verified

448
449// a host without a channel for source maps reads one from the code
450export const appendSourceMap = (
451 code: string,
452 map: object | undefined
453): string =>
454 map ?
455 `${code}\n//# sourceMappingURL=data:application/json;base64,${Buffer.from(JSON.stringify(map)).toString("base64")}`
456 : code
457
458export const runtimeSpecifiers = [
459 "arktype",

Callers 6

keyedModuleOfFunction · 0.90
loadEsbuildModulesFunction · 0.90
registerFunction · 0.90
precompileFunction · 0.90
readAndWriteFunction · 0.90
writeOutputsFunction · 0.90

Calls 2

toStringMethod · 0.65
fromMethod · 0.65

Tested by

no test coverage detected