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

Function tree

deps/npm/test/lib/utils/strict-allow-scripts-preflight.js:23–25  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

21})
22
23const tree = (nodes) => ({
24 inventory: new Map(nodes.map((n, i) => [`node_modules/${n.name}-${i}`, n])),
25})
26
27const makeArb = ({ ideal, actual, allowScripts = null } = {}) => {
28 const arb = {

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected