@xuda.io/xuda-worker-bundle 1.3.2642 → 1.3.2643

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.
Files changed (2) hide show
  1. package/index.js +7 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -9123,8 +9123,13 @@ func.expression.get = async function (SESSION_ID, valP, dsSessionP, sourceP, row
9123
9123
  return await variable_not_exist();
9124
9124
  }
9125
9125
 
9126
- // Fast-path: test raw string for email pattern before expensive eval
9127
- if (glb.emailRegex.test(valP)) {
9126
+ const validate_email = async function () {
9127
+ const ret = await func.expression.secure_eval(SESSION_ID, sourceP, valP, jobNo, dsSessionP, js_script_callback, null, true);
9128
+
9129
+ return glb.emailRegex.test(ret);
9130
+ };
9131
+
9132
+ if (await validate_email()) {
9128
9133
  return await variable_not_exist();
9129
9134
  }
9130
9135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle",
3
- "version": "1.3.2642",
3
+ "version": "1.3.2643",
4
4
  "description": "xuda framework",
5
5
  "main": "index.js",
6
6
  "scripts": {