@vpmedia/simplify 1.30.0 → 1.32.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/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2018 Richard Davey, Photon Storm Ltd.
4
- Copyright (c) 2022-present Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
4
+ Copyright (c) 2025-present Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of
7
7
  this software and associated documentation files (the "Software"), to deal in
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @vpmedia/simplify
2
2
 
3
- [![npm version](https://badge.fury.io/js/@vpmedia%2Fsimplify.svg?v=1.30.0)](https://badge.fury.io/js/@vpmedia%2Fsimplify)
3
+ [![npm version](https://badge.fury.io/js/@vpmedia%2Fsimplify.svg)](https://badge.fury.io/js/@vpmedia%2Fsimplify)
4
4
  [![Node.js CI](https://github.com/vpmedia/simplify/actions/workflows/ci.yml/badge.svg)](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.30.0",
3
+ "version": "1.32.0",
4
4
  "description": "@vpmedia/simplify",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -20,15 +20,15 @@
20
20
  "type": "module",
21
21
  "devDependencies": {
22
22
  "@babel/preset-env": "^7.28.3",
23
- "@eslint/js": "^9.36.0",
23
+ "@eslint/js": "^9.37.0",
24
24
  "@vitest/coverage-v8": "^3.2.4",
25
- "eslint": "^9.36.0",
26
- "eslint-plugin-jsdoc": "^60.1.0",
25
+ "eslint": "^9.37.0",
26
+ "eslint-plugin-jsdoc": "^61.1.0",
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.2",
31
+ "typescript": "^5.9.3",
32
32
  "vitest": "^3.2.4"
33
33
  },
34
34
  "browserslist": [
@@ -38,10 +38,11 @@
38
38
  "iOS >= 14"
39
39
  ],
40
40
  "dependencies": {
41
- "@types/node": "^24.5.2",
41
+ "@types/node": "^24.7.2",
42
42
  "eventemitter3": "^5.0.1"
43
43
  },
44
44
  "scripts": {
45
+ "build": "exit 0",
45
46
  "test": "vitest --coverage --pass-with-no-tests",
46
47
  "lint": "eslint \"**/*.{js,jsx}\"",
47
48
  "typecheck": "tsc",
@@ -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] = {};
@@ -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 ?? 500, 1);
43
- retryOptions.numTries = Math.max(retryOptions.numTries ?? 3, 1);
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,CAkBlB"}
1
+ {"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/util/deepMerge.js"],"names":[],"mappings":"AAMO,kCAJI,MAAM,UACN,MAAM,GACJ,MAAM,CAmBlB"}