@domql/utils 2.5.84 → 2.5.85
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 +2 -2
- package/object.js +2 -2
- package/package.json +2 -2
package/dist/cjs/object.js
CHANGED
|
@@ -302,11 +302,11 @@ const deepDestringify = (obj, destringified = {}) => {
|
|
|
302
302
|
}
|
|
303
303
|
return destringified;
|
|
304
304
|
};
|
|
305
|
-
const stringToObject = (str, verbose) => {
|
|
305
|
+
const stringToObject = (str, opts = { verbose: true }) => {
|
|
306
306
|
try {
|
|
307
307
|
return import_globals.window.eval("(" + str + ")");
|
|
308
308
|
} catch (e) {
|
|
309
|
-
if (verbose)
|
|
309
|
+
if (opts.verbose)
|
|
310
310
|
console.warn(e);
|
|
311
311
|
}
|
|
312
312
|
};
|
package/object.js
CHANGED
|
@@ -283,10 +283,10 @@ export const deepDestringify = (obj, destringified = {}) => {
|
|
|
283
283
|
return destringified
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
export const stringToObject = (str, verbose) => {
|
|
286
|
+
export const stringToObject = (str, opts = { verbose: true }) => {
|
|
287
287
|
try {
|
|
288
288
|
return window.eval('(' + str + ')') // eslint-disable-line
|
|
289
|
-
} catch (e) { if (verbose) console.warn(e) }
|
|
289
|
+
} catch (e) { if (opts.verbose) console.warn(e) }
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
export const diffObjects = (original, objToDiff, cache) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.85",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "yarn build:cjs",
|
|
24
24
|
"prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "d74dca288e3860155be0340404d95a4c872c66aa",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.12.0"
|
|
29
29
|
}
|