Skip to content

Commit 7798b6e

Browse files
committed
deps: @gar/promise-retry@1.0.2
1 parent 4838864 commit 7798b6e

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

node_modules/@gar/promise-retry/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function promiseRetry (fn, options = {}) {
1010
try {
1111
const result = await fn(err => {
1212
throw Object.assign(new Error('Retrying'), { code: 'EPROMISERETRY', retried: err })
13-
}, number)
13+
}, number, operation)
1414
return resolve(result)
1515
} catch (err) {
1616
if (isRetryError(err)) {

node_modules/@gar/promise-retry/package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
{
22
"name": "@gar/promise-retry",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "Retries a function that returns a promise, leveraging the power of the retry module.",
55
"main": "./lib/index.js",
66
"files": [
77
"lib"
88
],
99
"type": "commonjs",
1010
"exports": {
11-
"." : [ { "default": "./lib/index.js" }, "./lib/index.js" ]
11+
".": [
12+
{
13+
"default": "./lib/index.js",
14+
"types": "./lib/index.d.ts"
15+
},
16+
"./lib/index.js"
17+
]
1218
},
1319
"scripts": {
1420
"lint": "npx standard",
1521
"lint:fix": "npx standard --fix",
1622
"test": "node --test --experimental-test-coverage --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100",
17-
"posttest": "npm run lint"
23+
"typelint": "npx -p typescript tsc ./lib/index.d.ts",
24+
"posttest": "npm run lint",
25+
"postlint": "npm run typelint"
1826
},
1927
"bugs": {
2028
"url": "https://github.com/wraithgar/node-promise-retry/issues/"

package-lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,9 +1178,9 @@
11781178
}
11791179
},
11801180
"node_modules/@gar/promise-retry": {
1181-
"version": "1.0.0",
1182-
"resolved": "https://registry.npmjs.org/@gar/promise-retry/-/promise-retry-1.0.0.tgz",
1183-
"integrity": "sha512-KcKKfklNXm3lop072VT58NnhnZYmMJmgKps9aqRT58tRDt939lnBT0frYR052xDpX6kdQB4AU05l/P3LU7dZxg==",
1181+
"version": "1.0.2",
1182+
"resolved": "https://registry.npmjs.org/@gar/promise-retry/-/promise-retry-1.0.2.tgz",
1183+
"integrity": "sha512-Lm/ZLhDZcBECta3TmCQSngiQykFdfw+QtI1/GYMsZd4l3nG+P8WLB16XuS7WaBGLQ+9E+cOcWQsth9cayuGt8g==",
11841184
"inBundle": true,
11851185
"license": "MIT",
11861186
"dependencies": {

0 commit comments

Comments
 (0)