MCPcopy Index your code
hub / github.com/nodejs/node / constructor

Method constructor

lib/internal/modules/package_map.js:53–61  ·  view source on GitHub ↗

* @param {string} configPath * @param {object} data

(configPath, data)

Source from the content-addressed store, hash-verified

51 * @param {object} data
52 */
53 constructor(configPath, data) {
54 this.#configPath = configPath;
55 this.#baseURL = new URL('./', pathToFileURL(configPath));
56 this.#packages = new SafeMap();
57 this.#pathToKey = new SafeMap();
58 this.#pathToKeyCache = new SafeMap();
59
60 this.#parse(data);
61 }
62
63 /**
64 * @param {object} data

Callers

nothing calls this directly

Calls 2

#parseMethod · 0.95
pathToFileURLFunction · 0.50

Tested by

no test coverage detected