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

Function matchFileOrDir

workspaces/arborist/lib/script-allowed.js:330–333  ·  view source on GitHub ↗
(node, parsed)

Source from the content-addressed store, hash-verified

328}
329
330const matchFileOrDir = (node, parsed) => {
331 return resolvedSourceSpecs(node)
332 .some(resolved => resolved === parsed.saveSpec || resolved === parsed.fetchSpec)
333}
334
335const matchRemote = (node, parsed) => {
336 return resolvedSourceSpecs(node)

Callers 1

matchesFunction · 0.85

Calls 1

resolvedSourceSpecsFunction · 0.85

Tested by

no test coverage detected