@vitia.ai/secure-api-client-vue 0.1.6 → 0.1.7

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/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export declare interface PagingState {
45
45
  pages: any[];
46
46
  count: number;
47
47
  total: number;
48
+ data: any[];
48
49
  }
49
50
 
50
51
  export declare const SDK_CLIENT: unique symbol;
package/dist/index.mjs CHANGED
@@ -3013,8 +3013,9 @@ ${a}`, g = await Ls(o, new TextEncoder().encode(u)), w = ce(g), v = new Headers(
3013
3013
  if (Object.keys(this.pagingBuffer).includes(i) || (this.pagingBuffer[i] = {
3014
3014
  pages: new Array(l.tot_pages),
3015
3015
  count: 0,
3016
- total: l.tot_pages
3017
- }), this.pagingBuffer[i].pages[l.page_num - 1] = l, this.pagingBuffer[i].count++, l.tot_pages > l.page_num && l.has_more && this.pagingBuffer[i].count < this.pagingBuffer[i].total) {
3016
+ total: l.tot_pages,
3017
+ data: []
3018
+ }), this.pagingBuffer[i].pages[l.page_num - 1] = l, this.pagingBuffer[i].data.push(...a), this.pagingBuffer[i].count++, l.tot_pages > l.page_num && l.has_more && this.pagingBuffer[i].count < this.pagingBuffer[i].total) {
3018
3019
  let f = e.includes("?") ? "&" : "?";
3019
3020
  this.get(`${e}${f}page_num=${l.page_num + 1}`, o);
3020
3021
  return;
@@ -3027,7 +3028,7 @@ ${a}`, g = await Ls(o, new TextEncoder().encode(u)), w = ce(g), v = new Headers(
3027
3028
  topic: l.topic,
3028
3029
  correlation_id: l.correlation_id,
3029
3030
  content_type: l.content_type,
3030
- data: this.pagingBuffer[i].pages.map((f) => f.data).flat()
3031
+ data: this.pagingBuffer[i].data
3031
3032
  });
3032
3033
  }), await this.get(e, o);
3033
3034
  }