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

npm-registry-fetch

Package Overview
Dependencies
Maintainers
2
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-registry-fetch - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

16

CHANGELOG.md

@@ -5,2 +5,18 @@ # Change Log

<a name="3.0.0"></a>
# [3.0.0](https://github.com/npm/registry-fetch/compare/v2.1.0...v3.0.0) (2018-04-09)
### Bug Fixes
* **api:** pacote integration-related fixes ([a29de4f](https://github.com/npm/registry-fetch/commit/a29de4f))
* **config:** stop caring about opts.config ([5856a6f](https://github.com/npm/registry-fetch/commit/5856a6f))
### BREAKING CHANGES
* **config:** opts.config is no longer supported. Pass the options down in opts itself.
<a name="2.1.0"></a>

@@ -7,0 +23,0 @@ # [2.1.0](https://github.com/npm/registry-fetch/compare/v2.0.0...v2.1.0) (2018-04-08)

10

config.js
'use strict'
const pkg = require('./package.json')
const pudding = require('figgy-pudding')
const figgyPudding = require('figgy-pudding')
const silentLog = require('./silentlog.js')

@@ -9,3 +9,3 @@

const SCOPE_REGISTRY_REGEX = /@.*:registry$/gi
const RegFetchConfig = pudding({
module.exports = figgyPudding({
'agent': {},

@@ -90,7 +90,1 @@ 'algorithms': {},

})
module.exports = config
function config (opts) {
opts = opts || {}
return RegFetchConfig(opts, opts.config)
}

8

index.js

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

const qs = require('querystring')
const silentLog = require('./silentlog.js')
const url = require('url')

@@ -17,5 +16,3 @@

function regFetch (uri, opts) {
opts = config(Object.assign({
log: silentLog
}, opts))
opts = config(opts)
const registry = (

@@ -102,5 +99,2 @@ (opts.get('spec') && pickRegistry(opts.get('spec'), opts)) ||

opts = config(opts)
if (!spec.registry) {
throw new Error(`${spec} is not a valid registry dependency spec`)
}
let registry = spec.scope &&

@@ -107,0 +101,0 @@ opts.get(spec.scope.replace(/^@?/, '@') + ':registry')

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

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

"bluebird": "^3.5.1",
"figgy-pudding": "^3.0.0",
"figgy-pudding": "^3.1.0",
"lru-cache": "^4.1.2",
"make-fetch-happen": "^3.0.0",
"make-fetch-happen": "^4.0.0",
"npm-package-arg": "^6.0.0",

@@ -41,3 +41,3 @@ "safe-buffer": "^5.1.1"

"devDependencies": {
"cacache": "^10.0.4",
"cacache": "^11.0.0",
"mkdirp": "^0.5.1",

@@ -44,0 +44,0 @@ "nock": "^9.2.3",

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