@domql/utils
Advanced tools
Comparing version 2.5.84 to 2.5.85
@@ -305,7 +305,7 @@ "use strict"; | ||
}; | ||
const stringToObject = (str, verbose) => { | ||
const stringToObject = (str, opts = { verbose: true }) => { | ||
try { | ||
return import_globals.window.eval("(" + str + ")"); | ||
} catch (e) { | ||
if (verbose) | ||
if (opts.verbose) | ||
console.warn(e); | ||
@@ -312,0 +312,0 @@ } |
@@ -286,6 +286,6 @@ 'use strict' | ||
export const stringToObject = (str, verbose) => { | ||
export const stringToObject = (str, opts = { verbose: true }) => { | ||
try { | ||
return window.eval('(' + str + ')') // eslint-disable-line | ||
} catch (e) { if (verbose) console.warn(e) } | ||
} catch (e) { if (opts.verbose) console.warn(e) } | ||
} | ||
@@ -292,0 +292,0 @@ |
{ | ||
"name": "@domql/utils", | ||
"version": "2.5.84", | ||
"version": "2.5.85", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "type": "module", | ||
}, | ||
"gitHead": "4bd66069a10c9126fca5f29ca9c1f99e8b957228", | ||
"gitHead": "d74dca288e3860155be0340404d95a4c872c66aa", | ||
"devDependencies": { | ||
@@ -29,0 +29,0 @@ "@babel/core": "^7.12.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71234