@opra/sqb 1.0.0-alpha.22 → 1.0.0-alpha.24

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.
@@ -206,7 +206,8 @@ class SqbCollectionService extends sqb_entity_service_js_1.SqbEntityService {
206
206
  };
207
207
  return this._executeCommand(command, async () => {
208
208
  const filter = sqb_adapter_js_1.SQBAdapter.parseFilter([await this._getCommonFilter(command), command.options?.filter]);
209
- command.options = { ...command.options, filter };
209
+ const limit = command.options?.limit || this.defaultLimit;
210
+ command.options = { ...command.options, filter, limit };
210
211
  return this._findMany(command);
211
212
  });
212
213
  }
@@ -203,7 +203,8 @@ export class SqbCollectionService extends SqbEntityService {
203
203
  };
204
204
  return this._executeCommand(command, async () => {
205
205
  const filter = SQBAdapter.parseFilter([await this._getCommonFilter(command), command.options?.filter]);
206
- command.options = { ...command.options, filter };
206
+ const limit = command.options?.limit || this.defaultLimit;
207
+ command.options = { ...command.options, filter, limit };
207
208
  return this._findMany(command);
208
209
  });
209
210
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/sqb",
3
- "version": "1.0.0-alpha.22",
3
+ "version": "1.0.0-alpha.24",
4
4
  "description": "Opra SQB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@faker-js/faker": "^8.4.1",
35
- "@sqb/builder": "^4.13.0",
36
- "@sqb/connect": "^4.13.0",
37
- "@sqb/postgres": "^4.13.0",
38
- "postgresql-client": "^2.12.0",
35
+ "@sqb/builder": "^4.14.0",
36
+ "@sqb/connect": "^4.14.0",
37
+ "@sqb/postgres": "^4.14.0",
38
+ "postgrejs": "^2.15.1",
39
39
  "ts-gems": "^3.4.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@opra/core": "^1.0.0-alpha.22",
42
+ "@opra/core": "^1.0.0-alpha.24",
43
43
  "@sqb/connect": ">= 4.10.6"
44
44
  },
45
45
  "type": "module",