@thzero/library_server 0.17.23 → 0.17.25

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,7 +47,6 @@ 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';
51
50
  import loggerService from '@thzero/library_common_service/service/logger.js';
52
51
  import usageMetricsService from '../service/usageMetrics.js';
53
52
 
@@ -192,6 +191,8 @@ class BootMain {
192
191
  console.log(`Starting HTTP on: ${this.address}:${this.port}`);
193
192
 
194
193
  await this._initServerDiscovery();
194
+
195
+ await this._initServerStart(injector);
195
196
  }
196
197
 
197
198
  _determinePlugins(args) {
@@ -360,10 +361,6 @@ class BootMain {
360
361
  return null;
361
362
  }
362
363
 
363
- _initServicesHealth() {
364
- return new healthService();
365
- }
366
-
367
364
  _initServicesLogger() {
368
365
  return new loggerService();
369
366
  }
@@ -438,6 +435,9 @@ class BootMain {
438
435
  await this.resourceDiscoveryServiceI.initialize(LibraryCommonUtility.correlationId(), await this._initServerDiscoveryOptsResources(opts));
439
436
  }
440
437
 
438
+ async _initServerStart() {
439
+ }
440
+
441
441
  _injectRepository(key, repository) {
442
442
  console.log(`repositories.inject - ${key}`);
443
443
  this._repositories.set(key, repository);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server",
3
3
  "type": "module",
4
- "version": "0.17.23",
4
+ "version": "0.17.25",
5
5
  "version_major": 0,
6
6
  "version_minor": 17,
7
- "version_patch": 23,
8
- "version_date": "01/23/2024",
7
+ "version_patch": 25,
8
+ "version_date": "02/01/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",
package/service/health.js DELETED
@@ -1,13 +0,0 @@
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;