npm-registry-client
Advanced tools
Comparing version 0.4.7 to 0.4.8
@@ -11,2 +11,3 @@ module.exports = regRequest | ||
, retry = require("retry") | ||
, crypto = require("crypto") | ||
@@ -18,2 +19,6 @@ function regRequest (method, where, what, etag, nofollow, cb_) { | ||
if (!this.sessionToken) { | ||
this.sessionToken = crypto.randomBytes(8).toString("hex") | ||
} | ||
var registry = this.conf.get('registry') | ||
@@ -148,2 +153,8 @@ if (!registry) return cb(new Error( | ||
headers['npm-session'] = this.sessionToken | ||
if (this.refer) { | ||
headers.referer = this.refer | ||
} | ||
headers.accept = "application/json" | ||
@@ -150,0 +161,0 @@ headers['accept-encoding'] = 'gzip' |
@@ -5,3 +5,3 @@ { | ||
"description": "Client for the npm registry", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/isaacs/npm-registry-client" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75622
1272