npm-registry-client
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -17,4 +17,2 @@ var crypto = require("crypto") | ||
headers : headers, | ||
proxy : uri.protocol === "https:" ? this.config.proxy.https | ||
: this.config.proxy.http, | ||
localAddress : this.config.proxy.localAddress, | ||
@@ -27,2 +25,13 @@ strictSSL : this.config.ssl.strict, | ||
// request will not pay attention to the NOPROXY environment variable if a | ||
// config value named proxy is passed in, even if it's set to null. | ||
var proxy | ||
if (uri.protocol === "https") { | ||
proxy = this.config.proxy.https | ||
} | ||
else { | ||
proxy = this.config.proxy.http | ||
} | ||
if (typeof proxy === "string") opts.proxy = proxy | ||
headers.version = this.version || pkg.version | ||
@@ -29,0 +38,0 @@ headers.accept = accept |
@@ -5,3 +5,3 @@ { | ||
"description": "Client for the npm registry", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"repository": { | ||
@@ -21,3 +21,3 @@ "url": "git://github.com/isaacs/npm-registry-client" | ||
"once": "^1.3.0", | ||
"request": "2 >=2.45.0", | ||
"request": "^2.47.0", | ||
"retry": "^0.6.1", | ||
@@ -24,0 +24,0 @@ "rimraf": "2", |
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
278908
3325
Updatedrequest@^2.47.0