@domql/utils 2.28.55 → 2.28.56
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/dist/cjs/object.js +1 -1
- package/dist/esm/object.js +1 -1
- package/object.js +1 -1
- package/package.json +2 -2
package/dist/cjs/object.js
CHANGED
|
@@ -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) &&
|
|
172
|
+
if ((0, import_types.isFunction)(value) && options.window) {
|
|
173
173
|
clone2[key] = contentWindow.eval("(" + value.toString() + ")");
|
|
174
174
|
continue;
|
|
175
175
|
}
|
package/dist/esm/object.js
CHANGED
|
@@ -138,7 +138,7 @@ const deepClone = (obj, options = {}) => {
|
|
|
138
138
|
clone2[key] = mergeArray(value, exclude);
|
|
139
139
|
continue;
|
|
140
140
|
}
|
|
141
|
-
if (isFunction(value) &&
|
|
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) &&
|
|
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.
|
|
3
|
+
"version": "2.28.56",
|
|
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": "
|
|
27
|
+
"gitHead": "b70ae48a0599b6ae8b5f691c82f27ca0b860a3c6",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.27.1"
|
|
30
30
|
}
|