@naturalcycles/js-lib 14.136.0 → 14.137.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/promise/pRetry.js +1 -1
- package/dist-esm/promise/pRetry.js +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/promise/pRetry.ts +1 -1
package/dist/promise/pRetry.js
CHANGED
|
@@ -35,7 +35,7 @@ async function pRetry(fn, opt = {}) {
|
|
|
35
35
|
}
|
|
36
36
|
let result;
|
|
37
37
|
if (timeout) {
|
|
38
|
-
await (0, __1.pTimeout)(async () => await fn(attempt), {
|
|
38
|
+
result = await (0, __1.pTimeout)(async () => await fn(attempt), {
|
|
39
39
|
timeout,
|
|
40
40
|
name: fname,
|
|
41
41
|
errorData: opt.errorData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/js-lib",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.137.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky install",
|
|
6
6
|
"build-prod": "build-prod-esm-cjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"sideEffects": false,
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=18.12.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
package/readme.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# Packaging
|
|
16
16
|
|
|
17
17
|
- `engines.node >= Node.js LTS`
|
|
18
|
-
- `main: dist/index.js`: commonjs,
|
|
18
|
+
- `main: dist/index.js`: commonjs, es2022 - targeting Node.js
|
|
19
19
|
- `module: dist-esm/index.js`: esm, es2017 - targeting Browsers
|
|
20
20
|
- `types: dist/index.d.ts`: typescript types
|
|
21
21
|
- `/src` folder with source `*.ts` files included
|
package/src/promise/pRetry.ts
CHANGED