1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 11:43:17 +01:00

upgrade p-retry

This commit is contained in:
Mikael Finstad 2024-02-12 23:19:38 +08:00
parent 7309c01ca2
commit a61c83956d
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26
3 changed files with 6 additions and 8 deletions

View File

@ -78,7 +78,7 @@
"mkdirp": "^1.0.3", "mkdirp": "^1.0.3",
"mousetrap": "^1.6.5", "mousetrap": "^1.6.5",
"p-map": "^5.5.0", "p-map": "^5.5.0",
"p-retry": "^6.1.0", "p-retry": "^6.2.0",
"pify": "^5.0.0", "pify": "^5.0.0",
"pretty-bytes": "^6.0.0", "pretty-bytes": "^6.0.0",
"react": "^18.2.0", "react": "^18.2.0",

View File

@ -109,8 +109,6 @@ export async function fsOperationWithRetry(operation, { signal, retries = 10, mi
minTimeout, minTimeout,
maxTimeout, maxTimeout,
// mimic fs.rm `maxRetries` https://nodejs.org/api/fs.html#fspromisesrmpath-options // mimic fs.rm `maxRetries` https://nodejs.org/api/fs.html#fspromisesrmpath-options
// todo
// @ts-expect-error I think error in the types
shouldRetry: (err) => err instanceof Error && 'code' in err && typeof err.code === 'string' && ['EBUSY', 'EMFILE', 'ENFILE', 'EPERM'].includes(err.code), shouldRetry: (err) => err instanceof Error && 'code' in err && typeof err.code === 'string' && ['EBUSY', 'EMFILE', 'ENFILE', 'EPERM'].includes(err.code),
...opts, ...opts,
}); });

View File

@ -7198,7 +7198,7 @@ __metadata:
morgan: "npm:^1.10.0" morgan: "npm:^1.10.0"
mousetrap: "npm:^1.6.5" mousetrap: "npm:^1.6.5"
p-map: "npm:^5.5.0" p-map: "npm:^5.5.0"
p-retry: "npm:^6.1.0" p-retry: "npm:^6.2.0"
pify: "npm:^5.0.0" pify: "npm:^5.0.0"
pretty-bytes: "npm:^6.0.0" pretty-bytes: "npm:^6.0.0"
react: "npm:^18.2.0" react: "npm:^18.2.0"
@ -8228,14 +8228,14 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"p-retry@npm:^6.1.0": "p-retry@npm:^6.2.0":
version: 6.1.0 version: 6.2.0
resolution: "p-retry@npm:6.1.0" resolution: "p-retry@npm:6.2.0"
dependencies: dependencies:
"@types/retry": "npm:0.12.2" "@types/retry": "npm:0.12.2"
is-network-error: "npm:^1.0.0" is-network-error: "npm:^1.0.0"
retry: "npm:^0.13.1" retry: "npm:^0.13.1"
checksum: 5366014084c62f3a3acf5f95d0b7ad36817973e57d4a6638c3d1ad35fc710432840b1acc5b3f30b2943407b1532808a57a08cb5835199fdb02157ccc516b96e8 checksum: 1a5ac16828c96c03c354f78d643dfc7aa8f8b998e1b60e27533da2c75e5cabfb1c7f88ce312e813e09a80b056011fbb372d384132e9c92d27d052bd7c282a978
languageName: node languageName: node
linkType: hard linkType: hard