@xuda.io/xuda-worker-bundle-min 1.3.682 → 1.3.684

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 +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -9548,8 +9548,12 @@ func.expression.secure_eval = async function (
9548
9548
  try {
9549
9549
  return eval(val);
9550
9550
  } catch (err) {
9551
- console.error(err);
9552
- return;
9551
+ try {
9552
+ return JSON5.parse(val);
9553
+ } catch (err) {
9554
+ console.error(err);
9555
+ return val;
9556
+ }
9553
9557
  }
9554
9558
  }
9555
9559
  // server side execution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.682",
3
+ "version": "1.3.684",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {