intable 0.0.72 → 0.0.73

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.
@@ -211,18 +211,18 @@ const fetchDataByKeys = (() => {
211
211
  };
212
212
  return async (e, x) => {
213
213
  if (!x.request || (e = e.filter((e) => !isEmpty(e)), !e.length)) return [];
214
- let [S, C] = b(x), w = e.filter((e) => !S[e]), T = w.filter((e) => !C[e]);
215
- if (T.length) {
214
+ let [S, C] = b(x), w = e.filter((e) => !S[e]).filter((e) => !C[e]);
215
+ if (w.length) {
216
216
  let e = x.request({ filters: [{
217
217
  field: x.rowKey,
218
218
  op: "in",
219
- value: T
219
+ value: w
220
220
  }] });
221
- T.forEach((y, b) => {
221
+ w.forEach((y, b) => {
222
222
  C[y] = e.then((e) => S[y] = e.data[b]).finally(() => delete C[y]);
223
- }), await Promise.all(w.map((e) => C[e]));
223
+ });
224
224
  }
225
- return e.map((e) => S[e]);
225
+ return await Promise.all(e.map((e) => C[e])), e.map((e) => S[e]);
226
226
  };
227
227
  })();
228
228
  delegateEvents(["click"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intable",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [