@seas-computing/nestjs-healthcheck 0.0.5-5 → 0.0.5-7
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.
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { DynamicModule } from '@nestjs/common';
|
|
2
|
+
import type { ValueProvider, ExistingProvider, ClassProvider } from '@nestjs/common';
|
|
3
|
+
type ConfigProvider = ValueProvider | ExistingProvider | ClassProvider;
|
|
2
4
|
export declare class HealthCheckModule {
|
|
3
|
-
static register(): DynamicModule;
|
|
5
|
+
static register(configProvider: ConfigProvider): DynamicModule;
|
|
4
6
|
}
|
|
7
|
+
export {};
|
|
@@ -14,18 +14,12 @@ const axios_1 = require("@nestjs/axios");
|
|
|
14
14
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
15
15
|
const healthcheck_controller_1 = require("./healthcheck.controller");
|
|
16
16
|
const RedisHealthService_1 = require("./RedisHealthService");
|
|
17
|
-
const ConfigServiceInterface_1 = require("./types/ConfigServiceInterface");
|
|
18
17
|
let HealthCheckModule = HealthCheckModule_1 = class HealthCheckModule {
|
|
19
|
-
static register() {
|
|
18
|
+
static register(configProvider) {
|
|
20
19
|
return {
|
|
21
20
|
module: HealthCheckModule_1,
|
|
22
|
-
providers: [
|
|
23
|
-
|
|
24
|
-
provide: ConfigServiceInterface_1.CONFIG_SERVICE,
|
|
25
|
-
useValue: {},
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
exports: [ConfigServiceInterface_1.CONFIG_SERVICE],
|
|
21
|
+
providers: [configProvider],
|
|
22
|
+
exports: [configProvider.provide],
|
|
29
23
|
};
|
|
30
24
|
}
|
|
31
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"healthcheck.module.js","sourceRoot":"","sources":["../../src/healthcheck.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,+CAAkD;AAClD,yCAA2C;AAC3C,6CAAgD;
|
|
1
|
+
{"version":3,"file":"healthcheck.module.js","sourceRoot":"","sources":["../../src/healthcheck.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,+CAAkD;AAClD,yCAA2C;AAC3C,6CAAgD;AAMhD,qEAAiE;AACjE,6DAA0D;AAiBnD,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAC5B,MAAM,CAAC,QAAQ,CAAC,cAA8B;QAC5C,OAAO;YACL,MAAM,EAAE,mBAAiB;YACzB,SAAS,EAAE,CAAC,cAAc,CAAC;YAC3B,OAAO,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;SAClC,CAAC;IACJ,CAAC;CACF,CAAA;AARY,8CAAiB;4BAAjB,iBAAiB;IAX7B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,yBAAc;YACd,kBAAU;YACV,uBAAa,CAAC,UAAU,CAAC,EAAE,CAAC;SAC7B;QACD,WAAW,EAAE,CAAC,8CAAqB,CAAC;QACpC,SAAS,EAAE,CAAC,uCAAkB,CAAC;KAChC,CAAC;GAGW,iBAAiB,CAQ7B"}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
exports.HealthCheckModule = void 0;
|
|
18
|
+
var healthcheck_module_1 = require("./healthcheck.module");
|
|
19
|
+
Object.defineProperty(exports, "HealthCheckModule", { enumerable: true, get: function () { return healthcheck_module_1.HealthCheckModule; } });
|
|
18
20
|
__exportStar(require("./healthcheck.controller"), exports);
|
|
19
21
|
__exportStar(require("./RedisHealthService"), exports);
|
|
20
22
|
__exportStar(require("./types/ConfigServiceInterface"), exports);
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAyD;AAAhD,uHAAA,iBAAiB,OAAA;AAC1B,2DAAyC;AACzC,uDAAqC;AACrC,iEAA+C"}
|