Updated the project.

This commit is contained in:
Batuhan Berk Başoğlu 2024-06-03 15:44:25 -04:00
parent 5dfe9f128d
commit 7919556077
1550 changed files with 17063 additions and 40183 deletions

2
my-app/node_modules/make-fetch-happen/lib/cache/entry.js generated vendored Executable file → Normal file
View file

@ -274,6 +274,8 @@ class CacheEntry {
const cacheWritePromise = new Promise((resolve, reject) => {
cacheWriteResolve = resolve
cacheWriteReject = reject
}).catch((err) => {
body.emit('error', err)
})
body = new CachingMinipassPipeline({ events: ['integrity', 'size'] }, new MinipassFlush({

0
my-app/node_modules/make-fetch-happen/lib/cache/errors.js generated vendored Executable file → Normal file
View file

0
my-app/node_modules/make-fetch-happen/lib/cache/index.js generated vendored Executable file → Normal file
View file

0
my-app/node_modules/make-fetch-happen/lib/cache/key.js generated vendored Executable file → Normal file
View file

0
my-app/node_modules/make-fetch-happen/lib/cache/policy.js generated vendored Executable file → Normal file
View file

0
my-app/node_modules/make-fetch-happen/lib/fetch.js generated vendored Executable file → Normal file
View file

0
my-app/node_modules/make-fetch-happen/lib/index.js generated vendored Executable file → Normal file
View file

0
my-app/node_modules/make-fetch-happen/lib/options.js generated vendored Executable file → Normal file
View file

0
my-app/node_modules/make-fetch-happen/lib/pipeline.js generated vendored Executable file → Normal file
View file

4
my-app/node_modules/make-fetch-happen/lib/remote.js generated vendored Executable file → Normal file
View file

@ -2,6 +2,7 @@ const { Minipass } = require('minipass')
const fetch = require('minipass-fetch')
const promiseRetry = require('promise-retry')
const ssri = require('ssri')
const { log } = require('proc-log')
const CachingMinipassPipeline = require('./pipeline.js')
const { getAgent } = require('@npmcli/agent')
@ -89,6 +90,8 @@ const remoteFetch = (request, options) => {
options.onRetry(res)
}
/* eslint-disable-next-line max-len */
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${res.status}`)
return retryHandler(res)
}
@ -112,6 +115,7 @@ const remoteFetch = (request, options) => {
options.onRetry(err)
}
log.http('fetch', `${req.method} ${req.url} attempt ${attemptNum} failed with ${err.code}`)
return retryHandler(err)
}
}, options.retry).catch((err) => {