@xuda.io/xuda-worker-bundle-min 1.3.708 → 1.3.710
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 +19 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -85,6 +85,7 @@ glb.FUNCTION_NODES_ARR = [
|
|
|
85
85
|
"javascript",
|
|
86
86
|
"SQL",
|
|
87
87
|
];
|
|
88
|
+
glb.emailRegex = /^[\w\.-]+@[a-zA-Z\d\.-]+\.[a-zA-Z]{2,}$/;
|
|
88
89
|
|
|
89
90
|
const FIREBASE_AUTH_PROPERTIES_ARR = [
|
|
90
91
|
"provider",
|
|
@@ -9313,6 +9314,24 @@ func.expression.get = async function (
|
|
|
9313
9314
|
if (!func.expression.validate_variables(valP)) {
|
|
9314
9315
|
return await variable_not_exist();
|
|
9315
9316
|
}
|
|
9317
|
+
|
|
9318
|
+
const validate_email = async function () {
|
|
9319
|
+
const ret = await func.expression.secure_eval(
|
|
9320
|
+
SESSION_ID,
|
|
9321
|
+
sourceP,
|
|
9322
|
+
valP,
|
|
9323
|
+
jobNo,
|
|
9324
|
+
dsSessionP,
|
|
9325
|
+
js_script_callback
|
|
9326
|
+
);
|
|
9327
|
+
|
|
9328
|
+
return glb.emailRegex.test(ret);
|
|
9329
|
+
};
|
|
9330
|
+
|
|
9331
|
+
if (await validate_email()) {
|
|
9332
|
+
return await variable_not_exist();
|
|
9333
|
+
}
|
|
9334
|
+
|
|
9316
9335
|
var split = [];
|
|
9317
9336
|
var var_Arr = [];
|
|
9318
9337
|
split = func.expression.parse(ret);
|