Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
const
tree = (nodes) => ({
24
inventory:
new
Map(nodes.map((n, i) => [`node_modules/${n.name}-${i}`, n])),
25
})
26
27
const
makeArb = ({ ideal, actual, allowScripts = null } = {}) => {
28
const
arb = {
Callers
1
strict-allow-scripts-preflight.js
File · 0.70
Calls
1
map
Method · 0.65
Tested by
no test coverage detected