From 6df061ec2a52882693ed86a3524ac6af0f88acd8 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Tue, 22 Mar 2022 09:40:44 -0700 Subject: [PATCH] deps: npm-registry-fetch@13.1.0 --- node_modules/npm-registry-fetch/lib/index.js | 4 +-- node_modules/npm-registry-fetch/package.json | 31 ++++++++++++-------- package-lock.json | 23 ++++++++------- package.json | 2 +- 4 files changed, 33 insertions(+), 27 deletions(-) diff --git a/node_modules/npm-registry-fetch/lib/index.js b/node_modules/npm-registry-fetch/lib/index.js index a0fc280a933e5..6c834aa4af5ef 100644 --- a/node_modules/npm-registry-fetch/lib/index.js +++ b/node_modules/npm-registry-fetch/lib/index.js @@ -104,11 +104,11 @@ function regFetch (uri, /* istanbul ignore next */ opts_ = {}) { opts.preferOnline = true } - const doFetch = async body => { + const doFetch = async fetchBody => { const p = fetch(uri, { agent: opts.agent, algorithms: opts.algorithms, - body, + body: fetchBody, cache: getCacheMode(opts), cachePath: opts.cache, ca: opts.ca, diff --git a/node_modules/npm-registry-fetch/package.json b/node_modules/npm-registry-fetch/package.json index d0a8bbaaa950d..9e15f627cd5a7 100644 --- a/node_modules/npm-registry-fetch/package.json +++ b/node_modules/npm-registry-fetch/package.json @@ -1,15 +1,15 @@ { "name": "npm-registry-fetch", - "version": "13.0.1", + "version": "13.1.0", "description": "Fetch-based http client for use with npm registry APIs", "main": "lib", "files": [ - "bin", - "lib" + "bin/", + "lib/" ], "scripts": { "eslint": "eslint", - "lint": "eslint '**/*.js'", + "lint": "eslint \"**/*.js\"", "lintfix": "npm run lint -- --fix", "prepublishOnly": "git push origin --follow-tags", "preversion": "npm test", @@ -18,11 +18,14 @@ "posttest": "npm run lint", "npmclilint": "npmcli-lint", "postsnap": "npm run lintfix --", - "postlint": "npm-template-check", + "postlint": "template-oss-check", "snap": "tap", - "template-copy": "npm-template-copy --force" + "template-oss-apply": "template-oss-apply --force" + }, + "repository": { + "type": "git", + "url": "https://github.com/npm/npm-registry-fetch.git" }, - "repository": "https://github.com/npm/npm-registry-fetch", "keywords": [ "npm", "registry", @@ -31,17 +34,18 @@ "author": "GitHub Inc.", "license": "ISC", "dependencies": { - "make-fetch-happen": "^10.0.4", + "make-fetch-happen": "^10.0.6", "minipass": "^3.1.6", - "minipass-fetch": "^2.0.2", + "minipass-fetch": "^2.0.3", "minipass-json-stream": "^1.0.1", "minizlib": "^2.1.2", "npm-package-arg": "^9.0.1", "proc-log": "^2.0.0" }, "devDependencies": { - "@npmcli/template-oss": "^2.9.2", - "cacache": "^16.0.1", + "@npmcli/eslint-config": "^3.0.1", + "@npmcli/template-oss": "3.1.2", + "cacache": "^16.0.2", "nock": "^13.2.4", "require-inject": "^1.4.4", "ssri": "^8.0.1", @@ -52,9 +56,10 @@ "test-ignore": "test[\\\\/](util|cache)[\\\\/]" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" }, "templateOSS": { - "version": "2.9.2" + "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", + "version": "3.1.2" } } diff --git a/package-lock.json b/package-lock.json index 8ddda236b78f4..1ad108e00ccb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -137,7 +137,7 @@ "npm-package-arg": "^9.0.1", "npm-pick-manifest": "^7.0.0", "npm-profile": "^6.0.2", - "npm-registry-fetch": "github:npm/npm-registry-fetch#lk/redact-token", + "npm-registry-fetch": "^13.1.0", "npm-user-validate": "^1.0.1", "npmlog": "^6.0.1", "opener": "^1.5.2", @@ -5439,21 +5439,21 @@ } }, "node_modules/npm-registry-fetch": { - "version": "13.0.1", - "resolved": "git+ssh://git@github.com/npm/npm-registry-fetch.git#4aa555f7bd5452a9e53c6403e0c22573a636c386", + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.1.0.tgz", + "integrity": "sha512-TIYL5X8CcwDhbFMXFDShNcpG6OMCYK6VzvSr6MUWP20tCU2DJ4ao2qQg3DT+3Pet8mO6/cgbZpon4LMh3duYLg==", "inBundle": true, - "license": "ISC", "dependencies": { - "make-fetch-happen": "^10.0.4", + "make-fetch-happen": "^10.0.6", "minipass": "^3.1.6", - "minipass-fetch": "^2.0.2", + "minipass-fetch": "^2.0.3", "minipass-json-stream": "^1.0.1", "minizlib": "^2.1.2", "npm-package-arg": "^9.0.1", "proc-log": "^2.0.0" }, "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, "node_modules/npm-user-validate": { @@ -14908,12 +14908,13 @@ } }, "npm-registry-fetch": { - "version": "git+ssh://git@github.com/npm/npm-registry-fetch.git#4aa555f7bd5452a9e53c6403e0c22573a636c386", - "from": "npm-registry-fetch@github:npm/npm-registry-fetch#lk/redact-token", + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-13.1.0.tgz", + "integrity": "sha512-TIYL5X8CcwDhbFMXFDShNcpG6OMCYK6VzvSr6MUWP20tCU2DJ4ao2qQg3DT+3Pet8mO6/cgbZpon4LMh3duYLg==", "requires": { - "make-fetch-happen": "^10.0.4", + "make-fetch-happen": "^10.0.6", "minipass": "^3.1.6", - "minipass-fetch": "^2.0.2", + "minipass-fetch": "^2.0.3", "minipass-json-stream": "^1.0.1", "minizlib": "^2.1.2", "npm-package-arg": "^9.0.1", diff --git a/package.json b/package.json index d20378513f6db..3b2ca7670d8bf 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "npm-package-arg": "^9.0.1", "npm-pick-manifest": "^7.0.0", "npm-profile": "^6.0.2", - "npm-registry-fetch": "github:npm/npm-registry-fetch#lk/redact-token", + "npm-registry-fetch": "^13.1.0", "npm-user-validate": "^1.0.1", "npmlog": "^6.0.1", "opener": "^1.5.2",