mirror of
https://github.com/zhigang1992/npm.git
synced 2026-06-14 17:59:15 +08:00
Return the match, not the request.
While looking for the moon, I saw only Chuang Tzu's finger.
This commit is contained in:
@@ -37,7 +37,7 @@ function remotePackages (args, index, doVersion, doTag
|
||||
, pieces = (uniqueMatch || name).split("@")
|
||||
, pkgname = pieces[0]
|
||||
, extras = []
|
||||
if (unique && !addTag && !addVer) return cb(null, [name])
|
||||
if (unique && !addTag && !addVer) return cb(null, [uniqueMatch])
|
||||
if (d[pkgname] && (addTag || addVer)) {
|
||||
if (d[pkgname].versions && addVer) {
|
||||
extras = extras.concat(Object.keys(d[pkgname].versions))
|
||||
|
||||
Reference in New Issue
Block a user