MCPcopy Create free account
hub / github.com/npm/cli / omitted

Function omitted

workspaces/arborist/test/script-allowed.js:235–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 // No resolved URL means no trusted version. A version-pinned deny must
234 // still block (fail closed); a matching allow stays refused.
235 const omitted = () => ({
236 name: 'evilpkg',
237 packageName: 'evilpkg',
238 version: '1.0.0',
239 resolved: undefined,
240 location: 'node_modules/evilpkg',
241 edgesIn: new Set([{ name: 'evilpkg', spec: '^1.0.0' }]),
242 })
243
244 // Exact-version deny: blocked.
245 t.equal(isScriptAllowed(omitted(), { 'evilpkg@1.0.0': false }), false,

Callers 1

script-allowed.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected