MCPcopy Create free account
hub / github.com/nodejs/node / getPackageJsonInfo

Function getPackageJsonInfo

test/fixtures/snapshot/typescript.js:42803–42805  ·  view source on GitHub ↗
(packageJsonPath)

Source from the content-addressed store, hash-verified

42801 var cache;
42802 return { getPackageJsonInfo: getPackageJsonInfo, setPackageJsonInfo: setPackageJsonInfo, clear: clear, entries: entries };
42803 function getPackageJsonInfo(packageJsonPath) {
42804 return cache === null || cache === void 0 ? void 0 : cache.get(ts.toPath(packageJsonPath, currentDirectory, getCanonicalFileName));
42805 }
42806 function setPackageJsonInfo(packageJsonPath, info) {
42807 (cache || (cache = new ts.Map())).set(ts.toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);
42808 }

Calls 4

traceFunction · 0.85
getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected