@domql/utils 2.29.40 → 2.29.41

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.
@@ -174,6 +174,7 @@ const deepClone = (obj, options = {}) => {
174
174
  continue;
175
175
  }
176
176
  if ((0, import_types.isObjectLike)(value)) {
177
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
177
178
  clone2[key] = deepClone(value, {
178
179
  ...options,
179
180
  visited
@@ -143,6 +143,7 @@ const deepClone = (obj, options = {}) => {
143
143
  continue;
144
144
  }
145
145
  if (isObjectLike(value)) {
146
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) continue;
146
147
  clone2[key] = deepClone(value, __spreadProps(__spreadValues({}, options), {
147
148
  visited
148
149
  }));
package/object.js CHANGED
@@ -193,6 +193,8 @@ export const deepClone = (obj, options = {}) => {
193
193
 
194
194
  // Recursively clone objects
195
195
  if (isObjectLike(value)) {
196
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) continue
197
+
196
198
  clone[key] = deepClone(value, {
197
199
  ...options,
198
200
  visited
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.29.40",
3
+ "version": "2.29.41",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -24,7 +24,7 @@
24
24
  "build": "npx rimraf -I dist; npm run build:cjs; npm run build:esm",
25
25
  "prepublish": "npm run build; npm run copy:package:cjs"
26
26
  },
27
- "gitHead": "8095929229562388221836b361480f3ecc22b20f",
27
+ "gitHead": "4a29e8f6c49b6765624ad45c11f24d9558033592",
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.27.1"
30
30
  }