@xuda.io/xuda-worker-bundle-min 1.3.1520 → 1.3.1522
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/index.js +11 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8499,13 +8499,19 @@ func.expression.remove_quotes = function (valP) {
|
|
|
8499
8499
|
else return valP;
|
|
8500
8500
|
};
|
|
8501
8501
|
|
|
8502
|
-
func.expression.
|
|
8502
|
+
// func.expression.validate_constant = function (valP) {
|
|
8503
|
+
// typeof valP === 'string' && /^["'].*["']$/.test(valP);
|
|
8504
|
+
// };
|
|
8503
8505
|
|
|
8504
|
-
func.expression.
|
|
8506
|
+
// func.expression.validate_variables = function (valP) {
|
|
8507
|
+
// typeof valP === 'string' && valP.includes('@');
|
|
8508
|
+
// };
|
|
8505
8509
|
|
|
8506
|
-
func.expression.
|
|
8510
|
+
// func.expression.remove_quotes = function (valP) {
|
|
8511
|
+
// func.expression.validate_constant(valP) && typeof valP === 'string' ? valP.slice(1, -1) : valP;
|
|
8512
|
+
// };
|
|
8507
8513
|
|
|
8508
|
-
func.expression.
|
|
8514
|
+
func.expression.secure_eval_org = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
8509
8515
|
const api_utils = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|
|
8510
8516
|
func,
|
|
8511
8517
|
glb,
|
|
@@ -8607,7 +8613,7 @@ func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id,
|
|
|
8607
8613
|
}
|
|
8608
8614
|
};
|
|
8609
8615
|
|
|
8610
|
-
func.expression.
|
|
8616
|
+
func.expression.secure_eval = async function (SESSION_ID, sourceP, val, job_id, dsSessionP, js_script_callback, evt) {
|
|
8611
8617
|
if (typeof val !== 'string') return val;
|
|
8612
8618
|
|
|
8613
8619
|
const xu = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
|