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

npm-registry-client

Package Overview
Dependencies
Maintainers
4
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 8.4.0 to 8.5.0

lib/authify.js~

4

lib/authify.js
module.exports = authify
function authify (authed, parsed, headers, credentials) {
if (credentials && credentials.otp) {
this.log.verbose('request', 'passing along npm otp')
headers['npm-otp'] = credentials.otp
}
if (credentials && credentials.token) {

@@ -5,0 +9,0 @@ this.log.verbose('request', 'using bearer token for auth')

13

lib/fetch.js

@@ -38,6 +38,3 @@ var assert = require('assert')

if (statusCode === 200) {
// Work around bug in node v0.10.0 where the CryptoStream
// gets stuck and never starts reading again.
res.resume()
if (process.version === 'v0.10.0') unstick(res)

@@ -66,12 +63,2 @@ req.once('error', function (er) {

function unstick (response) {
response.resume = (function (orig) {
return function () {
var ret = orig.apply(response, arguments)
if (response.socket.encrypted) response.socket.encrypted.read(0)
return ret
}
})(response.resume)
}
function makeRequest (remote, params, cb) {

@@ -78,0 +65,0 @@ var parsed = url.parse(remote)

@@ -17,3 +17,4 @@ var crypto = require('crypto')

process.env['CI'] === 'true' || process.env['TDDIUM'] ||
process.env['JENKINS_URL'] || process.env['bamboo.buildKey'])
process.env['JENKINS_URL'] || process.env['bamboo.buildKey'] ||
process.env['GO_PIPELINE_NAME'])
}

@@ -20,0 +21,0 @@

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

"description": "Client for the npm registry",
"version": "8.4.0",
"version": "8.5.0",
"repository": {

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

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