@xuda.io/xuda-worker-bundle-min 1.3.273 → 1.3.275

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 +6 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1927,8 +1927,13 @@ func.datasource.execute = async function (
1927
1927
  debugger;
1928
1928
  let data = await get_data_from_source();
1929
1929
  console.log("data", data);
1930
- for (const [_KEY, _VAL] of Object.keys(data)) {
1930
+ if (!_ds.v.raw_data) {
1931
+ _ds.v.raw_data = { rows: [] };
1932
+ }
1933
+ let _KEY = 0;
1934
+ for (const _VAL of data) {
1931
1935
  _ds.v.raw_data.rows[_KEY] = { _KEY, _VAL };
1936
+ _KEY++;
1932
1937
  }
1933
1938
  break;
1934
1939
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.273",
3
+ "version": "1.3.275",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {