Skip to content

Commit 432efb5

Browse files
committed
deps: make-fetch-happen@13.0.1
1 parent 2558283 commit 432efb5

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

DEPENDENCIES.md

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ graph LR;
8181
make-fetch-happen-->cacache;
8282
make-fetch-happen-->minipass-fetch;
8383
make-fetch-happen-->npmcli-agent["@npmcli/agent"];
84+
make-fetch-happen-->proc-log;
8485
make-fetch-happen-->ssri;
8586
nopt-->abbrev;
8687
normalize-package-data-->hosted-git-info;
@@ -427,6 +428,7 @@ graph LR;
427428
make-fetch-happen-->minipass;
428429
make-fetch-happen-->negotiator;
429430
make-fetch-happen-->npmcli-agent["@npmcli/agent"];
431+
make-fetch-happen-->proc-log;
430432
make-fetch-happen-->promise-retry;
431433
make-fetch-happen-->ssri;
432434
minimatch-->brace-expansion;

node_modules/make-fetch-happen/lib/cache/entry.js

+2
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ class CacheEntry {
274274
const cacheWritePromise = new Promise((resolve, reject) => {
275275
cacheWriteResolve = resolve
276276
cacheWriteReject = reject
277+
}).catch((err) => {
278+
body.emit('error', err)
277279
})
278280

279281
body = new CachingMinipassPipeline({ events: ['integrity', 'size'] }, new MinipassFlush({

node_modules/make-fetch-happen/lib/remote.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { Minipass } = require('minipass')
22
const fetch = require('minipass-fetch')
33
const promiseRetry = require('promise-retry')
44
const ssri = require('ssri')
5+
const { log } = require('proc-log')
56

67
const CachingMinipassPipeline = require('./pipeline.js')
78
const { getAgent } = require('@npmcli/agent')
@@ -89,6 +90,8 @@ const remoteFetch = (request, options) => {
8990
options.onRetry(res)
9091
}
9192

93+
/* eslint-disable-next-line max-len */
94+
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${res.status}`)
9295
return retryHandler(res)
9396
}
9497

@@ -112,6 +115,7 @@ const remoteFetch = (request, options) => {
112115
options.onRetry(err)
113116
}
114117

118+
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${err.code}`)
115119
return retryHandler(err)
116120
}
117121
}, options.retry).catch((err) => {

node_modules/make-fetch-happen/package.json

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "make-fetch-happen",
3-
"version": "13.0.0",
3+
"version": "13.0.1",
44
"description": "Opinionated, caching, retrying fetch client",
55
"main": "lib/index.js",
66
"files": [
@@ -11,7 +11,7 @@
1111
"test": "tap",
1212
"posttest": "npm run lint",
1313
"eslint": "eslint",
14-
"lint": "eslint \"**/*.js\"",
14+
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
1515
"lintfix": "npm run lint -- --fix",
1616
"postlint": "template-oss-check",
1717
"snap": "tap",
@@ -42,12 +42,13 @@
4242
"minipass-flush": "^1.0.5",
4343
"minipass-pipeline": "^1.2.4",
4444
"negotiator": "^0.6.3",
45+
"proc-log": "^4.2.0",
4546
"promise-retry": "^2.0.1",
4647
"ssri": "^10.0.0"
4748
},
4849
"devDependencies": {
4950
"@npmcli/eslint-config": "^4.0.0",
50-
"@npmcli/template-oss": "4.18.0",
51+
"@npmcli/template-oss": "4.21.4",
5152
"nock": "^13.2.4",
5253
"safe-buffer": "^5.2.1",
5354
"standard-version": "^9.3.2",
@@ -68,13 +69,7 @@
6869
},
6970
"templateOSS": {
7071
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
71-
"ciVersions": [
72-
"16.14.0",
73-
"16.x",
74-
"18.0.0",
75-
"18.x"
76-
],
77-
"version": "4.18.0",
72+
"version": "4.21.4",
7873
"publish": "true"
7974
}
8075
}

package-lock.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"libnpmsearch": "^7.0.0",
123123
"libnpmteam": "^6.0.0",
124124
"libnpmversion": "^6.0.0",
125-
"make-fetch-happen": "^13.0.0",
125+
"make-fetch-happen": "^13.0.1",
126126
"minimatch": "^9.0.4",
127127
"minipass": "^7.0.4",
128128
"minipass-pipeline": "^1.2.4",
@@ -7483,9 +7483,9 @@
74837483
}
74847484
},
74857485
"node_modules/make-fetch-happen": {
7486-
"version": "13.0.0",
7487-
"resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-13.0.0.tgz",
7488-
"integrity": "sha512-7ThobcL8brtGo9CavByQrQi+23aIfgYU++wg4B87AIS8Rb2ZBt/MEaDqzA00Xwv/jUjAjYkLHjVolYuTLKda2A==",
7486+
"version": "13.0.1",
7487+
"resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-13.0.1.tgz",
7488+
"integrity": "sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA==",
74897489
"inBundle": true,
74907490
"dependencies": {
74917491
"@npmcli/agent": "^2.0.0",
@@ -7497,6 +7497,7 @@
74977497
"minipass-flush": "^1.0.5",
74987498
"minipass-pipeline": "^1.2.4",
74997499
"negotiator": "^0.6.3",
7500+
"proc-log": "^4.2.0",
75007501
"promise-retry": "^2.0.1",
75017502
"ssri": "^10.0.0"
75027503
},

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"libnpmsearch": "^7.0.0",
8888
"libnpmteam": "^6.0.0",
8989
"libnpmversion": "^6.0.0",
90-
"make-fetch-happen": "^13.0.0",
90+
"make-fetch-happen": "^13.0.1",
9191
"minimatch": "^9.0.4",
9292
"minipass": "^7.0.4",
9393
"minipass-pipeline": "^1.2.4",

0 commit comments

Comments
 (0)