@xuda.io/runtime-bundle 1.0.498 → 1.0.499
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 +14 -14
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +14 -14
- package/js/xuda-runtime-slim.min.es.js +14 -14
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +14 -14
- package/js/xuda-worker-bundle.js +14 -14
- 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 = 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_org = async function (valP) {
|
|
|
35604
35604
|
};
|
|
35605
35605
|
};
|
|
35606
35606
|
|
|
35607
|
-
func.expression.
|
|
35607
|
+
func.expression.get_property_bad = async function (valP) {
|
|
35608
35608
|
if (typeof valP !== 'string') return { property1: undefined, property2: undefined };
|
|
35609
35609
|
|
|
35610
35610
|
const secureEval = async (expr) => {
|
|
@@ -35649,31 +35649,31 @@ func.expression.get_property = async function (valP) {
|
|
|
35649
35649
|
return { property1, property2 };
|
|
35650
35650
|
};
|
|
35651
35651
|
|
|
35652
|
-
func.expression.
|
|
35652
|
+
func.expression.validate_constant = 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 = 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 = 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.validate_constant = function (valP) {
|
|
35667
|
-
|
|
35668
|
-
};
|
|
35666
|
+
// func.expression.validate_constant = function (valP) {
|
|
35667
|
+
// typeof valP === 'string' && /^["'].*["']$/.test(valP);
|
|
35668
|
+
// };
|
|
35669
35669
|
|
|
35670
|
-
func.expression.validate_variables = function (valP) {
|
|
35671
|
-
|
|
35672
|
-
};
|
|
35670
|
+
// func.expression.validate_variables = function (valP) {
|
|
35671
|
+
// typeof valP === 'string' && valP.includes('@');
|
|
35672
|
+
// };
|
|
35673
35673
|
|
|
35674
|
-
func.expression.remove_quotes = function (valP) {
|
|
35675
|
-
|
|
35676
|
-
};
|
|
35674
|
+
// func.expression.remove_quotes = function (valP) {
|
|
35675
|
+
// func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP;
|
|
35676
|
+
// };
|
|
35677
35677
|
|
|
35678
35678
|
func.expression.secure_eval_org = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
35679
35679
|
const api_utils = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|