@seas-computing/nestjs-healthcheck 0.0.5-7 → 0.0.5-8
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/constants.d.ts +4 -0
- package/dist/src/constants.js +9 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/healthcheck.module-definition.d.ts +2 -0
- package/dist/src/healthcheck.module-definition.js +7 -0
- package/dist/src/healthcheck.module-definition.js.map +1 -0
- package/dist/src/healthcheck.module.d.ts +2 -6
- package/dist/src/healthcheck.module.js +6 -13
- package/dist/src/healthcheck.module.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/types/healthcheckModuleOptions.d.ts +9 -0
- package/dist/src/types/healthcheckModuleOptions.js +4 -0
- package/dist/src/types/healthcheckModuleOptions.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HEALTH_STRATEGY_NAME = void 0;
|
|
4
|
+
var HEALTH_STRATEGY_NAME;
|
|
5
|
+
(function (HEALTH_STRATEGY_NAME) {
|
|
6
|
+
HEALTH_STRATEGY_NAME["HEALTHCHECK"] = "HealthcheckStrategy";
|
|
7
|
+
HEALTH_STRATEGY_NAME["DEV"] = "DevStrategy";
|
|
8
|
+
})(HEALTH_STRATEGY_NAME || (exports.HEALTH_STRATEGY_NAME = HEALTH_STRATEGY_NAME = {}));
|
|
9
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAGA,IAAY,oBAkBX;AAlBD,WAAY,oBAAoB;IAI9B,2DAAmC,CAAA;IAanC,2CAAmB,CAAA;AACrB,CAAC,EAlBW,oBAAoB,oCAApB,oBAAoB,QAkB/B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MODULE_OPTIONS_TOKEN = exports.ConfigurableModuleClass = void 0;
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
_a = new common_1.ConfigurableModuleBuilder().build(), exports.ConfigurableModuleClass = _a.ConfigurableModuleClass, exports.MODULE_OPTIONS_TOKEN = _a.MODULE_OPTIONS_TOKEN;
|
|
7
|
+
//# sourceMappingURL=healthcheck.module-definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthcheck.module-definition.js","sourceRoot":"","sources":["../../src/healthcheck.module-definition.ts"],"names":[],"mappings":";;;;AAAA,2CAA2D;AAO9C,KAGT,IAAI,kCAAyB,EAA4B,CAAC,KAAK,EAAE,EAFnE,+BAAuB,+BACvB,4BAAoB,2BACgD"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type ConfigProvider = ValueProvider | ExistingProvider | ClassProvider;
|
|
4
|
-
export declare class HealthCheckModule {
|
|
5
|
-
static register(configProvider: ConfigProvider): DynamicModule;
|
|
1
|
+
import { ConfigurableModuleClass } from 'healthcheck.module-definition';
|
|
2
|
+
export declare class HealthcheckModule extends ConfigurableModuleClass {
|
|
6
3
|
}
|
|
7
|
-
export {};
|
|
@@ -5,26 +5,19 @@ 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;
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
9
|
+
exports.HealthcheckModule = void 0;
|
|
11
10
|
const common_1 = require("@nestjs/common");
|
|
12
11
|
const terminus_1 = require("@nestjs/terminus");
|
|
13
12
|
const axios_1 = require("@nestjs/axios");
|
|
14
13
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
15
14
|
const healthcheck_controller_1 = require("./healthcheck.controller");
|
|
16
15
|
const RedisHealthService_1 = require("./RedisHealthService");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
module: HealthCheckModule_1,
|
|
21
|
-
providers: [configProvider],
|
|
22
|
-
exports: [configProvider.provide],
|
|
23
|
-
};
|
|
24
|
-
}
|
|
16
|
+
const healthcheck_module_definition_1 = require("healthcheck.module-definition");
|
|
17
|
+
let HealthcheckModule = class HealthcheckModule extends healthcheck_module_definition_1.ConfigurableModuleClass {
|
|
25
18
|
};
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
19
|
+
exports.HealthcheckModule = HealthcheckModule;
|
|
20
|
+
exports.HealthcheckModule = HealthcheckModule = __decorate([
|
|
28
21
|
(0, common_1.Module)({
|
|
29
22
|
imports: [
|
|
30
23
|
terminus_1.TerminusModule,
|
|
@@ -34,5 +27,5 @@ exports.HealthCheckModule = HealthCheckModule = HealthCheckModule_1 = __decorate
|
|
|
34
27
|
controllers: [healthcheck_controller_1.HealthCheckController],
|
|
35
28
|
providers: [RedisHealthService_1.RedisHealthService],
|
|
36
29
|
})
|
|
37
|
-
],
|
|
30
|
+
], HealthcheckModule);
|
|
38
31
|
//# sourceMappingURL=healthcheck.module.js.map
|
|
@@ -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,2CAAwC;AACxC,+CAAkD;AAClD,yCAA2C;AAC3C,6CAAgD;AAChD,qEAAiE;AACjE,6DAA0D;AAC1D,iFAAwE;AAYjE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,uDAAuB;CAAG,CAAA;AAApD,8CAAiB;4BAAjB,iBAAiB;IAV7B,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;GAEW,iBAAiB,CAAmC"}
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -14,9 +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
|
-
exports.
|
|
17
|
+
exports.HealthcheckModule = void 0;
|
|
18
18
|
var healthcheck_module_1 = require("./healthcheck.module");
|
|
19
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "HealthcheckModule", { enumerable: true, get: function () { return healthcheck_module_1.HealthcheckModule; } });
|
|
20
20
|
__exportStar(require("./healthcheck.controller"), exports);
|
|
21
21
|
__exportStar(require("./RedisHealthService"), exports);
|
|
22
22
|
__exportStar(require("./types/ConfigServiceInterface"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
|
|
2
|
+
import { HEALTH_STRATEGY_NAME } from '../constants';
|
|
3
|
+
export interface HealthcheckModuleOptions {
|
|
4
|
+
casBaseURL: string;
|
|
5
|
+
dbOptions: TypeOrmModuleOptions;
|
|
6
|
+
redisUrl: string;
|
|
7
|
+
version: string;
|
|
8
|
+
strategy: HEALTH_STRATEGY_NAME;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthcheckModuleOptions.js","sourceRoot":"","sources":["../../../src/types/healthcheckModuleOptions.ts"],"names":[],"mappings":";;AAYC,CAAC"}
|