@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.
@@ -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,
@@ -31,7 +31,7 @@ export async function pRetry(fn, opt = {}) {
31
31
  }
32
32
  let result;
33
33
  if (timeout) {
34
- await pTimeout(async () => await fn(attempt), {
34
+ result = await pTimeout(async () => await fn(attempt), {
35
35
  timeout,
36
36
  name: fname,
37
37
  errorData: opt.errorData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.136.0",
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": ">=14.15.0"
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, es2021 - targeting Node.js
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
@@ -141,7 +141,7 @@ export async function pRetry<T>(
141
141
  let result: any
142
142
 
143
143
  if (timeout) {
144
- await pTimeout(async () => await fn(attempt), {
144
+ result = await pTimeout(async () => await fn(attempt), {
145
145
  timeout,
146
146
  name: fname,
147
147
  errorData: opt.errorData,