@thzero/library_server 0.17.7 → 0.17.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.
- package/boot/index.js +14 -0
- package/package.json +3 -3
package/boot/index.js
CHANGED
|
@@ -59,6 +59,12 @@ class BootMain {
|
|
|
59
59
|
const idGeneratorOverride = this._initIdGenerator();
|
|
60
60
|
if (idGeneratorOverride)
|
|
61
61
|
LibraryCommonUtility.setIdGenerator(idGeneratorOverride);
|
|
62
|
+
const idGeneratorLengthLong = this._initIdGeneratorLengthLong();
|
|
63
|
+
if (idGeneratorLengthLong)
|
|
64
|
+
LibraryCommonUtility.setIdGeneratorLengthLong(idGeneratorLengthLong);
|
|
65
|
+
const idGeneratorLengthShort = this._initIdGeneratorLengthShort();
|
|
66
|
+
if (idGeneratorLengthShort)
|
|
67
|
+
LibraryCommonUtility.setIdGeneratorLengthShort(idGeneratorLengthShort);
|
|
62
68
|
|
|
63
69
|
this._injector = injector;
|
|
64
70
|
|
|
@@ -211,6 +217,14 @@ class BootMain {
|
|
|
211
217
|
return null;
|
|
212
218
|
}
|
|
213
219
|
|
|
220
|
+
_initIdGeneratorLengthLong() {
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
_initIdGeneratorLengthShort() {
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
|
|
214
228
|
async _initPlugins(plugins) {
|
|
215
229
|
try {
|
|
216
230
|
injector.addSingleton(LibraryCommonServiceConstants.InjectorKeys.SERVICE_CONFIG, this._appConfig);
|
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.8",
|
|
5
5
|
"version_major": 0,
|
|
6
6
|
"version_minor": 17,
|
|
7
|
-
"version_patch":
|
|
8
|
-
"version_date": "03/
|
|
7
|
+
"version_patch": 8,
|
|
8
|
+
"version_date": "03/20/2023",
|
|
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",
|