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:
authorisaacs <i@izs.me>2014-05-15 04:06:39 +0400
committerisaacs <i@izs.me>2014-05-15 04:06:39 +0400
commit1e24837688308266c00e379cdbb8aeae85dd717f (patch)
tree8671eabfe43c24be1ebb38a1e32ae4a87c066bb6 /lib/cache.js
parent99a57f4157af76d581302fccac956eafac13c844 (diff)
addRemoteTarball: Pass data, not name/ver
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 63862ce2e..53f4c341f 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -256,7 +256,7 @@ function add (args, cb) {
switch (p.protocol) {
case "http:":
case "https:":
- return addRemoteTarball(spec, null, name, "", cb)
+ return addRemoteTarball(spec, null, { name: name }, cb)
default:
if (isGitUrl(p)) return addRemoteGit(spec, p, false, cb)