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

Function isSingleVersionPin

deps/npm/lib/utils/allow-scripts-writer.js:98–105  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

96}
97
98const isSingleVersionPin = (key) => {
99 try {
100 const parsed = npa(key)
101 return parsed.type === 'version'
102 } catch {
103 return false
104 }
105}
106
107// Build the warning string emitted when an existing deny entry blocks
108// an approval. Per RFC, a name-only deny ("pkg": false) is widest and

Callers 2

applyApprovalForPackageFunction · 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…