@watsonserve/stock-base 0.0.12 → 0.0.13

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/dao.js CHANGED
@@ -136,9 +136,7 @@ export class InfluxDAO {
136
136
  list.unshift({ time: new Date(_time), nc, currency, [_field]: _value });
137
137
  },
138
138
  error: reject,
139
- complete: () => {
140
- resolve(groupBy('nc', list, true));
141
- },
139
+ complete: () => resolve(Object.entries(groupBy('nc', list, true))),
142
140
  });
143
141
  });
144
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@watsonserve/stock-base",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],
package/types/dao.d.ts CHANGED
@@ -32,6 +32,6 @@ export declare class InfluxDAO {
32
32
  private __query;
33
33
  readFxLatest(): Promise<IFxData>;
34
34
  readStockLatest(ncs: string[]): Promise<IStData[]>;
35
- readDividend(ncs: string[]): Promise<Record<string, any[]>>;
35
+ readDividend(ncs: string[]): Promise<[string, any[]][]>;
36
36
  }
37
37
  export {};