npm-registry-fetch
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -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) |
'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) | ||
} |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34869
438
+ Addedagent-base@4.2.1(transitive)
+ Addedcacache@11.3.3(transitive)
+ Addedip@1.1.5(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedmake-fetch-happen@4.0.2(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.3.3(transitive)
+ Addedsocks-proxy-agent@4.0.2(transitive)
+ Addedssri@6.0.2(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedcacache@10.0.4(transitive)
- Removedip@1.1.9(transitive)
- Removedmake-fetch-happen@3.0.0(transitive)
- Removedmississippi@2.0.0(transitive)
- Removedsmart-buffer@1.1.15(transitive)
- Removedsocks@1.1.10(transitive)
- Removedsocks-proxy-agent@3.0.1(transitive)
- Removedssri@5.3.0(transitive)
Updatedfiggy-pudding@^3.1.0
Updatedmake-fetch-happen@^4.0.0