MCPcopy
hub / github.com/flightcontrolhq/superjson / apply

Function apply

src/plainer.ts:87–95  ·  view source on GitHub ↗
(identicalPaths: string[], path: string)

Source from the content-addressed store, hash-verified

85) {
86 const legacyPaths = enableLegacyPaths(version);
87 function apply(identicalPaths: string[], path: string) {
88 const object = getDeep(plain, parsePath(path, legacyPaths));
89
90 identicalPaths
91 .map(path => parsePath(path, legacyPaths))
92 .forEach(identicalObjectPath => {
93 plain = setDeep(plain, identicalObjectPath, () => object);
94 });
95 }
96
97 if (isArray(annotations)) {
98 const [root, other] = annotations;

Callers

nothing calls this directly

Calls 3

getDeepFunction · 0.85
parsePathFunction · 0.85
setDeepFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…