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.4.7 to 0.4.8

11

lib/request.js

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

2

package.json

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

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