mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-08 15:57:21 +00:00
push all website files
This commit is contained in:
11
website/node_modules/npm/lib/utils/is-registry.js
generated
vendored
Normal file
11
website/node_modules/npm/lib/utils/is-registry.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict'
|
||||
module.exports = isRegistry
|
||||
|
||||
function isRegistry (req) {
|
||||
if (req == null) return false
|
||||
// modern metadata
|
||||
if ('registry' in req) return req.registry
|
||||
// legacy metadata
|
||||
if (req.type === 'range' || req.type === 'version' || req.type === 'tag') return true
|
||||
return false
|
||||
}
|
Reference in New Issue
Block a user