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:
Diffstat (limited to 'node_modules/npm-registry-client/lib/star.js')
-rw-r--r--node_modules/npm-registry-client/lib/star.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/npm-registry-client/lib/star.js b/node_modules/npm-registry-client/lib/star.js
index 23fbd9169..c0590f1e2 100644
--- a/node_modules/npm-registry-client/lib/star.js
+++ b/node_modules/npm-registry-client/lib/star.js
@@ -1,11 +1,11 @@
module.exports = star
-function star (package, starred, cb) {
+function star (uri, starred, cb) {
if (!this.conf.get('username')) return cb(new Error(
"Must be logged in to star/unstar packages"))
- this.request("GET", package + '?write=true', function (er, fullData) {
+ this.request("GET", uri+"?write=true", null, function (er, fullData) {
if (er) return cb(er)
fullData = { _id: fullData._id
@@ -22,6 +22,6 @@ function star (package, starred, cb) {
this.log.verbose("unstarring", fullData)
}
- return this.request("PUT", package, fullData, cb)
+ return this.request("PUT", uri, { body : fullData }, cb)
}.bind(this))
}