@xuda.io/xuda-worker-bundle-min 1.3.275 → 1.3.277
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 +23 -24
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1924,7 +1924,6 @@ func.datasource.execute = async function (
|
|
|
1924
1924
|
break;
|
|
1925
1925
|
|
|
1926
1926
|
case "array": {
|
|
1927
|
-
debugger;
|
|
1928
1927
|
let data = await get_data_from_source();
|
|
1929
1928
|
console.log("data", data);
|
|
1930
1929
|
if (!_ds.v.raw_data) {
|
|
@@ -1932,7 +1931,7 @@ func.datasource.execute = async function (
|
|
|
1932
1931
|
}
|
|
1933
1932
|
let _KEY = 0;
|
|
1934
1933
|
for (const _VAL of data) {
|
|
1935
|
-
_ds.v.raw_data.rows[_KEY] = { _KEY, _VAL };
|
|
1934
|
+
_ds.v.raw_data.rows[_KEY] = { id: _KEY, value: { _KEY, _VAL } };
|
|
1936
1935
|
_KEY++;
|
|
1937
1936
|
}
|
|
1938
1937
|
break;
|
|
@@ -5949,33 +5948,33 @@ func.utils.alerts.invoke = async function (
|
|
|
5949
5948
|
} else {
|
|
5950
5949
|
console.error(message);
|
|
5951
5950
|
}
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
}
|
|
5951
|
+
return;
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
// if (typeof IS_PROCESS_SERVER !== "undefined") return;
|
|
5955
|
+
return func.utils.post_back_to_client(
|
|
5956
|
+
SESSION_ID,
|
|
5957
|
+
"alert",
|
|
5958
|
+
_session.worker_id,
|
|
5959
|
+
[SESSION_ID, alert_type, alertDisplay, message]
|
|
5960
|
+
);
|
|
5961
|
+
}
|
|
5962
|
+
|
|
5963
|
+
if (sys_alerts_obj[paramsP]) {
|
|
5964
|
+
var str = paramsP + " " + title + " " + message;
|
|
5965
|
+
if (sys_alerts_obj[paramsP].alert_type === "error") {
|
|
5966
|
+
console.error(str);
|
|
5967
|
+
} else if (sys_alerts_obj[paramsP].alert_type === "warning") {
|
|
5968
|
+
console.warn(str);
|
|
5971
5969
|
} else {
|
|
5972
5970
|
console.log(str);
|
|
5973
5971
|
}
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
return;
|
|
5972
|
+
} else {
|
|
5973
|
+
console.log(str);
|
|
5977
5974
|
}
|
|
5978
5975
|
|
|
5976
|
+
ALERT_IS_ACTIVE = false;
|
|
5977
|
+
|
|
5979
5978
|
func.utils.alerts.execute(
|
|
5980
5979
|
SESSION_ID,
|
|
5981
5980
|
alert_type,
|