summaryrefslogtreecommitdiff
path: root/deps/npm/lib/utils/map-to-registry.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/utils/map-to-registry.js')
-rw-r--r--deps/npm/lib/utils/map-to-registry.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/npm/lib/utils/map-to-registry.js b/deps/npm/lib/utils/map-to-registry.js
index 1f9798c09f..d6e0a5b01f 100644
--- a/deps/npm/lib/utils/map-to-registry.js
+++ b/deps/npm/lib/utils/map-to-registry.js
@@ -2,6 +2,7 @@ var url = require('url')
var log = require('npmlog')
var npa = require('npm-package-arg')
+var config
module.exports = mapToRegistry
@@ -94,6 +95,8 @@ function scopeAuth (uri, registry, auth) {
} else {
log.silly('scopeAuth', uri, "doesn't share host with registry", registry)
}
+ if (!config) config = require('../npm').config
+ if (config.get('otp')) cleaned.otp = config.get('otp')
}
return cleaned