@hg-ts/knex 0.5.21 → 0.5.23
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.
|
@@ -32,8 +32,8 @@ export class PostgresTestcontainerService {
|
|
|
32
32
|
.withDatabase(this.config.database)
|
|
33
33
|
.withUsername(this.config.user)
|
|
34
34
|
.withPassword(this.config.password)
|
|
35
|
-
.
|
|
36
|
-
.
|
|
35
|
+
.withExposedPorts({ container: 5432, host: this.config.port })
|
|
36
|
+
.withReuse();
|
|
37
37
|
this.container = await container.start();
|
|
38
38
|
}
|
|
39
39
|
async stopContainer() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres-testcontainer.service.js","sourceRoot":"","sources":["../../src/test-containers/postgres-testcontainer.service.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,GAIN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACN,mBAAmB,GAEnB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,OAAO,4BAA4B;IAEvB,MAAM,CAAa;IAEnB,QAAQ,CAAc;IAE/B,SAAS,CAA6B;IAEtC,WAAW,GAA4B,IAAI,CAAC;IAEpD;QACC,IAAI,CAAC,YAAY,EAAE,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,YAAY;QACxB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,sBAAsB;QAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK,IAAG,EAAE;YAC9C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;YAE/C,MAAM,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,eAAe;QAC3B,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;IAC5B,CAAC;IAEO,KAAK,CAAC,cAAc;QAC3B,MAAM,SAAS,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC;aACnD,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;aAClC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC9B,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;aAClC,
|
|
1
|
+
{"version":3,"file":"postgres-testcontainer.service.js","sourceRoot":"","sources":["../../src/test-containers/postgres-testcontainer.service.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,MAAM,GAIN,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACN,mBAAmB,GAEnB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,OAAO,4BAA4B;IAEvB,MAAM,CAAa;IAEnB,QAAQ,CAAc;IAE/B,SAAS,CAA6B;IAEtC,WAAW,GAA4B,IAAI,CAAC;IAEpD;QACC,IAAI,CAAC,YAAY,EAAE,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,YAAY;QACxB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,sBAAsB;QAClC,MAAM,IAAI,CAAC,QA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AAC;AAEnB;IADhB,MAAM,EAAE;8BACkB,WAAW;8DAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/knex",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.23",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"test:dev": "vitest watch"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@hg-ts-config/typescript": "0.5.
|
|
22
|
-
"@hg-ts/async-context": "0.5.
|
|
23
|
-
"@hg-ts/config-loader": "0.5.
|
|
24
|
-
"@hg-ts/domain": "0.5.
|
|
25
|
-
"@hg-ts/events": "0.5.
|
|
26
|
-
"@hg-ts/exception": "0.5.
|
|
27
|
-
"@hg-ts/execution-mode": "0.5.
|
|
28
|
-
"@hg-ts/linter": "0.5.
|
|
29
|
-
"@hg-ts/logger": "0.5.
|
|
30
|
-
"@hg-ts/repository": "0.5.
|
|
31
|
-
"@hg-ts/tests": "0.5.
|
|
32
|
-
"@hg-ts/types": "0.5.
|
|
33
|
-
"@hg-ts/validation": "0.5.
|
|
21
|
+
"@hg-ts-config/typescript": "0.5.23",
|
|
22
|
+
"@hg-ts/async-context": "0.5.23",
|
|
23
|
+
"@hg-ts/config-loader": "0.5.23",
|
|
24
|
+
"@hg-ts/domain": "0.5.23",
|
|
25
|
+
"@hg-ts/events": "0.5.23",
|
|
26
|
+
"@hg-ts/exception": "0.5.23",
|
|
27
|
+
"@hg-ts/execution-mode": "0.5.23",
|
|
28
|
+
"@hg-ts/linter": "0.5.23",
|
|
29
|
+
"@hg-ts/logger": "0.5.23",
|
|
30
|
+
"@hg-ts/repository": "0.5.23",
|
|
31
|
+
"@hg-ts/tests": "0.5.23",
|
|
32
|
+
"@hg-ts/types": "0.5.23",
|
|
33
|
+
"@hg-ts/validation": "0.5.23",
|
|
34
34
|
"@nestjs/common": "11.1.0",
|
|
35
35
|
"@nestjs/core": "11.1.0",
|
|
36
36
|
"@nestjs/testing": "11.1.0",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"vitest": "4.0.14"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@hg-ts/async-context": "0.5.
|
|
51
|
-
"@hg-ts/config-loader": "0.5.
|
|
52
|
-
"@hg-ts/domain": "0.5.
|
|
53
|
-
"@hg-ts/events": "0.5.
|
|
54
|
-
"@hg-ts/exception": "0.5.
|
|
55
|
-
"@hg-ts/execution-mode": "0.5.
|
|
56
|
-
"@hg-ts/logger": "0.5.
|
|
57
|
-
"@hg-ts/repository": "0.5.
|
|
58
|
-
"@hg-ts/tests": "0.5.
|
|
59
|
-
"@hg-ts/validation": "0.5.
|
|
50
|
+
"@hg-ts/async-context": "0.5.23",
|
|
51
|
+
"@hg-ts/config-loader": "0.5.23",
|
|
52
|
+
"@hg-ts/domain": "0.5.23",
|
|
53
|
+
"@hg-ts/events": "0.5.23",
|
|
54
|
+
"@hg-ts/exception": "0.5.23",
|
|
55
|
+
"@hg-ts/execution-mode": "0.5.23",
|
|
56
|
+
"@hg-ts/logger": "0.5.23",
|
|
57
|
+
"@hg-ts/repository": "0.5.23",
|
|
58
|
+
"@hg-ts/tests": "0.5.23",
|
|
59
|
+
"@hg-ts/validation": "0.5.23",
|
|
60
60
|
"@nestjs/common": "*",
|
|
61
61
|
"@nestjs/core": "*",
|
|
62
62
|
"@nestjs/testing": "*",
|
|
@@ -53,8 +53,8 @@ export class PostgresTestcontainerService implements OnModuleInit, OnApplication
|
|
|
53
53
|
.withDatabase(this.config.database)
|
|
54
54
|
.withUsername(this.config.user)
|
|
55
55
|
.withPassword(this.config.password)
|
|
56
|
-
.
|
|
57
|
-
.
|
|
56
|
+
.withExposedPorts({ container: 5432, host: this.config.port })
|
|
57
|
+
.withReuse();
|
|
58
58
|
|
|
59
59
|
this.container = await container.start();
|
|
60
60
|
}
|