@thzero/library_server 0.18.6 → 0.18.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.
Files changed (2) hide show
  1. package/boot/index.js +9 -0
  2. package/package.json +4 -4
package/boot/index.js CHANGED
@@ -436,6 +436,15 @@ class BootMain {
436
436
  }
437
437
 
438
438
  async _initServerStart() {
439
+ for(const service of injector.getServices()) {
440
+ if (service.dependency) {
441
+ console.log(service.key);
442
+ if (service.dependency && service.dependency.instantiate) {
443
+ console.log(`services.instantiate - ${service.key}`);
444
+ await service.dependency.instantiate();
445
+ }
446
+ }
447
+ }
439
448
  }
440
449
 
441
450
  _injectRepository(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.18.6",
4
+ "version": "0.18.8",
5
5
  "version_major": 0,
6
6
  "version_minor": 18,
7
- "version_patch": 6,
8
- "version_date": "04/07/2024",
7
+ "version_patch": 8,
8
+ "version_date": "04/22/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",
@@ -30,7 +30,7 @@
30
30
  "config": "^3.3.11",
31
31
  "default-gateway": "^7.2.2",
32
32
  "easy-rbac": "^3.2.0",
33
- "ipaddr.js": "^2.1.0"
33
+ "ipaddr.js": "^2.2.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@thzero/library_common": "^0.18",