@xuda.io/xuda-worker-bundle-min 1.3.308 → 1.3.310

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 +21 -18
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5931,6 +5931,27 @@ func.utils.alerts.invoke = async function (
5931
5931
  var type = "";
5932
5932
  var createLog;
5933
5933
 
5934
+ if (glb.IS_WORKER) {
5935
+ if (_session.IS_API) {
5936
+ if (_ds) {
5937
+ _ds.api_rendered_output = message;
5938
+ } else {
5939
+ console.error(message);
5940
+ }
5941
+ return;
5942
+ }
5943
+
5944
+ // if (typeof IS_PROCESS_SERVER !== "undefined") return;
5945
+ ALERT_IS_ACTIVE = false;
5946
+ return func.utils.post_back_to_client(
5947
+ SESSION_ID,
5948
+ "alert",
5949
+ _session.worker_id,
5950
+ { SESSION_ID, typeP, paramsP, sourceP, dsSessionP, msgP }
5951
+ // [SESSION_ID, alert_type, alertDisplay, message, title]
5952
+ );
5953
+ }
5954
+
5934
5955
  const get_alert_properties = async function (value, fx) {
5935
5956
  var ret = value || "";
5936
5957
 
@@ -6053,24 +6074,6 @@ func.utils.alerts.invoke = async function (
6053
6074
  return;
6054
6075
  }
6055
6076
 
6056
- if (glb.IS_WORKER) {
6057
- if (_session.IS_API) {
6058
- if (_ds) {
6059
- _ds.api_rendered_output = message;
6060
- } else {
6061
- console.error(message);
6062
- }
6063
- return;
6064
- }
6065
-
6066
- // if (typeof IS_PROCESS_SERVER !== "undefined") return;
6067
- return func.utils.post_back_to_client(
6068
- SESSION_ID,
6069
- "alert",
6070
- _session.worker_id,
6071
- [SESSION_ID, alert_type, alertDisplay, message, title]
6072
- );
6073
- }
6074
6077
  // const sys_alerts_obj = func.utils.get_system_error_msg();
6075
6078
  // if (sys_alerts_obj[paramsP]) {
6076
6079
  // var str = paramsP + " " + title + " " + message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.308",
3
+ "version": "1.3.310",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {