summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/pacote/lib/fetchers/registry/pick-registry.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/pacote/lib/fetchers/registry/pick-registry.js')
-rw-r--r--deps/npm/node_modules/pacote/lib/fetchers/registry/pick-registry.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/deps/npm/node_modules/pacote/lib/fetchers/registry/pick-registry.js b/deps/npm/node_modules/pacote/lib/fetchers/registry/pick-registry.js
deleted file mode 100644
index f326950da4..0000000000
--- a/deps/npm/node_modules/pacote/lib/fetchers/registry/pick-registry.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict'
-
-module.exports = pickRegistry
-function pickRegistry (spec, opts) {
- let registry = spec.scope && opts.scopeTargets[spec.scope]
-
- if (!registry && opts.scope) {
- const prefix = opts.scope[0] === '@' ? '' : '@'
- registry = opts.scopeTargets[prefix + opts.scope]
- }
-
- if (!registry) {
- registry = opts.registry
- }
-
- return registry
-}