@vpmedia/simplify 1.30.0 → 1.31.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 +4 -4
- package/src/util/deepMerge.js +1 -0
- package/src/util/fetchRetry.js +2 -2
- package/types/util/deepMerge.d.ts.map +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.31.0",
|
|
4
4
|
"description": "@vpmedia/simplify",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@eslint/js": "^9.36.0",
|
|
24
24
|
"@vitest/coverage-v8": "^3.2.4",
|
|
25
25
|
"eslint": "^9.36.0",
|
|
26
|
-
"eslint-plugin-jsdoc": "^60.1
|
|
26
|
+
"eslint-plugin-jsdoc": "^60.7.1",
|
|
27
27
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
28
28
|
"globals": "^16.4.0",
|
|
29
29
|
"jsdom": "^27.0.0",
|
|
30
30
|
"prettier": "^3.6.2",
|
|
31
|
-
"typescript": "^5.9.
|
|
31
|
+
"typescript": "^5.9.3",
|
|
32
32
|
"vitest": "^3.2.4"
|
|
33
33
|
},
|
|
34
34
|
"browserslist": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"iOS >= 14"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@types/node": "^24.
|
|
41
|
+
"@types/node": "^24.6.2",
|
|
42
42
|
"eventemitter3": "^5.0.1"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
package/src/util/deepMerge.js
CHANGED
|
@@ -9,6 +9,7 @@ export const deepMerge = (target, source) => {
|
|
|
9
9
|
if (typeof source !== 'object' || source === null) return target;
|
|
10
10
|
|
|
11
11
|
for (const key of Object.keys(source)) {
|
|
12
|
+
if (key === '__proto__' || key === 'constructor') continue;
|
|
12
13
|
if (typeof source[key] === 'object' && source[key] !== null) {
|
|
13
14
|
if (!target[key] || typeof target[key] !== 'object') {
|
|
14
15
|
target[key] = {};
|
package/src/util/fetchRetry.js
CHANGED
|
@@ -39,8 +39,8 @@ export class FetchError extends Error {
|
|
|
39
39
|
export const fetchRetry = async (resource, fetchOptions, retryOptions) => {
|
|
40
40
|
retryOptions = retryOptions ?? {};
|
|
41
41
|
retryOptions.timeout = Math.max(retryOptions.timeout ?? 30000, 1);
|
|
42
|
-
retryOptions.delay = Math.max(retryOptions.delay ??
|
|
43
|
-
retryOptions.numTries = Math.max(retryOptions.numTries ??
|
|
42
|
+
retryOptions.delay = Math.max(retryOptions.delay ?? 1000, 1);
|
|
43
|
+
retryOptions.numTries = Math.max(retryOptions.numTries ?? 1, 1);
|
|
44
44
|
retryOptions.statusExcludes = retryOptions.statusExcludes ?? [
|
|
45
45
|
HTTP_401_UNAUTHORIZED,
|
|
46
46
|
HTTP_403_FORBIDDEN,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/util/deepMerge.js"],"names":[],"mappings":"AAMO,kCAJI,MAAM,UACN,MAAM,GACJ,MAAM,
|
|
1
|
+
{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/util/deepMerge.js"],"names":[],"mappings":"AAMO,kCAJI,MAAM,UACN,MAAM,GACJ,MAAM,CAmBlB"}
|