@domql/utils
Advanced tools
Comparing version 2.5.91 to 2.5.92
@@ -265,3 +265,3 @@ "use strict"; | ||
if ((0, import_types.isString)(objProp)) { | ||
if ((objProp.includes("=>") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) { | ||
if ((objProp.includes("(){") || objProp.includes("() {") || objProp.includes("=>") || objProp.startsWith("()") || objProp.startsWith("async") || objProp.startsWith("function") || objProp.startsWith("(")) && !objProp.startsWith("{") && !objProp.startsWith("[")) { | ||
try { | ||
@@ -268,0 +268,0 @@ const evalProp = import_globals.window.eval(`(${objProp})`); |
@@ -252,3 +252,13 @@ 'use strict' | ||
if (isString(objProp)) { | ||
if ((objProp.includes('=>') || objProp.startsWith('function') || objProp.startsWith('(')) && !objProp.startsWith('{') && !objProp.startsWith('[')) { | ||
if (( | ||
objProp.includes('(){') || | ||
objProp.includes('() {') || | ||
objProp.includes('=>') || | ||
objProp.startsWith('()') || | ||
objProp.startsWith('async') || | ||
objProp.startsWith('function') || | ||
objProp.startsWith('(') | ||
) && | ||
!objProp.startsWith('{') && !objProp.startsWith('[') | ||
) { | ||
try { | ||
@@ -255,0 +265,0 @@ const evalProp = window.eval(`(${objProp})`) |
{ | ||
"name": "@domql/utils", | ||
"version": "2.5.91", | ||
"version": "2.5.92", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "type": "module", | ||
}, | ||
"gitHead": "15a57f968b6c8832cb843c886e251a89ff17cc24", | ||
"gitHead": "41f831e7064481d010f7a763e9466931c6389f87", | ||
"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
72708
2263