@thzero/library_server 0.17.19 → 0.17.21
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 +3 -3
- package/package.json +4 -4
package/boot/index.js
CHANGED
|
@@ -170,8 +170,6 @@ class BootMain {
|
|
|
170
170
|
console.log(`selected.port: ${this.port}`);
|
|
171
171
|
console.log();
|
|
172
172
|
|
|
173
|
-
await this._initServerDiscovery(results.server);
|
|
174
|
-
|
|
175
173
|
const self = this;
|
|
176
174
|
const listen = async (port, address) => new Promise((resolve, reject) => {
|
|
177
175
|
self._initAppListen(results.app, results.server, address, port, (err) => {
|
|
@@ -190,6 +188,8 @@ class BootMain {
|
|
|
190
188
|
|
|
191
189
|
console.log();
|
|
192
190
|
console.log(`Starting HTTP on: ${this.address}:${this.port}`);
|
|
191
|
+
|
|
192
|
+
await this._initServerDiscovery();
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
_determinePlugins(args) {
|
|
@@ -377,7 +377,7 @@ class BootMain {
|
|
|
377
377
|
async _initServer(serverHttp) {
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
-
async _initServerDiscovery(
|
|
380
|
+
async _initServerDiscovery() {
|
|
381
381
|
if (!this.resourceDiscoveryServiceI && !this.mdnsDiscoveryServiceI)
|
|
382
382
|
return;
|
|
383
383
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.21",
|
|
5
5
|
"version_major": 0,
|
|
6
6
|
"version_minor": 17,
|
|
7
|
-
"version_patch":
|
|
8
|
-
"version_date": "01/
|
|
7
|
+
"version_patch": 21,
|
|
8
|
+
"version_date": "01/20/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",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@godaddy/terminus": "^4.12.1",
|
|
29
29
|
"async-mutex": "^0.4.0",
|
|
30
|
-
"config": "^3.3.
|
|
30
|
+
"config": "^3.3.10",
|
|
31
31
|
"default-gateway": "^7.2.2",
|
|
32
32
|
"easy-rbac": "^3.2.0",
|
|
33
33
|
"ipaddr.js": "^2.1.0"
|