@xuda.io/xuda-worker-bundle-min 1.3.309 → 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.
- package/index.js +21 -19
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5931,7 +5931,27 @@ func.utils.alerts.invoke = async function (
|
|
|
5931
5931
|
var type = "";
|
|
5932
5932
|
var createLog;
|
|
5933
5933
|
|
|
5934
|
-
|
|
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
|
+
|
|
5935
5955
|
const get_alert_properties = async function (value, fx) {
|
|
5936
5956
|
var ret = value || "";
|
|
5937
5957
|
|
|
@@ -6054,24 +6074,6 @@ func.utils.alerts.invoke = async function (
|
|
|
6054
6074
|
return;
|
|
6055
6075
|
}
|
|
6056
6076
|
|
|
6057
|
-
if (glb.IS_WORKER) {
|
|
6058
|
-
if (_session.IS_API) {
|
|
6059
|
-
if (_ds) {
|
|
6060
|
-
_ds.api_rendered_output = message;
|
|
6061
|
-
} else {
|
|
6062
|
-
console.error(message);
|
|
6063
|
-
}
|
|
6064
|
-
return;
|
|
6065
|
-
}
|
|
6066
|
-
|
|
6067
|
-
// if (typeof IS_PROCESS_SERVER !== "undefined") return;
|
|
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
|
-
}
|
|
6075
6077
|
// const sys_alerts_obj = func.utils.get_system_error_msg();
|
|
6076
6078
|
// if (sys_alerts_obj[paramsP]) {
|
|
6077
6079
|
// var str = paramsP + " " + title + " " + message;
|