@xuda.io/xuda-worker-bundle-min 1.3.247 → 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.
Files changed (2) hide show
  1. package/index.js +11 -12
  2. 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 (sourceP === "update" || sourceP === "javascript") {
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
- sourceP !== "DbQuery" &&
8619
- sourceP !== "alert" &&
8620
- sourceP !== "exp" &&
8621
- sourceP !== "api_rendered_output" &&
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
- sourceP !== "arguments" &&
8726
- sourceP !== "alert" &&
8727
- sourceP !== "api_rendered_output" &&
8728
- sourceP !== "DbQuery"
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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.247",
3
+ "version": "1.3.249",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {