diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-01-23 17:51:45 -0800 |
---|---|---|
committer | Julien Gilli <julien.gilli@joyent.com> | 2015-01-27 17:41:30 -0800 |
commit | 491ac6a84365e143255cd1b75717b05dadeec219 (patch) | |
tree | 2bc373b96c183a5d403fb874a41a8045280139fc /deps/npm/lib/install.js | |
parent | e67073256d847be085be7049cd1d6ebd8d86ac62 (diff) | |
download | node-491ac6a84365e143255cd1b75717b05dadeec219.tar.gz |
deps: upgrade npm to 2.3.0
PR: #9086
PR-URL: https://github.com/joyent/node/pull/9086
Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
Diffstat (limited to 'deps/npm/lib/install.js')
-rw-r--r-- | deps/npm/lib/install.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/npm/lib/install.js b/deps/npm/lib/install.js index e539307af..756d12ee3 100644 --- a/deps/npm/lib/install.js +++ b/deps/npm/lib/install.js @@ -33,11 +33,11 @@ install.completion = function (opts, cb) { // if it has a slash, then it's gotta be a folder // if it starts with https?://, then just give up, because it's a url // for now, not yet implemented. - var registry = npm.registry - mapToRegistry("-/short", npm.config, function (er, uri) { + mapToRegistry("-/short", npm.config, function (er, uri, auth) { if (er) return cb(er) - registry.get(uri, null, function (er, pkgs) { + var options = { auth : auth } + npm.registry.get(uri, options, function (er, pkgs) { if (er) return cb() if (!opts.partialWord) return cb(null, pkgs) @@ -53,7 +53,7 @@ install.completion = function (opts, cb) { mapToRegistry(pkgs[0], npm.config, function (er, uri) { if (er) return cb(er) - registry.get(uri, null, function (er, d) { + npm.registry.get(uri, options, function (er, d) { if (er) return cb() return cb(null, Object.keys(d["dist-tags"] || {}) .concat(Object.keys(d.versions || {})) |