@xuda.io/xuda-worker-bundle-min 1.3.312 → 1.3.314

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 +19 -21
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5930,27 +5930,6 @@ func.utils.alerts.invoke = async function (
5930
5930
  var _ds = _session.DS_GLB[dsSessionP];
5931
5931
  var type = "";
5932
5932
  var createLog;
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
5933
  debugger;
5955
5934
  const get_alert_properties = async function (value, fx) {
5956
5935
  var ret = value || "";
@@ -6074,6 +6053,25 @@ func.utils.alerts.invoke = async function (
6074
6053
  return;
6075
6054
  }
6076
6055
 
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
+ ALERT_IS_ACTIVE = false;
6068
+ return func.utils.post_back_to_client(
6069
+ SESSION_ID,
6070
+ "alert",
6071
+ _session.worker_id,
6072
+ [SESSION_ID, alert_type, alertDisplay, message, title]
6073
+ );
6074
+ }
6077
6075
  // const sys_alerts_obj = func.utils.get_system_error_msg();
6078
6076
  // if (sys_alerts_obj[paramsP]) {
6079
6077
  // 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.312",
3
+ "version": "1.3.314",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {