@hg-ts/knex 0.7.8 → 0.7.9
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/knex.module.d.ts.map +1 -1
- package/dist/knex.module.js +3 -1
- package/dist/knex.module.js.map +1 -1
- package/package.json +24 -24
- package/src/knex.module.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.module.d.ts","sourceRoot":"","sources":["../src/knex.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"knex.module.d.ts","sourceRoot":"","sources":["../src/knex.module.ts"],"names":[],"mappings":"AAWA,qBAea,UAAU;CAAG"}
|
package/dist/knex.module.js
CHANGED
|
@@ -3,6 +3,7 @@ import { ConfigLoader } from '@hg-ts/config-loader';
|
|
|
3
3
|
import { Global, Module, } from '@nestjs/common';
|
|
4
4
|
import { KnexConfig } from './knex.config.js';
|
|
5
5
|
import { KnexService } from './knex.service.js';
|
|
6
|
+
import { OutboxRepository } from './outbox/index.js';
|
|
6
7
|
let KnexModule = class KnexModule {
|
|
7
8
|
};
|
|
8
9
|
KnexModule = __decorate([
|
|
@@ -10,6 +11,7 @@ KnexModule = __decorate([
|
|
|
10
11
|
Module({
|
|
11
12
|
providers: [
|
|
12
13
|
KnexService,
|
|
14
|
+
OutboxRepository,
|
|
13
15
|
{
|
|
14
16
|
provide: KnexConfig,
|
|
15
17
|
async useFactory(configLoader) {
|
|
@@ -18,7 +20,7 @@ KnexModule = __decorate([
|
|
|
18
20
|
inject: [ConfigLoader],
|
|
19
21
|
},
|
|
20
22
|
],
|
|
21
|
-
exports: [KnexService, KnexConfig],
|
|
23
|
+
exports: [KnexService, KnexConfig, OutboxRepository],
|
|
22
24
|
})
|
|
23
25
|
], KnexModule);
|
|
24
26
|
export { KnexModule };
|
package/dist/knex.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knex.module.js","sourceRoot":"","sources":["../src/knex.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EACN,MAAM,EACN,MAAM,GACN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"knex.module.js","sourceRoot":"","sources":["../src/knex.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EACN,MAAM,EACN,MAAM,GACN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAiB9C,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,UAAU;IAftB,MAAM,EAAE;IACR,MAAM,CAAC;QACP,SAAS,EAAE;YACV,WAAW;YACX,gBAAgB;YAChB;gBACC,OAAO,EAAE,UAAU;gBACnB,KAAK,CAAC,UAAU,CAAC,YAA0B;oBAC1C,OAAO,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;gBAC9C,CAAC;gBACD,MAAM,EAAE,CAAC,YAAY,CAAC;aACtB;SACD;QACD,OAAO,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,gBAAgB,CAAC;KACpD,CAAC;GACW,UAAU,CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/knex",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"test:dev": "vitest watch"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@hg-ts-config/typescript": "0.7.
|
|
23
|
-
"@hg-ts/async-context": "0.7.
|
|
24
|
-
"@hg-ts/config-loader": "0.7.
|
|
25
|
-
"@hg-ts/domain": "0.7.
|
|
26
|
-
"@hg-ts/events": "0.7.
|
|
27
|
-
"@hg-ts/exception": "0.7.
|
|
28
|
-
"@hg-ts/execution-mode": "0.7.
|
|
29
|
-
"@hg-ts/linter": "0.7.
|
|
30
|
-
"@hg-ts/logger": "0.7.
|
|
31
|
-
"@hg-ts/repository": "0.7.
|
|
32
|
-
"@hg-ts/tests": "0.7.
|
|
33
|
-
"@hg-ts/types": "0.7.
|
|
34
|
-
"@hg-ts/validation": "0.7.
|
|
22
|
+
"@hg-ts-config/typescript": "0.7.9",
|
|
23
|
+
"@hg-ts/async-context": "0.7.9",
|
|
24
|
+
"@hg-ts/config-loader": "0.7.9",
|
|
25
|
+
"@hg-ts/domain": "0.7.9",
|
|
26
|
+
"@hg-ts/events": "0.7.9",
|
|
27
|
+
"@hg-ts/exception": "0.7.9",
|
|
28
|
+
"@hg-ts/execution-mode": "0.7.9",
|
|
29
|
+
"@hg-ts/linter": "0.7.9",
|
|
30
|
+
"@hg-ts/logger": "0.7.9",
|
|
31
|
+
"@hg-ts/repository": "0.7.9",
|
|
32
|
+
"@hg-ts/tests": "0.7.9",
|
|
33
|
+
"@hg-ts/types": "0.7.9",
|
|
34
|
+
"@hg-ts/validation": "0.7.9",
|
|
35
35
|
"@nestjs/common": "11.1.0",
|
|
36
36
|
"@nestjs/core": "11.1.0",
|
|
37
37
|
"@nestjs/testing": "11.1.0",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"vitest": "4.0.14"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@hg-ts/async-context": "0.7.
|
|
53
|
-
"@hg-ts/config-loader": "0.7.
|
|
54
|
-
"@hg-ts/domain": "0.7.
|
|
55
|
-
"@hg-ts/events": "0.7.
|
|
56
|
-
"@hg-ts/exception": "0.7.
|
|
57
|
-
"@hg-ts/execution-mode": "0.7.
|
|
58
|
-
"@hg-ts/logger": "0.7.
|
|
59
|
-
"@hg-ts/repository": "0.7.
|
|
60
|
-
"@hg-ts/tests": "0.7.
|
|
61
|
-
"@hg-ts/validation": "0.7.
|
|
52
|
+
"@hg-ts/async-context": "0.7.9",
|
|
53
|
+
"@hg-ts/config-loader": "0.7.9",
|
|
54
|
+
"@hg-ts/domain": "0.7.9",
|
|
55
|
+
"@hg-ts/events": "0.7.9",
|
|
56
|
+
"@hg-ts/exception": "0.7.9",
|
|
57
|
+
"@hg-ts/execution-mode": "0.7.9",
|
|
58
|
+
"@hg-ts/logger": "0.7.9",
|
|
59
|
+
"@hg-ts/repository": "0.7.9",
|
|
60
|
+
"@hg-ts/tests": "0.7.9",
|
|
61
|
+
"@hg-ts/validation": "0.7.9",
|
|
62
62
|
"@nestjs/common": "*",
|
|
63
63
|
"@nestjs/core": "*",
|
|
64
64
|
"@nestjs/testing": "*",
|
package/src/knex.module.ts
CHANGED
|
@@ -7,11 +7,13 @@ import {
|
|
|
7
7
|
|
|
8
8
|
import { KnexConfig } from './knex.config.js';
|
|
9
9
|
import { KnexService } from './knex.service.js';
|
|
10
|
+
import { OutboxRepository } from './outbox/index.js';
|
|
10
11
|
|
|
11
12
|
@Global()
|
|
12
13
|
@Module({
|
|
13
14
|
providers: [
|
|
14
15
|
KnexService,
|
|
16
|
+
OutboxRepository,
|
|
15
17
|
{
|
|
16
18
|
provide: KnexConfig,
|
|
17
19
|
async useFactory(configLoader: ConfigLoader): Promise<KnexConfig> {
|
|
@@ -20,6 +22,6 @@ import { KnexService } from './knex.service.js';
|
|
|
20
22
|
inject: [ConfigLoader],
|
|
21
23
|
},
|
|
22
24
|
],
|
|
23
|
-
exports: [KnexService, KnexConfig],
|
|
25
|
+
exports: [KnexService, KnexConfig, OutboxRepository],
|
|
24
26
|
})
|
|
25
27
|
export class KnexModule {}
|