Socket
Socket
Sign inDemoInstall

npm-registry-fetch

Package Overview
Dependencies
8
Maintainers
7
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.1 to 8.0.0

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Changelog

## [8.0.0](https://github.com/npm/registry-fetch/compare/v7.0.1...v8.0.0) (2020-02-24)
### ⚠ BREAKING CHANGES
* Removes the 'opts.refer' option and the HTTP Referer
header (unless explicitly added to the 'headers' option, of course).
PR-URL: https://github.com/npm/npm-registry-fetch/pull/25
Credit: @isaacs
### Bug Fixes
* remove referer header and opts.refer ([eb8f7af](https://github.com/npm/registry-fetch/commit/eb8f7af3c102834856604c1be664b00ca0fe8ef2)), closes [#25](https://github.com/npm/registry-fetch/issues/25)
### [7.0.1](https://github.com/npm/registry-fetch/compare/v7.0.0...v7.0.1) (2020-02-24)

@@ -7,0 +22,0 @@

14

index.js

@@ -116,3 +116,2 @@ 'use strict'

proxy: opts.httpsProxy || opts.proxy,
referer: opts.refer,
retry: opts.retry ? opts.retry : {

@@ -180,8 +179,13 @@ retries: opts.fetchRetries,

'npm-in-ci': !!opts.isFromCI,
'npm-scope': opts.projectScope,
'npm-session': opts.npmSession,
'user-agent': opts.userAgent,
referer: opts.refer
'user-agent': opts.userAgent
}, opts.headers || {})
if (opts.projectScope) {
headers['npm-scope'] = opts.projectScope
}
if (opts.npmSession) {
headers['npm-session'] = opts.npmSession
}
const auth = getAuth(registry, opts)

@@ -188,0 +192,0 @@ // If a tarball is hosted on a different place than the manifest, only send

{
"name": "npm-registry-fetch",
"version": "7.0.1",
"version": "8.0.0",
"description": "Fetch-based http client for use with npm registry APIs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -504,10 +504,2 @@ # npm-registry-fetch

##### <a name="opts-refer"></a> `opts.refer`
* Type: String
* Default: null
Value to use for the `Referer` header. The npm CLI itself uses this to serialize
the npm command line using the given request.
##### <a name="opts-registry"></a> `opts.registry`

@@ -514,0 +506,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc