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

npm-registry-client

Package Overview
Dependencies
Maintainers
1
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 0.0.10 to 0.0.11

14

lib/request.js

@@ -117,3 +117,11 @@ module.exports = regRequest

var statusCode = response && response.statusCode
var statusRetry = !statusCode || (statusCode === 408 || statusCode >= 500)
var reauth = statusCode === 401
var timeout = statusCode === 408
var serverError = statusCode >= 500
var statusRetry = !statusCode || timeout || serverError
if (reauth && this.auth && this.token) {
this.token = null
this.couchLogin.token = null
return regRequest.call(this, method, where, what, etag, nofollow, cb_)
}
if (er && statusRetry && operation.retry(er)) {

@@ -124,4 +132,4 @@ self.log.info("retry", "will retry, error on last attempt: " + er)

cb.apply(null, arguments)
})
})
}.bind(this))
}.bind(this))
}

@@ -128,0 +136,0 @@

@@ -5,3 +5,3 @@ {

"description": "Client for the npm registry",
"version": "0.0.10",
"version": "0.0.11",
"repository": {

@@ -8,0 +8,0 @@ "url": "git://github.com/isaacs/npm-registry-client"

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