@squidcloud/client 1.0.111 → 1.0.113

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/cjs/index.js CHANGED
@@ -31891,7 +31891,6 @@ class QueryBuilder extends BaseQueryBuilder {
31891
31891
  getLimit() {
31892
31892
  return this.query.limit;
31893
31893
  }
31894
- /** @internal */
31895
31894
  limitBy(limit, ...fields) {
31896
31895
  this.query.limitBy = { limit, fields, reverseSort: false };
31897
31896
  return this;
@@ -31967,12 +31966,7 @@ class QueryBuilder extends BaseQueryBuilder {
31967
31966
  const query = this.build();
31968
31967
  return this.querySubscriptionManager
31969
31968
  .processQuery(query, this.collectionName, {}, {}, subscribe, this.forceFetchFromServer)
31970
- .pipe((0,external_rxjs_namespaceObject.timeout)(10000), (0,external_rxjs_namespaceObject.catchError)((err) => {
31971
- if (err.name === 'TimeoutError') {
31972
- return (0,external_rxjs_namespaceObject.throwError)(() => Error(`Error while waiting for query response, collection: ${this.collectionName}, query: ${JSON.stringify(query)}, error: ${err}`));
31973
- }
31974
- return (0,external_rxjs_namespaceObject.throwError)(() => err);
31975
- }), map_map((docs) => {
31969
+ .pipe(map_map((docs) => {
31976
31970
  return docs.map((docRecord) => {
31977
31971
  assert_assertTruthy(Object.keys(docRecord).length === 1);
31978
31972
  const doc = docRecord[this.collectionName];
@@ -16,6 +16,7 @@ export declare class QueryBuilder<DocumentType extends DocumentData> extends Bas
16
16
  /** @inheritDoc */
17
17
  limit(limit: number): this;
18
18
  getLimit(): number;
19
+ limitBy(limit: number, ...fields: FieldName[]): this;
19
20
  /** @inheritDoc */
20
21
  sortBy(fieldName: keyof DocumentType & FieldName, asc?: boolean): this;
21
22
  private mergeConditions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",