@seas-computing/nestjs-healthcheck 0.0.5-3 → 0.0.5-5
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/src/healthcheck.controller.js +2 -1
- package/dist/src/healthcheck.controller.js.map +1 -1
- package/dist/src/healthcheck.module.d.ts +3 -2
- package/dist/src/healthcheck.module.js +16 -2
- package/dist/src/healthcheck.module.js.map +1 -1
- package/dist/src/types/ConfigServiceInterface.d.ts +1 -0
- package/dist/src/types/ConfigServiceInterface.js +2 -0
- package/dist/src/types/ConfigServiceInterface.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ exports.HealthCheckController = void 0;
|
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const swagger_1 = require("@nestjs/swagger");
|
|
18
18
|
const terminus_1 = require("@nestjs/terminus");
|
|
19
|
+
const ConfigServiceInterface_1 = require("./types/ConfigServiceInterface");
|
|
19
20
|
const RedisHealthService_1 = require("./RedisHealthService");
|
|
20
21
|
let HealthCheckController = class HealthCheckController {
|
|
21
22
|
constructor(config, health, db, http, redisHealth) {
|
|
@@ -55,7 +56,7 @@ __decorate([
|
|
|
55
56
|
exports.HealthCheckController = HealthCheckController = __decorate([
|
|
56
57
|
(0, swagger_1.ApiTags)('Health Check'),
|
|
57
58
|
(0, common_1.Controller)('health-check'),
|
|
58
|
-
__param(0, (0, common_1.Inject)(
|
|
59
|
+
__param(0, (0, common_1.Inject)(ConfigServiceInterface_1.CONFIG_SERVICE)),
|
|
59
60
|
__param(1, (0, common_1.Inject)(terminus_1.HealthCheckService)),
|
|
60
61
|
__param(2, (0, common_1.Inject)(terminus_1.TypeOrmHealthIndicator)),
|
|
61
62
|
__param(3, (0, common_1.Inject)(terminus_1.HttpHealthIndicator)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"healthcheck.controller.js","sourceRoot":"","sources":["../../src/healthcheck.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyD;AACzD,6CAAuE;AACvE,+CAAmI;
|
|
1
|
+
{"version":3,"file":"healthcheck.controller.js","sourceRoot":"","sources":["../../src/healthcheck.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyD;AACzD,6CAAuE;AACvE,+CAAmI;AACnI,2EAAwF;AACxF,6DAA0D;AAInD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAEhC,YACkC,MAA8B,EAC1B,MAA0B,EACtB,EAA0B,EAC7B,IAAyB,EAC1B,WAA+B;QAJnC,WAAM,GAAN,MAAM,CAAwB;QAC1B,WAAM,GAAN,MAAM,CAAoB;QACtB,OAAE,GAAF,EAAE,CAAwB;QAC7B,SAAI,GAAJ,IAAI,CAAqB;QAC1B,gBAAW,GAAX,WAAW,CAAoB;IAClE,CAAC;IAcS,AAAN,KAAK,CAAC,cAAc;QAEzB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YACrC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC;YACnC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CACvB,aAAa,EACb,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,aAAa,CACvC;YACD,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,oBAAoB,EAAE;SACpD,CACA,CAAC;QACF,OAAO;YACL,GAAG,MAAM;YACT,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY;SAClC,CAAC;IACJ,CAAC;CACF,CAAA;AAtCY,sDAAqB;AAsBnB;IATZ,IAAA,YAAG,EAAC,GAAG,CAAC;IACR,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,sDAAsD;KAChE,CAAC;IACD,IAAA,uBAAa,EAAC;QACb,WAAW,EAAE,gBAAgB;QAC7B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,sBAAW,GAAE;;;;2DAgBb;gCArCU,qBAAqB;IAFjC,IAAA,iBAAO,EAAC,cAAc,CAAC;IACvB,IAAA,mBAAU,EAAC,cAAc,CAAC;IAItB,WAAA,IAAA,eAAM,EAAC,uCAAc,CAAC,CAAA;IACtB,WAAA,IAAA,eAAM,EAAC,6BAAkB,CAAC,CAAA;IAC1B,WAAA,IAAA,eAAM,EAAC,iCAAsB,CAAC,CAAA;IAC9B,WAAA,IAAA,eAAM,EAAC,8BAAmB,CAAC,CAAA;IAC3B,WAAA,IAAA,eAAM,EAAC,uCAAkB,CAAC,CAAA;6CAHiB,6BAAkB;QAClB,iCAAsB;QACvB,8BAAmB;QACb,uCAAkB;GAP1D,qBAAqB,CAsCjC"}
|
|
@@ -5,6 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var HealthCheckModule_1;
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.HealthCheckModule = void 0;
|
|
10
11
|
const common_1 = require("@nestjs/common");
|
|
@@ -13,10 +14,23 @@ const axios_1 = require("@nestjs/axios");
|
|
|
13
14
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
14
15
|
const healthcheck_controller_1 = require("./healthcheck.controller");
|
|
15
16
|
const RedisHealthService_1 = require("./RedisHealthService");
|
|
16
|
-
|
|
17
|
+
const ConfigServiceInterface_1 = require("./types/ConfigServiceInterface");
|
|
18
|
+
let HealthCheckModule = HealthCheckModule_1 = class HealthCheckModule {
|
|
19
|
+
static register() {
|
|
20
|
+
return {
|
|
21
|
+
module: HealthCheckModule_1,
|
|
22
|
+
providers: [
|
|
23
|
+
{
|
|
24
|
+
provide: ConfigServiceInterface_1.CONFIG_SERVICE,
|
|
25
|
+
useValue: {},
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
exports: [ConfigServiceInterface_1.CONFIG_SERVICE],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
17
31
|
};
|
|
18
32
|
exports.HealthCheckModule = HealthCheckModule;
|
|
19
|
-
exports.HealthCheckModule = HealthCheckModule = __decorate([
|
|
33
|
+
exports.HealthCheckModule = HealthCheckModule = HealthCheckModule_1 = __decorate([
|
|
20
34
|
(0, common_1.Module)({
|
|
21
35
|
imports: [
|
|
22
36
|
terminus_1.TerminusModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"healthcheck.module.js","sourceRoot":"","sources":["../../src/healthcheck.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"healthcheck.module.js","sourceRoot":"","sources":["../../src/healthcheck.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,+CAAkD;AAClD,yCAA2C;AAC3C,6CAAgD;AAChD,qEAAiE;AACjE,6DAA0D;AAC1D,2EAAgE;AAazD,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAC5B,MAAM,CAAC,QAAQ;QACb,OAAO;YACL,MAAM,EAAE,mBAAiB;YACzB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,uCAAc;oBACvB,QAAQ,EAAE,EAAE;iBACb;aACF;YACD,OAAO,EAAE,CAAC,uCAAc,CAAC;SAC1B,CAAC;IACJ,CAAC;CACF,CAAA;AAbY,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,CAa7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigServiceInterface.js","sourceRoot":"","sources":["../../../src/types/ConfigServiceInterface.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ConfigServiceInterface.js","sourceRoot":"","sources":["../../../src/types/ConfigServiceInterface.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,gBAAgB,CAAC"}
|