@domql/utils 2.3.142 → 2.3.143

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.
@@ -347,8 +347,6 @@ const overwriteDeep = (obj, params, excludeFrom = []) => {
347
347
  continue;
348
348
  const objProp = obj[e];
349
349
  const paramsProp = params[e];
350
- if (!obj.hasOwnProperty(e) || e === "__proto__" || e === "constructor")
351
- continue;
352
350
  if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
353
351
  overwriteDeep(objProp, paramsProp);
354
352
  } else if (paramsProp !== void 0) {
package/object.js CHANGED
@@ -83,7 +83,7 @@ export const deepCloneExclude = (obj, excludeFrom = []) => {
83
83
  return o
84
84
  }
85
85
 
86
- // Merge array, but exclude keys listed in 'excl'
86
+ // Merge array, but exclude keys listed in 'excl'z
87
87
  export const mergeArrayExclude = (arr, excl = []) => {
88
88
  return arr.reduce((acc, curr) => deepMerge(acc, deepCloneExclude(curr, excl)), {})
89
89
  }
@@ -335,7 +335,6 @@ export const overwriteDeep = (obj, params, excludeFrom = []) => {
335
335
  if (excludeFrom.includes(e) || e.startsWith('__')) continue
336
336
  const objProp = obj[e]
337
337
  const paramsProp = params[e]
338
- if (!obj.hasOwnProperty(e) || e === '__proto__' || e === 'constructor') continue
339
338
  if (isObjectLike(objProp) && isObjectLike(paramsProp)) {
340
339
  overwriteDeep(objProp, paramsProp)
341
340
  } else if (paramsProp !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.3.142",
3
+ "version": "2.3.143",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -23,7 +23,7 @@
23
23
  "@domql/key": "latest",
24
24
  "@domql/tags": "latest"
25
25
  },
26
- "gitHead": "5d134dec55390026220f6370a71c82feb6f26aad",
26
+ "gitHead": "3003982f8bb056cc7e634309dd79b207b2c33316",
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.12.0"
29
29
  }