@xuda.io/xuda-worker-bundle-min 1.3.248 → 1.3.249
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/index.js +11 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8387,7 +8387,7 @@ func.expression.get = async function (
|
|
|
8387
8387
|
}
|
|
8388
8388
|
return ret;
|
|
8389
8389
|
};
|
|
8390
|
-
if (
|
|
8390
|
+
if (["update", "javascript"].includes(sourceP)) {
|
|
8391
8391
|
if (typeof ret === "string") ret = replace_quotes(ret);
|
|
8392
8392
|
}
|
|
8393
8393
|
const log_error = function () {
|
|
@@ -8615,13 +8615,10 @@ func.expression.get = async function (
|
|
|
8615
8615
|
}
|
|
8616
8616
|
res[key] = val.value;
|
|
8617
8617
|
if (
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
(val.type === "string" ||
|
|
8623
|
-
val.type === "date" ||
|
|
8624
|
-
val.type === "time") &&
|
|
8618
|
+
!["DbQuery", "alert", "exp", "api_rendered_output"].includes(
|
|
8619
|
+
sourceP
|
|
8620
|
+
) &&
|
|
8621
|
+
["string", "date", "time"].includes(val.type) &&
|
|
8625
8622
|
var_Arr.length > 1
|
|
8626
8623
|
) {
|
|
8627
8624
|
res[key] = "`" + val.value + "`"; //res[key] = "'" + val.value + "'"; //
|
|
@@ -8722,10 +8719,12 @@ func.expression.get = async function (
|
|
|
8722
8719
|
}
|
|
8723
8720
|
} else {
|
|
8724
8721
|
if (
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8722
|
+
![
|
|
8723
|
+
"arguments",
|
|
8724
|
+
"alert",
|
|
8725
|
+
"api_rendered_output",
|
|
8726
|
+
"DbQuery",
|
|
8727
|
+
].includes(sourceP)
|
|
8729
8728
|
) {
|
|
8730
8729
|
// ret = secure_eval(result); // eval(result);
|
|
8731
8730
|
ret = await func.expression.secure_eval(
|