@xuda.io/runtime-bundle 1.0.978 → 1.0.980
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/js/xuda-runtime-bundle.js +4 -2
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +4 -2
- package/js/xuda-runtime-slim.min.es.js +4 -2
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +4 -2
- package/js/xuda-worker-bundle.js +4 -2
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -35932,10 +35932,12 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
35932
35932
|
if (!isServer) {
|
|
35933
35933
|
try {
|
|
35934
35934
|
return eval(val);
|
|
35935
|
-
} catch {
|
|
35935
|
+
} catch (err) {
|
|
35936
35936
|
try {
|
|
35937
|
+
if (glb.DEBUG_MODE) console.warn(err);
|
|
35937
35938
|
return JSON5.parse(val);
|
|
35938
|
-
} catch {
|
|
35939
|
+
} catch (err) {
|
|
35940
|
+
if (glb.DEBUG_MODE) console.warn(err);
|
|
35939
35941
|
return val;
|
|
35940
35942
|
}
|
|
35941
35943
|
}
|