Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2016-03-17 09:17:33 +0300
committerForrest L Norvell <forrest@npmjs.com>2016-03-18 02:35:55 +0300
commitf67ecad59e99a03e5aad8e93cd1a086ae087cb29 (patch)
treeafbc02e25fa369e7e07a7069f4381891c98cb46c /lib/cache.js
parentffa428a4eee482aa620819bc8df994a76fad7b0c (diff)
config: only send token to registry hosts
Fixes: #8380 Credit: @othiym23 Reviewed-By: @zkat
Diffstat (limited to 'lib/cache.js')
-rw-r--r--lib/cache.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js
index 057972c03..757ba6e79 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -285,7 +285,7 @@ function add (args, where, cb) {
break
case 'remote':
// get auth, if possible
- mapToRegistry(spec, npm.config, function (err, uri, auth) {
+ mapToRegistry(p.raw, npm.config, function (err, uri, auth) {
if (err) return cb(err)
addRemoteTarball(p.spec, { name: p.name }, null, auth, cb)