@domql/utils 2.28.55 → 2.28.57

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.
@@ -169,7 +169,7 @@ const deepClone = (obj, options = {}) => {
169
169
  clone2[key] = (0, import_array.mergeArray)(value, exclude);
170
170
  continue;
171
171
  }
172
- if ((0, import_types.isFunction)(value) && contentWindow) {
172
+ if ((0, import_types.isFunction)(value) && options.window) {
173
173
  clone2[key] = contentWindow.eval("(" + value.toString() + ")");
174
174
  continue;
175
175
  }
@@ -138,7 +138,7 @@ const deepClone = (obj, options = {}) => {
138
138
  clone2[key] = mergeArray(value, exclude);
139
139
  continue;
140
140
  }
141
- if (isFunction(value) && contentWindow) {
141
+ if (isFunction(value) && options.window) {
142
142
  clone2[key] = contentWindow.eval("(" + value.toString() + ")");
143
143
  continue;
144
144
  }
package/object.js CHANGED
@@ -186,7 +186,7 @@ export const deepClone = (obj, options = {}) => {
186
186
  }
187
187
 
188
188
  // Handle functions in cross-frame scenario
189
- if (isFunction(value) && contentWindow) {
189
+ if (isFunction(value) && options.window) {
190
190
  clone[key] = contentWindow.eval('(' + value.toString() + ')')
191
191
  continue
192
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.28.55",
3
+ "version": "2.28.57",
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": "b961a4a9ce4d20b91b493a263cf33cec689fa195",
27
+ "gitHead": "2c8986e37ab2a513a59be544b40ca7ca7e19ff5a",
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.27.1"
30
30
  }