@seas-computing/nestjs-healthcheck 0.0.5-4 → 0.0.5-6

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,3 +1,7 @@
1
- declare class HealthCheckModule {
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;
2
6
  }
3
- export { HealthCheckModule };
7
+ export {};
@@ -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,17 @@ 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
- let HealthCheckModule = class HealthCheckModule {
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
+ }
17
25
  };
18
26
  exports.HealthCheckModule = HealthCheckModule;
19
- exports.HealthCheckModule = HealthCheckModule = __decorate([
27
+ exports.HealthCheckModule = HealthCheckModule = HealthCheckModule_1 = __decorate([
20
28
  (0, common_1.Module)({
21
29
  imports: [
22
30
  terminus_1.TerminusModule,
@@ -1 +1 @@
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;AAY1D,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAEjB,8CAAiB;4BAFpB,iBAAiB;IAVtB,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;GAEI,iBAAiB,CAAG"}
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seas-computing/nestjs-healthcheck",
3
- "version": "0.0.5-4",
3
+ "version": "0.0.5-6",
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",