summaryrefslogtreecommitdiff
path: root/deps/npm/lib/stars.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/stars.js')
-rw-r--r--deps/npm/lib/stars.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/npm/lib/stars.js b/deps/npm/lib/stars.js
index 74841f2de3..f0d2ef73ae 100644
--- a/deps/npm/lib/stars.js
+++ b/deps/npm/lib/stars.js
@@ -2,13 +2,15 @@ module.exports = stars
stars.usage = "npm stars [username]"
-var npm = require("./npm.js")
+var url = require("url")
+ , npm = require("./npm.js")
, registry = npm.registry
, log = require("npmlog")
function stars (args, cb) {
var name = args.length === 1 ? args[0] : npm.config.get("username")
- registry.stars(name, showstars)
+ , uri = url.resolve(npm.config.get("registry"), name)
+ registry.stars(uri, showstars)
function showstars (er, data) {
if (er) {