From ff6c5d161b52e8961e0c2ebf0467bc1382ef72d2 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 6 May 2024 15:22:01 -0700 Subject: [PATCH] deps: minipass-fetch@3.0.5 --- DEPENDENCIES.md | 4 ++-- node_modules/minipass-fetch/lib/body.js | 2 +- node_modules/minipass-fetch/lib/index.js | 2 +- node_modules/minipass-fetch/package.json | 10 +++++----- package-lock.json | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md index 222abd4bf2030..02890f43192a4 100644 --- a/DEPENDENCIES.md +++ b/DEPENDENCIES.md @@ -88,7 +88,6 @@ graph LR; normalize-package-data-->semver; npm-->abbrev; npm-->cacache; - npm-->cmd-shim; npm-->fs-minipass; npm-->hosted-git-info; npm-->ini; @@ -106,6 +105,7 @@ graph LR; npm-->libnpmteam; npm-->libnpmversion; npm-->make-fetch-happen; + npm-->minipass-fetch; npm-->nopt; npm-->normalize-package-data; npm-->npm-audit-report; @@ -470,7 +470,6 @@ graph LR; npm-->ci-info; npm-->cli-columns; npm-->cli-table3; - npm-->cmd-shim; npm-->diff; npm-->fastest-levenshtein; npm-->fs-minipass; @@ -495,6 +494,7 @@ graph LR; npm-->libnpmversion; npm-->make-fetch-happen; npm-->minimatch; + npm-->minipass-fetch; npm-->minipass-pipeline; npm-->minipass; npm-->ms; diff --git a/node_modules/minipass-fetch/lib/body.js b/node_modules/minipass-fetch/lib/body.js index 6a517a2138540..62286bd1de0d9 100644 --- a/node_modules/minipass-fetch/lib/body.js +++ b/node_modules/minipass-fetch/lib/body.js @@ -146,7 +146,7 @@ class Body { // do the pipe in the promise, because the pipe() can send too much // data through right away and upset the MP Sized object - return new Promise((resolve, reject) => { + return new Promise((resolve) => { // if the stream is some other kind of stream, then pipe through a MP // so we can collect it more easily. if (stream !== upstream) { diff --git a/node_modules/minipass-fetch/lib/index.js b/node_modules/minipass-fetch/lib/index.js index 77e82555e984f..da402161670e6 100644 --- a/node_modules/minipass-fetch/lib/index.js +++ b/node_modules/minipass-fetch/lib/index.js @@ -103,7 +103,7 @@ const fetch = async (url, opts) => { let reqTimeout = null if (request.timeout) { - req.once('socket', socket => { + req.once('socket', () => { reqTimeout = setTimeout(() => { reject(new FetchError(`network timeout at: ${ request.url}`, 'request-timeout')) diff --git a/node_modules/minipass-fetch/package.json b/node_modules/minipass-fetch/package.json index 581275ba27d4f..d491a7fba126d 100644 --- a/node_modules/minipass-fetch/package.json +++ b/node_modules/minipass-fetch/package.json @@ -1,6 +1,6 @@ { "name": "minipass-fetch", - "version": "3.0.4", + "version": "3.0.5", "description": "An implementation of window.fetch in Node.js using Minipass streams", "license": "MIT", "main": "lib/index.js", @@ -8,7 +8,7 @@ "test:tls-fixtures": "./test/fixtures/tls/setup.sh", "test": "tap", "snap": "tap", - "lint": "eslint \"**/*.js\"", + "lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"", "postlint": "template-oss-check", "lintfix": "npm run lint -- --fix", "posttest": "npm run lint", @@ -24,7 +24,7 @@ }, "devDependencies": { "@npmcli/eslint-config": "^4.0.0", - "@npmcli/template-oss": "4.18.0", + "@npmcli/template-oss": "4.22.0", "@ungap/url-search-params": "^0.2.2", "abort-controller": "^3.0.0", "abortcontroller-polyfill": "~1.7.3", @@ -45,7 +45,7 @@ }, "repository": { "type": "git", - "url": "/~https://github.com/npm/minipass-fetch.git" + "url": "git+/~https://github.com/npm/minipass-fetch.git" }, "keywords": [ "fetch", @@ -63,7 +63,7 @@ "author": "GitHub Inc.", "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.18.0", + "version": "4.22.0", "publish": "true" } } diff --git a/package-lock.json b/package-lock.json index 65b0f08a6262b..dafe35bbfdd9a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8413,9 +8413,9 @@ } }, "node_modules/minipass-fetch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.4.tgz", - "integrity": "sha512-jHAqnA728uUpIaFm7NWsCnqKT6UqZz7GcI/bDpPATuwYyKwJwW0remxSCxUlKiEty+eopHGa3oc8WxgQ1FFJqg==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.5.tgz", + "integrity": "sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg==", "inBundle": true, "dependencies": { "minipass": "^7.0.3",