@thzero/library_server 0.17.4 → 0.17.6
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 +19 -11
- package/openSource.js +3 -3
- package/package.json +12 -6
package/boot/index.js
CHANGED
|
@@ -56,6 +56,10 @@ class BootMain {
|
|
|
56
56
|
return process.exit(99);
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
+
const idGeneratorOverride = this._initIdGenerator();
|
|
60
|
+
if (idGeneratorOverride)
|
|
61
|
+
LibraryCommonUtility.setIdGenerator(idGeneratorOverride);
|
|
62
|
+
|
|
59
63
|
this._injector = injector;
|
|
60
64
|
|
|
61
65
|
// https://github.com/lorenwest/node-config/wiki
|
|
@@ -179,17 +183,6 @@ class BootMain {
|
|
|
179
183
|
console.log(`Starting HTTP on: ${this.address}:${this.port}`);
|
|
180
184
|
}
|
|
181
185
|
|
|
182
|
-
async _initApp(args, plugins) {
|
|
183
|
-
throw new NotImplementedError();
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
_initAppListen(app, server, address, port, err) {
|
|
187
|
-
throw new NotImplementedError();
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
async _initAppPost(app, args) {
|
|
191
|
-
}
|
|
192
|
-
|
|
193
186
|
_determinePlugins(args) {
|
|
194
187
|
let obj;
|
|
195
188
|
const results = [];
|
|
@@ -203,6 +196,21 @@ class BootMain {
|
|
|
203
196
|
return results;
|
|
204
197
|
}
|
|
205
198
|
|
|
199
|
+
async _initApp(args, plugins) {
|
|
200
|
+
throw new NotImplementedError();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
_initAppListen(app, server, address, port, err) {
|
|
204
|
+
throw new NotImplementedError();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
async _initAppPost(app, args) {
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
async _initIdGenerator() {
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
|
|
206
214
|
async _initPlugins(plugins) {
|
|
207
215
|
try {
|
|
208
216
|
injector.addSingleton(LibraryCommonServiceConstants.InjectorKeys.SERVICE_CONFIG, this._appConfig);
|
package/openSource.js
CHANGED
|
@@ -23,10 +23,10 @@ export default () => {
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
category: 'server',
|
|
26
|
-
name: '@thzero/
|
|
27
|
-
url: 'https://github.com/thzero/
|
|
26
|
+
name: '@thzero/library_server',
|
|
27
|
+
url: 'https://github.com/thzero/library_server',
|
|
28
28
|
licenseName: 'MIT',
|
|
29
|
-
licenseUrl: 'https://github.com/thzero/
|
|
29
|
+
licenseUrl: 'https://github.com/thzero/library_server/blob/master/license.md'
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
category: 'server',
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.6",
|
|
5
5
|
"version_major": 0,
|
|
6
6
|
"version_minor": 17,
|
|
7
|
-
"version_patch":
|
|
7
|
+
"version_patch": 6,
|
|
8
8
|
"version_date": "03/19/2023",
|
|
9
|
-
"description": "An opinionated library of common functionality to bootstrap an API
|
|
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",
|
|
12
12
|
"repository": {
|
|
@@ -25,10 +25,16 @@
|
|
|
25
25
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@
|
|
28
|
+
"@godaddy/terminus": "^4.11.2",
|
|
29
|
+
"async-mutex": "^0.4.0",
|
|
30
|
+
"config": "^3.3.9",
|
|
31
|
+
"default-gateway": "^6.0.3",
|
|
32
|
+
"easy-rbac": "^3.2.0",
|
|
33
|
+
"ipaddr.js": "^2.0.1"
|
|
29
34
|
},
|
|
30
35
|
"peerDependencies": {
|
|
31
|
-
"@thzero/
|
|
32
|
-
"@thzero/
|
|
36
|
+
"@thzero/library_common": "^0.17",
|
|
37
|
+
"@thzero/library_common_service": "^0.17",
|
|
38
|
+
"@thzero/library_server": "^0.17"
|
|
33
39
|
}
|
|
34
40
|
}
|