@xuda.io/runtime-bundle 1.0.492 → 1.0.494
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 +12 -12
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +12 -12
- package/js/xuda-runtime-slim.min.es.js +12 -12
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +12 -12
- package/js/xuda-worker-bundle.js +12 -12
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -35447,7 +35447,7 @@ func.expression.get_bad = async function (SESSION_ID, valP, dsSessionP, sourceP,
|
|
|
35447
35447
|
return endResults();
|
|
35448
35448
|
};
|
|
35449
35449
|
|
|
35450
|
-
func.expression.
|
|
35450
|
+
func.expression.parse = function (strP) {
|
|
35451
35451
|
var extract_str = function (strP, posP) {
|
|
35452
35452
|
if (!posP) posP = 0;
|
|
35453
35453
|
var clean_split_str = function (arrP) {
|
|
@@ -35542,7 +35542,7 @@ func.expression.parse_org = function (strP) {
|
|
|
35542
35542
|
return res;
|
|
35543
35543
|
};
|
|
35544
35544
|
|
|
35545
|
-
func.expression.
|
|
35545
|
+
func.expression.parse_bad = function (input) {
|
|
35546
35546
|
if (typeof input !== 'string') return [];
|
|
35547
35547
|
|
|
35548
35548
|
const segments = [];
|
|
@@ -35570,7 +35570,7 @@ func.expression.parse = function (input) {
|
|
|
35570
35570
|
return segments;
|
|
35571
35571
|
};
|
|
35572
35572
|
|
|
35573
|
-
func.expression.
|
|
35573
|
+
func.expression.get_property = async function (valP) {
|
|
35574
35574
|
async function secure_eval(val) {
|
|
35575
35575
|
if (typeof IS_PROCESS_SERVER === 'undefined') {
|
|
35576
35576
|
try {
|
|
@@ -35609,7 +35609,7 @@ func.expression.get_property_org = async function (valP) {
|
|
|
35609
35609
|
};
|
|
35610
35610
|
};
|
|
35611
35611
|
|
|
35612
|
-
func.expression.
|
|
35612
|
+
func.expression.get_property_bad = async function (valP) {
|
|
35613
35613
|
if (typeof valP !== 'string') return { property1: undefined, property2: undefined };
|
|
35614
35614
|
|
|
35615
35615
|
const secureEval = async (expr) => {
|
|
@@ -35654,27 +35654,27 @@ func.expression.get_property = async function (valP) {
|
|
|
35654
35654
|
return { property1, property2 };
|
|
35655
35655
|
};
|
|
35656
35656
|
|
|
35657
|
-
func.expression.
|
|
35657
|
+
func.expression.validate_constant = function (valP) {
|
|
35658
35658
|
var patt = /["']/;
|
|
35659
35659
|
if (typeof valP === 'string' && patt.test(valP.substr(0, 1)) && patt.test(valP.substr(0, valP.length - 1))) return true;
|
|
35660
35660
|
else return false;
|
|
35661
35661
|
};
|
|
35662
|
-
func.expression.
|
|
35662
|
+
func.expression.validate_variables = function (valP) {
|
|
35663
35663
|
if (typeof valP === 'string' && valP.indexOf('@') > -1) return true;
|
|
35664
35664
|
else return false;
|
|
35665
35665
|
};
|
|
35666
|
-
func.expression.
|
|
35666
|
+
func.expression.remove_quotes = function (valP) {
|
|
35667
35667
|
if (func.expression.validate_constant(valP)) return valP.substr(1, valP.length - 2);
|
|
35668
35668
|
else return valP;
|
|
35669
35669
|
};
|
|
35670
35670
|
|
|
35671
|
-
func.expression.
|
|
35671
|
+
func.expression.validate_constant_bad = (valP) => typeof valP === 'string' && /^["'].*["']$/.test(valP);
|
|
35672
35672
|
|
|
35673
|
-
func.expression.
|
|
35673
|
+
func.expression.validate_variables_bad = (valP) => typeof valP === 'string' && valP.includes('@');
|
|
35674
35674
|
|
|
35675
|
-
func.expression.
|
|
35675
|
+
func.expression.remove_quotes_bad = (valP) => (func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP);
|
|
35676
35676
|
|
|
35677
|
-
func.expression.
|
|
35677
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
35678
35678
|
const api_utils = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
35679
35679
|
func,
|
|
35680
35680
|
glb,
|
|
@@ -35776,7 +35776,7 @@ func.expression.secure_eval_org = async function (SESSION_ID, sourceP, val, job_
|
|
|
35776
35776
|
}
|
|
35777
35777
|
};
|
|
35778
35778
|
|
|
35779
|
-
func.expression.
|
|
35779
|
+
func.expression.secure_eval_bad = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
35780
35780
|
if (typeof val !== 'string') return val;
|
|
35781
35781
|
|
|
35782
35782
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|