@thzero/library_server 0.17.22 → 0.17.23

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/boot/index.js CHANGED
@@ -47,6 +47,7 @@ import injector from '@thzero/library_common/utility/injector.js';
47
47
  import usageMetricsRepository from '../repository/usageMetrics/devnull.js';
48
48
 
49
49
  import configService from '../service/config.js';
50
+ import healthService from '../service/health.js';
50
51
  import loggerService from '@thzero/library_common_service/service/logger.js';
51
52
  import usageMetricsService from '../service/usageMetrics.js';
52
53
 
@@ -359,6 +360,10 @@ class BootMain {
359
360
  return null;
360
361
  }
361
362
 
363
+ _initServicesHealth() {
364
+ return new healthService();
365
+ }
366
+
362
367
  _initServicesLogger() {
363
368
  return new loggerService();
364
369
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server",
3
3
  "type": "module",
4
- "version": "0.17.22",
4
+ "version": "0.17.23",
5
5
  "version_major": 0,
6
6
  "version_minor": 17,
7
- "version_patch": 22,
8
- "version_date": "01/20/2024",
7
+ "version_patch": 23,
8
+ "version_date": "01/23/2024",
9
9
  "description": "An opinionated library of common functionality to bootstrap an API using either Fastify or Koa as the web server.",
10
10
  "author": "thZero",
11
11
  "license": "MIT",
@@ -0,0 +1,13 @@
1
+ import Service from './index.js';
2
+
3
+ class HealthService extends Service {
4
+ constructor() {
5
+ super();
6
+ }
7
+
8
+ async health(correlationId) {
9
+ this._successResponse({ check: 'Ok' }, correlationId);
10
+ }
11
+ }
12
+
13
+ export default HealthService;