Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pass data along in addNamedTag

  • Loading branch information...
commit 463e6ec2e7f8e00bdb5fa0bbd144539a1243aa74 1 parent a37d157
@isaacs isaacs authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/cache.js
  2. +1 −1  lib/install.js
View
4 lib/cache.js
@@ -582,13 +582,13 @@ function addNameTag (name, tag, data, cb_) {
tag = npm.config.get("tag")
}
- function cb(er) {
+ function cb(er, data) {
// might be username/project
// in that case, try it as a github url.
if (er && tag.split("/").length === 2) {
return maybeGithub(tag, name, er, cb_)
}
- return cb_(er)
+ return cb_(er, data)
}
registry.get(name, function (er, data, json, response) {
View
2  lib/install.js
@@ -679,7 +679,7 @@ function targetResolver (where, context, deps) {
if (data && !data._from) data._from = what
- return cb(er, data)
+ return cb(er, data || [])
})
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.