@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.
@@ -6,6 +6,7 @@ export interface CachingModuleOptions {
6
6
  username?: string;
7
7
  password: string;
8
8
  database?: number;
9
+ keepAlive?: number;
9
10
  tls?: boolean;
10
11
  namespace?: string;
11
12
  ttl?: number;
@@ -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
  ]);