@minimaltech/node-infra 0.5.9-29 → 0.5.9-30

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.
@@ -43,10 +43,14 @@ class BaseIdEntity extends BaseNumberIdEntity {
43
43
  }
44
44
  exports.BaseIdEntity = BaseIdEntity;
45
45
  // ---------------------------------------------------------------------
46
- class BaseNumberTzEntity extends (0, mixins_1.TzMixin)(BaseNumberIdEntity) {
46
+ const tzOpts = {
47
+ createdAt: { columnName: 'created_at', dataType: 'TIMESTAMPTZ' },
48
+ modifiedAt: { enable: true, columnName: 'modified_at', dataType: 'TIMESTAMPTZ' },
49
+ };
50
+ class BaseNumberTzEntity extends (0, mixins_1.TzMixin)(BaseNumberIdEntity, tzOpts) {
47
51
  }
48
52
  exports.BaseNumberTzEntity = BaseNumberTzEntity;
49
- class BaseStringTzEntity extends (0, mixins_1.TzMixin)(BaseStringIdEntity) {
53
+ class BaseStringTzEntity extends (0, mixins_1.TzMixin)(BaseStringIdEntity, tzOpts) {
50
54
  }
51
55
  exports.BaseStringTzEntity = BaseStringTzEntity;
52
56
  class BaseTzEntity extends BaseNumberTzEntity {
@@ -17,8 +17,8 @@ export declare class RSA extends BaseCryptoAlgorithm<RSAAlgorithmType, IO> {
17
17
  generateDERKeyPair(opts?: {
18
18
  modulus: number;
19
19
  }): {
20
- publicKey: Buffer<ArrayBufferLike>;
21
- privateKey: Buffer<ArrayBufferLike>;
20
+ publicKey: NonSharedBuffer;
21
+ privateKey: NonSharedBuffer;
22
22
  };
23
23
  encrypt(message: string, pubKey: string, opts?: IO): string;
24
24
  decrypt(message: string, privKey: string, opts?: IO): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minimaltech/node-infra",
3
- "version": "0.5.9-29",
3
+ "version": "0.5.9-30",
4
4
  "description": "Minimal Technology - NodeJS Infrastructure - Loopback 4 Framework",
5
5
  "keywords": [
6
6
  "web",