@opra/sqb 0.18.3 → 0.19.0

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.
@@ -34,7 +34,7 @@ common_1.DocumentFactory.prototype.extractFieldSchema = async function (target,
34
34
  switch (sqbField.dataType) {
35
35
  case connect_1.DataType.GUID:
36
36
  if (!target.type || (detectType && target.type === 'string'))
37
- target.type = 'guid';
37
+ target.type = 'uuid';
38
38
  break;
39
39
  case connect_1.DataType.JSON:
40
40
  if (!target.type || (detectType && target.type === 'any'))
@@ -112,4 +112,4 @@ var SQBAdapter;
112
112
  throw new Error(`Unimplemented request method "${request.operation}"`);
113
113
  }
114
114
  SQBAdapter.transformRequest = transformRequest;
115
- })(SQBAdapter = exports.SQBAdapter || (exports.SQBAdapter = {}));
115
+ })(SQBAdapter || (exports.SQBAdapter = SQBAdapter = {}));
@@ -55,6 +55,7 @@ class SqbCollectionResource extends core_1.CollectionResourceBase {
55
55
  return service.with(ctx).findMany(prepared.options);
56
56
  }
57
57
  }
58
+ exports.SqbCollectionResource = SqbCollectionResource;
58
59
  tslib_1.__decorate([
59
60
  common_1.Collection.Create(),
60
61
  tslib_1.__metadata("design:type", Function),
@@ -97,4 +98,3 @@ tslib_1.__decorate([
97
98
  tslib_1.__metadata("design:paramtypes", [Object]),
98
99
  tslib_1.__metadata("design:returntype", Promise)
99
100
  ], SqbCollectionResource.prototype, "findMany", null);
100
- exports.SqbCollectionResource = SqbCollectionResource;
@@ -27,6 +27,7 @@ class SqbSingletonResource {
27
27
  return service.with(ctx).findOne(prepared.options);
28
28
  }
29
29
  }
30
+ exports.SqbSingletonResource = SqbSingletonResource;
30
31
  tslib_1.__decorate([
31
32
  common_1.Singleton.Create(),
32
33
  tslib_1.__metadata("design:type", Function),
@@ -51,4 +52,3 @@ tslib_1.__decorate([
51
52
  tslib_1.__metadata("design:paramtypes", [Object]),
52
53
  tslib_1.__metadata("design:returntype", Promise)
53
54
  ], SqbSingletonResource.prototype, "update", null);
54
- exports.SqbSingletonResource = SqbSingletonResource;
@@ -32,7 +32,7 @@ DocumentFactory.prototype.extractFieldSchema = async function (target, ctor, met
32
32
  switch (sqbField.dataType) {
33
33
  case SqbDataType.GUID:
34
34
  if (!target.type || (detectType && target.type === 'string'))
35
- target.type = 'guid';
35
+ target.type = 'uuid';
36
36
  break;
37
37
  case SqbDataType.JSON:
38
38
  if (!target.type || (detectType && target.type === 'any'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/sqb",
3
- "version": "0.18.3",
3
+ "version": "0.19.0",
4
4
  "description": "Opra SQB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -29,15 +29,15 @@
29
29
  "lodash.omitby": "^4.6.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@faker-js/faker": "^8.0.0",
32
+ "@faker-js/faker": "^8.0.2",
33
33
  "@sqb/builder": "^4.9.0",
34
34
  "@sqb/connect": "^4.9.0",
35
35
  "@sqb/postgres": "^4.9.0",
36
- "postgresql-client": "^2.5.5",
36
+ "postgresql-client": "^2.5.9",
37
37
  "ts-gems": "^2.4.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@opra/core": "^0.18.3",
40
+ "@opra/core": "^0.19.0",
41
41
  "@sqb/connect": ">= 4.9.0"
42
42
  },
43
43
  "type": "module",