@xuda.io/xuda-worker-bundle 1.3.2109 → 1.3.2111

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 +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8298,10 +8298,12 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
8298
8298
  if (!isServer) {
8299
8299
  try {
8300
8300
  return eval(val);
8301
- } catch {
8301
+ } catch (err) {
8302
8302
  try {
8303
+ if (glb.DEBUG_MODE) console.warning(err);
8303
8304
  return JSON5.parse(val);
8304
- } catch {
8305
+ } catch (err) {
8306
+ if (glb.DEBUG_MODE) console.warning(err);
8305
8307
  return val;
8306
8308
  }
8307
8309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle",
3
- "version": "1.3.2109",
3
+ "version": "1.3.2111",
4
4
  "description": "xuda framework",
5
5
  "main": "index.js",
6
6
  "scripts": {