avancement planning

This commit is contained in:
2026-05-26 11:58:39 +02:00
parent 619a2b240a
commit 150b97cd2e
4892 changed files with 99214 additions and 429382 deletions
+5 -3
View File
@@ -1,8 +1,9 @@
const { Minipass } = require('minipass')
const fetch = require('minipass-fetch')
const promiseRetry = require('promise-retry')
const { promiseRetry } = require('@gar/promise-retry')
const ssri = require('ssri')
const { log } = require('proc-log')
const { redact: cleanUrl } = require('@npmcli/redact')
const CachingMinipassPipeline = require('./pipeline.js')
const { getAgent } = require('@npmcli/agent')
@@ -55,6 +56,7 @@ const remoteFetch = (request, options) => {
return promiseRetry(async (retryHandler, attemptNum) => {
const req = new fetch.Request(request, _opts)
const url = cleanUrl(req.url)
try {
let res = await fetch(req, _opts)
if (_opts.integrity && res.status === 200) {
@@ -92,7 +94,7 @@ const remoteFetch = (request, options) => {
}
/* eslint-disable-next-line max-len */
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${res.status}`)
log.http('fetch', `${req.method} ${url} attempt ${attemptNum} failed with ${res.status}`)
return retryHandler(res)
}
@@ -116,7 +118,7 @@ const remoteFetch = (request, options) => {
options.onRetry(err)
}
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${err.code}`)
log.http('fetch', `${req.method} ${url} attempt ${attemptNum} failed with ${err.code}`)
return retryHandler(err)
}
}, options.retry).catch((err) => {
+11 -10
View File
@@ -1,6 +1,6 @@
{
"name": "make-fetch-happen",
"version": "14.0.3",
"version": "15.0.5",
"description": "Opinionated, caching, retrying fetch client",
"main": "lib/index.js",
"files": [
@@ -33,28 +33,29 @@
"author": "GitHub Inc.",
"license": "ISC",
"dependencies": {
"@npmcli/agent": "^3.0.0",
"cacache": "^19.0.1",
"@gar/promise-retry": "^1.0.0",
"@npmcli/agent": "^4.0.0",
"@npmcli/redact": "^4.0.0",
"cacache": "^20.0.1",
"http-cache-semantics": "^4.1.1",
"minipass": "^7.0.2",
"minipass-fetch": "^4.0.0",
"minipass-fetch": "^5.0.0",
"minipass-flush": "^1.0.5",
"minipass-pipeline": "^1.2.4",
"negotiator": "^1.0.0",
"proc-log": "^5.0.0",
"promise-retry": "^2.0.1",
"ssri": "^12.0.0"
"proc-log": "^6.0.0",
"ssri": "^13.0.0"
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.4",
"@npmcli/template-oss": "4.25.0",
"nock": "^13.2.4",
"safe-buffer": "^5.2.1",
"standard-version": "^9.3.2",
"tap": "^16.0.0"
},
"engines": {
"node": "^18.17.0 || >=20.5.0"
"node": "^20.17.0 || >=22.9.0"
},
"tap": {
"color": 1,
@@ -68,7 +69,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.23.4",
"version": "4.25.0",
"publish": "true"
}
}