@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.
- package/index.js +6 -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
|
-
|
|
9552
|
-
|
|
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
|