@vpmedia/simplify 1.28.0 → 1.29.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/README.md +1 -1
- package/package.json +3 -3
- package/src/util/fetchRetry.js +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @vpmedia/simplify
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/@vpmedia%2Fsimplify)
|
|
4
4
|
[](https://github.com/vpmedia/simplify/actions/workflows/ci.yml)
|
|
5
5
|
|
|
6
6
|
@vpmedia/simplify TBD
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/simplify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "@vpmedia/simplify",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@eslint/js": "^9.25.1",
|
|
24
24
|
"@jest/globals": "^29.7.0",
|
|
25
25
|
"@types/jest": "^29.5.14",
|
|
26
|
-
"eslint": "^9.
|
|
27
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
26
|
+
"eslint": "^9.27.0",
|
|
27
|
+
"eslint-plugin-jsdoc": "^50.6.17",
|
|
28
28
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
29
29
|
"globals": "^16.1.0",
|
|
30
30
|
"jest": "^29.7.0",
|
package/src/util/fetchRetry.js
CHANGED
|
@@ -50,7 +50,7 @@ export const fetchRetry = async (resource, fetchOptions, retryOptions) => {
|
|
|
50
50
|
while (retryOptions.numTries > 0) {
|
|
51
51
|
logger.info('request', { resource, fetchOptions, retryOptions });
|
|
52
52
|
const controller = new AbortController();
|
|
53
|
-
const timeoutId = setTimeout(() => controller.abort(), retryOptions.timeout);
|
|
53
|
+
const timeoutId = setTimeout(() => controller.abort('Fetch is timed out'), retryOptions.timeout);
|
|
54
54
|
fetchOptions.signal = controller.signal;
|
|
55
55
|
try {
|
|
56
56
|
const response = await fetch(resource, fetchOptions);
|