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

Function primaryResolvedSource

lib/utils/allow-scripts-writer.js:18–18  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

16// RFC's asymmetric-pin rule.
17
18const primaryResolvedSource = (node) => resolvedSourceSpecs(node)[0] || ''
19
20// Convert an arborist Node into the spec string used for a versioned policy
21// entry. Returns `null` if the node cannot be represented as a versioned key

Callers 3

versionedKeyForFunction · 0.85
nameKeyForFunction · 0.85
keyTargetsNodeFunction · 0.85

Calls 1

resolvedSourceSpecsFunction · 0.85

Tested by

no test coverage detected