@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.
@@ -0,0 +1,4 @@
1
+ export declare enum HEALTH_STRATEGY_NAME {
2
+ HEALTHCHECK = "HealthcheckStrategy",
3
+ DEV = "DevStrategy"
4
+ }
@@ -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,2 @@
1
+ import { HealthcheckModuleOptions } from './types/healthcheckModuleOptions';
2
+ export declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<HealthcheckModuleOptions, "register", "create", {}>, MODULE_OPTIONS_TOKEN: string | symbol;
@@ -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 { DynamicModule } from '@nestjs/common';
2
- import type { ValueProvider, ExistingProvider, ClassProvider } from '@nestjs/common';
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.HealthCheckModule = void 0;
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
- let HealthCheckModule = HealthCheckModule_1 = class HealthCheckModule {
18
- static register(configProvider) {
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.HealthCheckModule = HealthCheckModule;
27
- exports.HealthCheckModule = HealthCheckModule = HealthCheckModule_1 = __decorate([
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
- ], HealthCheckModule);
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":";;;;;;;;;;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"}
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"}
@@ -1,4 +1,4 @@
1
- export { HealthCheckModule } from './healthcheck.module';
1
+ export { HealthcheckModule } from './healthcheck.module';
2
2
  export * from './healthcheck.controller';
3
3
  export * from './RedisHealthService';
4
4
  export * from './types/ConfigServiceInterface';
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.HealthCheckModule = void 0;
17
+ exports.HealthcheckModule = void 0;
18
18
  var healthcheck_module_1 = require("./healthcheck.module");
19
- Object.defineProperty(exports, "HealthCheckModule", { enumerable: true, get: function () { return healthcheck_module_1.HealthCheckModule; } });
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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
4
+ //# sourceMappingURL=healthcheckModuleOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthcheckModuleOptions.js","sourceRoot":"","sources":["../../../src/types/healthcheckModuleOptions.ts"],"names":[],"mappings":";;AAYC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seas-computing/nestjs-healthcheck",
3
- "version": "0.0.5-7",
3
+ "version": "0.0.5-8",
4
4
  "description": "A standalone healthcheck module for NestJS apps",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",