@thzero/library_server 0.15.37 → 0.15.40
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 +5 -4
- package/package.json +4 -8
package/boot/index.js
CHANGED
|
@@ -108,9 +108,10 @@ class BootMain {
|
|
|
108
108
|
|
|
109
109
|
createTerminus(results.server, terminusOptions);
|
|
110
110
|
|
|
111
|
+
const address = this._appConfig.get('ip', null);
|
|
111
112
|
const self = this;
|
|
112
|
-
const listen = async (port) => new Promise((resolve, reject) => {
|
|
113
|
-
self._initAppListen(results.app, results.server, port, (err) => {
|
|
113
|
+
const listen = async (port, address) => new Promise((resolve, reject) => {
|
|
114
|
+
self._initAppListen(results.app, results.server, address, port, (err) => {
|
|
114
115
|
if (err) {
|
|
115
116
|
reject(err);
|
|
116
117
|
return;
|
|
@@ -119,7 +120,7 @@ class BootMain {
|
|
|
119
120
|
resolve();
|
|
120
121
|
});
|
|
121
122
|
});
|
|
122
|
-
await listen(this.port);
|
|
123
|
+
await listen(this.port, address);
|
|
123
124
|
this.address = results.server.address() ? results.server.address().address : null;
|
|
124
125
|
if (this.address === '::')
|
|
125
126
|
this.address = await internalIpV4();
|
|
@@ -142,7 +143,7 @@ class BootMain {
|
|
|
142
143
|
throw new NotImplementedError();
|
|
143
144
|
}
|
|
144
145
|
|
|
145
|
-
_initAppListen(app, server, port, err) {
|
|
146
|
+
_initAppListen(app, server, address, port, err) {
|
|
146
147
|
throw new NotImplementedError();
|
|
147
148
|
}
|
|
148
149
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.40",
|
|
5
5
|
"version_major": 0,
|
|
6
6
|
"version_minor": 15,
|
|
7
|
-
"version_patch":
|
|
8
|
-
"version_date": "04/
|
|
7
|
+
"version_patch": 40,
|
|
8
|
+
"version_date": "04/25/2022",
|
|
9
9
|
"description": "An opinionated library of common functionality to bootstrap an API application using MongoDb and Firebase. Currently either Fastify or Koa can be used as the web server.",
|
|
10
10
|
"author": "thZero",
|
|
11
11
|
"license": "MIT",
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
"node": ">=12.8.3"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
|
-
"cli-update": "
|
|
25
|
-
"cli-update-w": ".\\node_modules\\.bin\\library-cli --updateversion --pi",
|
|
24
|
+
"cli-update": "library-cli --updateversion --pi",
|
|
26
25
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
27
26
|
},
|
|
28
27
|
"dependencies": {
|
|
@@ -33,9 +32,6 @@
|
|
|
33
32
|
"easy-rbac": "^3.2.0",
|
|
34
33
|
"ipaddr.js": "^2.0.1"
|
|
35
34
|
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@thzero/library_cli": "^0.15"
|
|
38
|
-
},
|
|
39
35
|
"peerDependencies": {
|
|
40
36
|
"@thzero/library_common": "^0.15",
|
|
41
37
|
"@thzero/library_common_service": "^0.15"
|