rekwest 5.2.6 → 5.2.8

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/transfer.js CHANGED
@@ -94,6 +94,9 @@ const transfer = async (options, overact) => {
94
94
  } else {
95
95
  interval = new Function('interval', `return Math.ceil(${retry.backoffStrategy});`)(interval);
96
96
  }
97
+ if (interval < 0) {
98
+ interval = 0;
99
+ }
97
100
  retry.attempts--;
98
101
  retry.interval = interval;
99
102
  return (0, _promises.setTimeout)(interval).then(() => overact(url, options));
package/package.json CHANGED
@@ -8,15 +8,15 @@
8
8
  "url": "https://github.com/bricss/rekwest/issues"
9
9
  },
10
10
  "devDependencies": {
11
- "@babel/cli": "^7.24.8",
12
- "@babel/core": "^7.24.9",
13
- "@babel/eslint-parser": "^7.25.0",
14
- "@babel/preset-env": "^7.25.0",
15
- "@stylistic/eslint-plugin-js": "^2.3.0",
11
+ "@babel/cli": "^7.25.9",
12
+ "@babel/core": "^7.25.9",
13
+ "@babel/eslint-parser": "^7.25.9",
14
+ "@babel/preset-env": "^7.25.9",
15
+ "@stylistic/eslint-plugin-js": "^2.9.0",
16
16
  "c8": "^10.1.2",
17
- "eslint": "^9.8.0",
18
- "eslint-config-ultra-refined": "^3.1.3",
19
- "mocha": "^10.7.0"
17
+ "eslint": "^9.13.0",
18
+ "eslint-config-ultra-refined": "^3.2.7",
19
+ "mocha": "^10.7.3"
20
20
  },
21
21
  "description": "The robust request library that humanity deserves 🌐",
22
22
  "engines": {
@@ -70,5 +70,5 @@
70
70
  "test:bail": "mocha --bail",
71
71
  "test:cover": "c8 --include=src --reporter=lcov --reporter=text npm test"
72
72
  },
73
- "version": "5.2.6"
73
+ "version": "5.2.8"
74
74
  }
package/src/transfer.mjs CHANGED
@@ -97,6 +97,10 @@ export const transfer = async (options, overact) => {
97
97
  interval = new Function('interval', `return Math.ceil(${ retry.backoffStrategy });`)(interval);
98
98
  }
99
99
 
100
+ if (interval < 0) {
101
+ interval = 0;
102
+ }
103
+
100
104
  retry.attempts--;
101
105
  retry.interval = interval;
102
106