@xuda.io/runtime-bundle 1.0.497 → 1.0.498
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 +16 -10
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +16 -10
- package/js/xuda-runtime-slim.min.es.js +16 -10
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +16 -10
- package/js/xuda-worker-bundle.js +16 -10
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -35565,7 +35565,7 @@ func.expression.parse = function (input) {
|
|
|
35565
35565
|
return segments;
|
|
35566
35566
|
};
|
|
35567
35567
|
|
|
35568
|
-
func.expression.
|
|
35568
|
+
func.expression.get_property_org = async function (valP) {
|
|
35569
35569
|
async function secure_eval(val) {
|
|
35570
35570
|
if (typeof IS_PROCESS_SERVER === 'undefined') {
|
|
35571
35571
|
try {
|
|
@@ -35604,7 +35604,7 @@ func.expression.get_property = async function (valP) {
|
|
|
35604
35604
|
};
|
|
35605
35605
|
};
|
|
35606
35606
|
|
|
35607
|
-
func.expression.
|
|
35607
|
+
func.expression.get_property = async function (valP) {
|
|
35608
35608
|
if (typeof valP !== 'string') return { property1: undefined, property2: undefined };
|
|
35609
35609
|
|
|
35610
35610
|
const secureEval = async (expr) => {
|
|
@@ -35649,27 +35649,33 @@ func.expression.get_property_bad = async function (valP) {
|
|
|
35649
35649
|
return { property1, property2 };
|
|
35650
35650
|
};
|
|
35651
35651
|
|
|
35652
|
-
func.expression.
|
|
35652
|
+
func.expression.validate_constant_org = function (valP) {
|
|
35653
35653
|
var patt = /["']/;
|
|
35654
35654
|
if (typeof valP === 'string' && patt.test(valP.substr(0, 1)) && patt.test(valP.substr(0, valP.length - 1))) return true;
|
|
35655
35655
|
else return false;
|
|
35656
35656
|
};
|
|
35657
|
-
func.expression.
|
|
35657
|
+
func.expression.validate_variables_org = function (valP) {
|
|
35658
35658
|
if (typeof valP === 'string' && valP.indexOf('@') > -1) return true;
|
|
35659
35659
|
else return false;
|
|
35660
35660
|
};
|
|
35661
|
-
func.expression.
|
|
35661
|
+
func.expression.remove_quotes_org = function (valP) {
|
|
35662
35662
|
if (func.expression.validate_constant(valP)) return valP.substr(1, valP.length - 2);
|
|
35663
35663
|
else return valP;
|
|
35664
35664
|
};
|
|
35665
35665
|
|
|
35666
|
-
func.expression.
|
|
35666
|
+
func.expression.validate_constant = function (valP) {
|
|
35667
|
+
typeof valP === 'string' && /^["'].*["']$/.test(valP);
|
|
35668
|
+
};
|
|
35667
35669
|
|
|
35668
|
-
func.expression.
|
|
35670
|
+
func.expression.validate_variables = function (valP) {
|
|
35671
|
+
typeof valP === 'string' && valP.includes('@');
|
|
35672
|
+
};
|
|
35669
35673
|
|
|
35670
|
-
func.expression.
|
|
35674
|
+
func.expression.remove_quotes = function (valP) {
|
|
35675
|
+
func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP;
|
|
35676
|
+
};
|
|
35671
35677
|
|
|
35672
|
-
func.expression.
|
|
35678
|
+
func.expression.secure_eval_org = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
35673
35679
|
const api_utils = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
35674
35680
|
func,
|
|
35675
35681
|
glb,
|
|
@@ -35771,7 +35777,7 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
35771
35777
|
}
|
|
35772
35778
|
};
|
|
35773
35779
|
|
|
35774
|
-
func.expression.
|
|
35780
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
35775
35781
|
if (typeof val !== 'string') return val;
|
|
35776
35782
|
|
|
35777
35783
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|