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

Function checkAllowScripts

deps/npm/lib/utils/check-allow-scripts.js:18–25  ·  view source on GitHub ↗
({ arb, npm, tree, includeWhenIgnored = false })

Source from the content-addressed store, hash-verified

16// ignore-scripts is set, so approve/deny can show what you'd move from a
17// blanket ignore-scripts to an allowlist. Execution callers leave it false.
18const checkAllowScripts = async ({ arb, npm, tree, includeWhenIgnored = false }) =>
19 collectUnreviewedScripts({
20 tree: tree || arb.actualTree,
21 policy: arb.options?.allowScripts || null,
22 ignoreScripts: !!arb.options?.ignoreScripts,
23 dangerouslyAllowAllScripts: !!npm?.flatOptions?.dangerouslyAllowAllScripts,
24 includeWhenIgnored,
25 })
26
27module.exports = checkAllowScripts

Callers 5

execMethod · 0.85
reifyFinishFunction · 0.85
execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…