Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-registry-client

Package Overview
Dependencies
Maintainers
2
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-registry-client - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

13

lib/initialize.js

@@ -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

4

package.json

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc