@seas-computing/nestjs-healthcheck 0.0.0 → 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2025 President and Fellows of Harvard College. All rights
2
+ reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+
10
+ 2. Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ 3. Neither the name of the copyright holder nor the names of its contributors
15
+ may be used to endorse or promote products derived from this software without
16
+ specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
27
+ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md ADDED
@@ -0,0 +1,103 @@
1
+ # NestJS HealthCheck Module
2
+
3
+ The `nestjs-healthcheck` package provides a standlone NestJS module that verifies the availability of essential application dependencies. This includes:
4
+ - pinging the application database using `TypeOrmHealthIndicator`
5
+ - performing an HTTP ping to the HarvardKey (CAS logout) URL uisng `HttpHealthIndicator`
6
+ - pinging Redis with a custom `RedisHealthService`
7
+ It returns a composite health status result and the current app version. It is intended to be included in a larger application and assumes the presence of a Redis connection and database connection during runtime.
8
+
9
+ ## Installation
10
+ ```
11
+ npm install @seas-computing/nestjs-healthcheck
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ Add the `HealthCheckController` to the consuming application's `AppModule` (or other root module), along with providers for the `CONFIG_SERVICE`, `TypeOrmHealthIndicator`, `HttpHealthIndicator`, and `RedisHealthService`.
17
+
18
+ Example from makerspace:
19
+ ```ts
20
+ @Module({
21
+ imports: [
22
+ ConfigModule, // Ensure this is at the top
23
+ LogModule.registerAsync({
24
+ imports: [ConfigModule],
25
+ inject: [ConfigService],
26
+ useFactory: (config: ConfigService) => config.logLevel,
27
+ }),
28
+ HarvardKeyModule.registerAsync({
29
+ inject: [ConfigService],
30
+ imports: [ConfigModule],
31
+ useFactory: (
32
+ config: ConfigService
33
+ ): HarvardKeyModuleOptions => config.harvardKeyConfig,
34
+ }),
35
+ SessionModule.forRootAsync({
36
+ imports: [ConfigModule],
37
+ inject: [ConfigService],
38
+ useFactory: async (
39
+ config: ConfigService
40
+ ): Promise<NestSessionOptions> => {
41
+ const client = createClient(config.redisClientOptions);
42
+ // Version 4 of redis does not automatically connect to the server:
43
+ // https://github.com/redis/node-redis/blob/master/docs/v3-to-v4.md
44
+ await client.connect();
45
+ await client.ping();
46
+ const store = new RedisStore({
47
+ client,
48
+ prefix: config.get('REDIS_PREFIX'),
49
+ });
50
+ return config.getSessionSettings(store);
51
+ },
52
+ }),
53
+ TypeOrmModule.forRootAsync({
54
+ imports: [ConfigModule],
55
+ inject: [ConfigService],
56
+ useFactory: (
57
+ config: ConfigService
58
+ ): TypeOrmModuleOptions => ({
59
+ ...config.dbOptions,
60
+ maxQueryExecutionTime: 1000,
61
+ }),
62
+ }),
63
+ // Add the Redis module
64
+ RedisModule.forRootAsync({
65
+ imports: [ConfigModule],
66
+ inject: [ConfigService],
67
+ useFactory: (config: ConfigService): RedisModuleOptions => ({
68
+ type: 'single',
69
+ url: config.redisURL,
70
+ options: {
71
+ tls: {
72
+ rejectUnauthorized: false,
73
+ },
74
+ },
75
+ }),
76
+ }),
77
+ TrainingModule,
78
+ PersonModule,
79
+ AffiliationModule,
80
+ AttendanceModule,
81
+ UserModule,
82
+ KioskModule,
83
+ HealthCheckModule, // Add HealthCheckModule
84
+ ],
85
+ controllers: [],
86
+ providers: [],
87
+ })
88
+
89
+ class AppModule implements NestModule {
90
+ /**
91
+ * Apply our logging middleware for all routes except the healthcheck
92
+ */
93
+ configure(consumer: MiddlewareConsumer): void {
94
+ consumer
95
+ .apply(LogMiddleware)
96
+ .exclude({ path: 'makerspace/health-check', method: RequestMethod.ALL }) // exclude healthcheck
97
+ .forRoutes('*');
98
+ }
99
+ }
100
+
101
+ export { AppModule };
102
+
103
+ ```
@@ -0,0 +1,7 @@
1
+ import { HealthIndicatorResult } from '@nestjs/terminus';
2
+ import { Redis } from 'ioredis';
3
+ export declare class RedisHealthService {
4
+ private readonly redisClient;
5
+ constructor(redisClient: Redis);
6
+ checkRedisConnection(): Promise<HealthIndicatorResult>;
7
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.RedisHealthService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const ioredis_1 = require("ioredis");
18
+ const ioredis_2 = require("@nestjs-modules/ioredis");
19
+ let RedisHealthService = class RedisHealthService {
20
+ constructor(redisClient) {
21
+ this.redisClient = redisClient;
22
+ }
23
+ async checkRedisConnection() {
24
+ try {
25
+ const result = await this.redisClient.ping();
26
+ return {
27
+ redis: {
28
+ status: 'up',
29
+ result,
30
+ },
31
+ };
32
+ }
33
+ catch (error) {
34
+ if (error instanceof Error) {
35
+ return {
36
+ redis: {
37
+ status: 'down',
38
+ message: error.message,
39
+ },
40
+ };
41
+ }
42
+ return {
43
+ redis: {
44
+ status: 'down',
45
+ message: 'Could not connect to Redis.',
46
+ },
47
+ };
48
+ }
49
+ }
50
+ };
51
+ exports.RedisHealthService = RedisHealthService;
52
+ exports.RedisHealthService = RedisHealthService = __decorate([
53
+ (0, common_1.Injectable)(),
54
+ __param(0, (0, ioredis_2.InjectRedis)()),
55
+ __metadata("design:paramtypes", [ioredis_1.Redis])
56
+ ], RedisHealthService);
57
+ //# sourceMappingURL=RedisHealthService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedisHealthService.js","sourceRoot":"","sources":["../../src/RedisHealthService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAE5C,qCAAgC;AAChC,qDAAsD;AAS/C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YACkC,WAAkB;QAAlB,gBAAW,GAAX,WAAW,CAAO;IACjD,CAAC;IAEG,KAAK,CAAC,oBAAoB;QAC/B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;YAE7C,OAAO;gBACL,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI;oBACZ,MAAM;iBACP;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBAC3B,OAAO;oBACL,KAAK,EAAE;wBACL,MAAM,EAAE,MAAM;wBACd,OAAO,EAAE,KAAK,CAAC,OAAO;qBACvB;iBACF,CAAC;YACJ,CAAC;YACD,OAAO;gBACL,KAAK,EAAE;oBACL,MAAM,EAAE,MAAM;oBACd,OAAO,EAAE,6BAA6B;iBACvC;aACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAhCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,qBAAW,GAAE,CAAA;qCAA+B,eAAK;GAFzC,kBAAkB,CAgC9B"}
@@ -0,0 +1,11 @@
1
+ import { HealthCheckService, HealthCheckResult, HttpHealthIndicator } from '@nestjs/terminus';
2
+ import { RedisHealthService } from './RedisHealthService';
3
+ export declare class HealthCheckController {
4
+ private health;
5
+ private http;
6
+ private redisHealth;
7
+ constructor(health: HealthCheckService, http: HttpHealthIndicator, redisHealth: RedisHealthService);
8
+ getHealthCheck(): Promise<HealthCheckResult & {
9
+ version: string;
10
+ }>;
11
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.HealthCheckController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const swagger_1 = require("@nestjs/swagger");
18
+ const terminus_1 = require("@nestjs/terminus");
19
+ const RedisHealthService_1 = require("./RedisHealthService");
20
+ let HealthCheckController = class HealthCheckController {
21
+ constructor(health, http, redisHealth) {
22
+ this.health = health;
23
+ this.http = http;
24
+ this.redisHealth = redisHealth;
25
+ }
26
+ async getHealthCheck() {
27
+ const status = await this.health.check([
28
+ () => this.http.pingCheck('harvard-key', `/cas/logout`),
29
+ async () => this.redisHealth.checkRedisConnection(),
30
+ ]);
31
+ return {
32
+ ...status,
33
+ version: 'version',
34
+ };
35
+ }
36
+ };
37
+ exports.HealthCheckController = HealthCheckController;
38
+ __decorate([
39
+ (0, common_1.Get)('/'),
40
+ (0, swagger_1.ApiOperation)({
41
+ summary: 'While the server is active, return a 200 status code',
42
+ }),
43
+ (0, swagger_1.ApiOkResponse)({
44
+ description: 'A 200 response',
45
+ isArray: false,
46
+ }),
47
+ (0, terminus_1.HealthCheck)(),
48
+ __metadata("design:type", Function),
49
+ __metadata("design:paramtypes", []),
50
+ __metadata("design:returntype", Promise)
51
+ ], HealthCheckController.prototype, "getHealthCheck", null);
52
+ exports.HealthCheckController = HealthCheckController = __decorate([
53
+ (0, swagger_1.ApiTags)('Health Check'),
54
+ (0, common_1.Controller)('health-check'),
55
+ __param(0, (0, common_1.Inject)(terminus_1.HealthCheckService)),
56
+ __param(1, (0, common_1.Inject)(terminus_1.HttpHealthIndicator)),
57
+ __param(2, (0, common_1.Inject)(RedisHealthService_1.RedisHealthService)),
58
+ __metadata("design:paramtypes", [terminus_1.HealthCheckService,
59
+ terminus_1.HttpHealthIndicator,
60
+ RedisHealthService_1.RedisHealthService])
61
+ ], HealthCheckController);
62
+ //# sourceMappingURL=healthcheck.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"healthcheck.controller.js","sourceRoot":"","sources":["../../src/healthcheck.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyD;AACzD,6CAAuE;AACvE,+CAA2G;AAC3G,6DAA0D;AAInD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAEhC,YAEsC,MAA0B,EAEzB,IAAyB,EAC1B,WAA+B;QAH/B,WAAM,GAAN,MAAM,CAAoB;QAEzB,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;YAErC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CACvB,aAAa,EACb,aAAa,CACd;YACD,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,oBAAoB,EAAE;SACpD,CACA,CAAC;QACF,OAAO;YACL,GAAG,MAAM;YACT,OAAO,EAAE,SAAS;SACnB,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;IAKtB,WAAA,IAAA,eAAM,EAAC,6BAAkB,CAAC,CAAA;IAE1B,WAAA,IAAA,eAAM,EAAC,8BAAmB,CAAC,CAAA;IAC3B,WAAA,IAAA,eAAM,EAAC,uCAAkB,CAAC,CAAA;qCAHiB,6BAAkB;QAEnB,8BAAmB;QACb,uCAAkB;GAP1D,qBAAqB,CAsCjC"}
@@ -0,0 +1,3 @@
1
+ declare class HealthCheckModule {
2
+ }
3
+ export { HealthCheckModule };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.HealthCheckModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const terminus_1 = require("@nestjs/terminus");
12
+ const axios_1 = require("@nestjs/axios");
13
+ const typeorm_1 = require("@nestjs/typeorm");
14
+ const healthcheck_controller_1 = require("./healthcheck.controller");
15
+ const RedisHealthService_1 = require("./RedisHealthService");
16
+ let HealthCheckModule = class HealthCheckModule {
17
+ };
18
+ exports.HealthCheckModule = HealthCheckModule;
19
+ exports.HealthCheckModule = HealthCheckModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [
22
+ terminus_1.TerminusModule,
23
+ axios_1.HttpModule,
24
+ typeorm_1.TypeOrmModule.forFeature([]),
25
+ ],
26
+ controllers: [healthcheck_controller_1.HealthCheckController],
27
+ providers: [RedisHealthService_1.RedisHealthService],
28
+ })
29
+ ], HealthCheckModule);
30
+ //# sourceMappingURL=healthcheck.module.js.map
@@ -0,0 +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"}
@@ -0,0 +1,4 @@
1
+ export * from './healthcheck.module';
2
+ export * from './healthcheck.controller';
3
+ export * from './RedisHealthService';
4
+ export * from './types/ConfigServiceInterface';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./healthcheck.module"), exports);
18
+ __exportStar(require("./healthcheck.controller"), exports);
19
+ __exportStar(require("./RedisHealthService"), exports);
20
+ __exportStar(require("./types/ConfigServiceInterface"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,uDAAqC;AACrC,iEAA+C"}
@@ -0,0 +1,4 @@
1
+ export interface ConfigServiceInterface {
2
+ casBaseURL: string;
3
+ buildVersion: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ConfigServiceInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigServiceInterface.js","sourceRoot":"","sources":["../../../src/types/ConfigServiceInterface.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,12 +1,58 @@
1
1
  {
2
2
  "name": "@seas-computing/nestjs-healthcheck",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "A standalone healthcheck module for NestJS apps",
5
- "main": "index.js",
5
+ "main": "dist/src/index.js",
6
+ "types": "dist/src/index.d.ts",
7
+ "files": [
8
+ "lib/*",
9
+ "LICENSE",
10
+ "dist/src"
11
+ ],
6
12
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
13
+ "build": "rimraf dist/ && tsc",
14
+ "test": "nyc mocha --require ts-node/register \"test/**/*.test.ts\"",
15
+ "lint": "eslint --ext=ts,tsx,js ./src",
16
+ "test:watch": "TS_NODE_TRANSPILE_ONLY=true mocha --watch",
17
+ "typecheck": "tsc --noEmit",
18
+ "prepare": "npm run build"
8
19
  },
20
+ "keywords": [],
9
21
  "author": "Amalya Megerman",
10
- "license": "BSD-3-Clause",
11
- "private": false
22
+ "license": "MIT",
23
+ "dependencies": {
24
+ "@nestjs-modules/ioredis": "^2.0.2",
25
+ "@nestjs/axios": "^4.0.0",
26
+ "@nestjs/common": "^10.4.15",
27
+ "@nestjs/config": "^4.0.2",
28
+ "@nestjs/core": "^10.4.15",
29
+ "@nestjs/terminus": "^11.0.0",
30
+ "@nestjs/testing": "^10.1.0",
31
+ "@nestjs/typeorm": "^11.0.0",
32
+ "ioredis": "^5.6.1",
33
+ "redis": "^4.7.0",
34
+ "reflect-metadata": "^0.1.13",
35
+ "sinon": "^20.0.0",
36
+ "typeorm": "^0.3.22"
37
+ },
38
+ "peerDependencies": {
39
+ "@nestjs/common": "^10.4.15",
40
+ "@nestjs/core": "^10.4.15",
41
+ "@nestjs/swagger": "^7.1.16",
42
+ "typescript": "^5.1.6"
43
+ },
44
+ "devDependencies": {
45
+ "@nestjs/swagger": "^7.4.2",
46
+ "@nestjs/testing": "^10.1.0",
47
+ "@seas-computing/eslint-config": "^0.0.3",
48
+ "@types/mocha": "^10.0.1",
49
+ "@types/node": "^20.4.2",
50
+ "@types/sinon": "^17.0.4",
51
+ "eslint": "^9.24.0",
52
+ "mocha": "^10.2.0",
53
+ "nyc": "^15.1.0",
54
+ "rimraf": "^6.0.1",
55
+ "ts-node": "^10.9.2",
56
+ "typescript": "^5.8.3"
57
+ }
12
58
  }