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

Function matchRemote

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

Source from the content-addressed store, hash-verified

333}
334
335const matchRemote = (node, parsed) => {
336 return resolvedSourceSpecs(node)
337 .some(resolved => resolved === parsed.fetchSpec || resolved === parsed.saveSpec)
338}
339
340const isRegistryNode = (node) => {
341 // Prefer arborist's edge-based check when available (real Node objects).

Callers 1

matchesFunction · 0.85

Calls 1

resolvedSourceSpecsFunction · 0.85

Tested by

no test coverage detected