MCPcopy Create free account
hub / github.com/AnkRoot/Augment-BYOK / insertBeforeSourceMappingURL

Function insertBeforeSourceMappingURL

tools/lib/patch.js:123–127  ·  view source on GitHub ↗
(src, injection)

Source from the content-addressed store, hash-verified

121}
122
123function insertBeforeSourceMappingURL(src, injection) {
124 const idx = src.lastIndexOf("\n//# sourceMappingURL=");
125 if (idx < 0) return src + injection;
126 return src.slice(0, idx) + injection + src.slice(idx);
127}
128
129function findExportedFactoryVar(src, exportName) {
130 const name = String(exportName || "").trim();

Callers 1

patchExtensionEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected