diff options
author | isaacs <i@izs.me> | 2014-05-13 05:12:26 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-05-13 05:12:26 +0400 |
commit | f841257ca4072213a084344a86f705912c79601a (patch) | |
tree | 9335d3412b07c08b8ab68d15f56a03a8f08854e5 | |
parent | 23c91de3d95ceb003fc336373a574baabdff65e6 (diff) |
npm-registry-client@0.4.9
-rw-r--r-- | node_modules/npm-registry-client/lib/request.js | 4 | ||||
-rw-r--r-- | node_modules/npm-registry-client/package.json | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/node_modules/npm-registry-client/lib/request.js b/node_modules/npm-registry-client/lib/request.js index 72401e60e..c7a5088dc 100644 --- a/node_modules/npm-registry-client/lib/request.js +++ b/node_modules/npm-registry-client/lib/request.js @@ -9,6 +9,7 @@ var url = require("url") , request = require("request") , retry = require("retry") , crypto = require("crypto") + , pkg = require("../package.json") function regRequest (method, where, what, etag, nofollow, cb_) { if (typeof cb_ !== "function") cb_ = nofollow, nofollow = false @@ -79,7 +80,7 @@ function regRequest (method, where, what, etag, nofollow, cb_) { if (authRequired && !auth) { return cb(new Error( - "Cannot insert data into the registry without auth")) + "This request requires auth credentials. Run `npm login` and repeat the request.")) } if (auth && authRequired) { @@ -149,6 +150,7 @@ function makeRequest (method, remote, where, what, etag, nofollow, cb_) { } headers['npm-session'] = this.sessionToken + headers.version = this.version || pkg.version if (this.refer) { headers.referer = this.refer diff --git a/node_modules/npm-registry-client/package.json b/node_modules/npm-registry-client/package.json index f7e876eaa..aa4d8466e 100644 --- a/node_modules/npm-registry-client/package.json +++ b/node_modules/npm-registry-client/package.json @@ -6,7 +6,7 @@ }, "name": "npm-registry-client", "description": "Client for the npm registry", - "version": "0.4.8", + "version": "0.4.9", "repository": { "url": "git://github.com/isaacs/npm-registry-client" }, @@ -38,7 +38,7 @@ "url": "https://github.com/isaacs/npm-registry-client/issues" }, "homepage": "https://github.com/isaacs/npm-registry-client", - "_id": "npm-registry-client@0.4.8", - "_shasum": "a6685a161033101be6064b7af887ab440e8695d0", - "_from": "npm-registry-client@~0.4.7" + "_id": "npm-registry-client@0.4.9", + "_shasum": "304d3d4726a58e33d8cc965afdc9ed70b996580c", + "_from": "npm-registry-client@latest" } |