tsense 0.0.10 → 0.0.11

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/tsense.js CHANGED
@@ -410,9 +410,9 @@ export class TSense {
410
410
  data.push(doc);
411
411
  }
412
412
  if (data.length < limit) {
413
- return { data, nextCursor: null };
413
+ return { data, nextCursor: null, total: res.found };
414
414
  }
415
- return { data, nextCursor };
415
+ return { data, nextCursor, total: res.found };
416
416
  });
417
417
  }
418
418
  upsert(docs) {
package/dist/types.d.ts CHANGED
@@ -114,5 +114,6 @@ export type SearchListOptions<T> = {
114
114
  export type SearchListResult<T> = {
115
115
  data: T[];
116
116
  nextCursor: string | null;
117
+ total: number;
117
118
  };
118
119
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsense",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "private": false,
5
5
  "description": "Opinionated, fully typed typesense client",
6
6
  "keywords": [