diff options
author | isaacs <i@izs.me> | 2012-08-21 15:29:03 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-21 15:29:37 -0700 |
commit | 2bcb9ab7bcd474590f109bd04c43ba8e39a90dfa (patch) | |
tree | 225e7199ccab16b9d8fad19c5001a0a4991f5f07 /deps/npm/node_modules/npm-registry-client/lib/star.js | |
parent | badbd1af27f5f3fd07862b8ee7d0810e7ae9ef56 (diff) | |
download | android-node-v8-2bcb9ab7bcd474590f109bd04c43ba8e39a90dfa.tar.gz android-node-v8-2bcb9ab7bcd474590f109bd04c43ba8e39a90dfa.tar.bz2 android-node-v8-2bcb9ab7bcd474590f109bd04c43ba8e39a90dfa.zip |
npm: Upgrade to 1.1.55
Diffstat (limited to 'deps/npm/node_modules/npm-registry-client/lib/star.js')
-rw-r--r-- | deps/npm/node_modules/npm-registry-client/lib/star.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/npm/node_modules/npm-registry-client/lib/star.js b/deps/npm/node_modules/npm-registry-client/lib/star.js index 36a66127e5..5b7ab4afe9 100644 --- a/deps/npm/node_modules/npm-registry-client/lib/star.js +++ b/deps/npm/node_modules/npm-registry-client/lib/star.js @@ -2,7 +2,7 @@ module.exports = star function star (package, starred, cb) { - if (!this.username) return cb(new Error( + if (!this.conf.get('username')) return cb(new Error( "Must be logged in to star/unstar packages")) var users = {} @@ -16,10 +16,10 @@ function star (package, starred, cb) { if (starred) { this.log.info("starring", fullData._id) - fullData.users[this.username] = true + fullData.users[this.conf.get('username')] = true this.log.verbose("starring", fullData) } else { - delete fullData.users[this.username] + delete fullData.users[this.conf.get('username')] this.log.info("unstarring", fullData._id) this.log.verbose("unstarring", fullData) } |