@mondart/nestjs-common-module 2.3.1 → 2.3.3
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/lib/caching/caching.interface.d.ts +1 -0
- package/dist/lib/caching/caching.module.js +2 -0
- package/dist/lib/health-check/health-check-options.interface.d.ts +6 -0
- package/dist/lib/health-check/health-check.controller.js +16 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ let CachingModule = CachingModule_1 = class CachingModule {
|
|
|
28
28
|
socket: {
|
|
29
29
|
host: cachingOptions.host,
|
|
30
30
|
port: cachingOptions.port,
|
|
31
|
+
keepAlive: cachingOptions.keepAlive,
|
|
31
32
|
tls: cachingOptions.tls || false,
|
|
32
33
|
},
|
|
33
34
|
database: cachingOptions.database,
|
|
@@ -69,6 +70,7 @@ let CachingModule = CachingModule_1 = class CachingModule {
|
|
|
69
70
|
socket: {
|
|
70
71
|
host: cachingOptions.host,
|
|
71
72
|
port: cachingOptions.port,
|
|
73
|
+
keepAlive: cachingOptions.keepAlive,
|
|
72
74
|
tls: cachingOptions.tls || false,
|
|
73
75
|
},
|
|
74
76
|
database: cachingOptions.database,
|
|
@@ -9,12 +9,18 @@ export interface HealthCheckModuleOptions {
|
|
|
9
9
|
redis?: {
|
|
10
10
|
host: string;
|
|
11
11
|
port: number;
|
|
12
|
+
username?: string;
|
|
12
13
|
password?: string;
|
|
14
|
+
database?: number;
|
|
15
|
+
tls?: boolean;
|
|
13
16
|
};
|
|
14
17
|
bull?: {
|
|
15
18
|
host: string;
|
|
16
19
|
port: number;
|
|
20
|
+
username?: string;
|
|
17
21
|
password?: string;
|
|
22
|
+
database?: number;
|
|
23
|
+
tls?: boolean;
|
|
18
24
|
};
|
|
19
25
|
kafka?: {
|
|
20
26
|
clientId: string;
|
|
@@ -40,7 +40,15 @@ let HealthCheckController = class HealthCheckController {
|
|
|
40
40
|
options: {
|
|
41
41
|
host: this.options?.redis?.host,
|
|
42
42
|
port: this.options?.redis?.port,
|
|
43
|
+
username: this.options?.redis?.username,
|
|
43
44
|
password: this.options?.redis?.password,
|
|
45
|
+
db: this.options?.redis?.database,
|
|
46
|
+
tls: this.options?.redis?.tls
|
|
47
|
+
? {
|
|
48
|
+
host: this.options?.redis?.host,
|
|
49
|
+
port: this.options?.redis?.port,
|
|
50
|
+
}
|
|
51
|
+
: undefined,
|
|
44
52
|
},
|
|
45
53
|
}),
|
|
46
54
|
]);
|
|
@@ -52,7 +60,15 @@ let HealthCheckController = class HealthCheckController {
|
|
|
52
60
|
options: {
|
|
53
61
|
host: this.options?.bull?.host,
|
|
54
62
|
port: this.options?.bull?.port,
|
|
63
|
+
username: this.options?.bull?.username,
|
|
55
64
|
password: this.options?.bull?.password,
|
|
65
|
+
db: this.options?.bull?.database,
|
|
66
|
+
tls: this.options?.bull?.tls
|
|
67
|
+
? {
|
|
68
|
+
host: this.options?.bull?.host,
|
|
69
|
+
port: this.options?.bull?.port,
|
|
70
|
+
}
|
|
71
|
+
: undefined,
|
|
56
72
|
},
|
|
57
73
|
}),
|
|
58
74
|
]);
|