5htp-core 0.5.9-2 → 0.5.9-3
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp-core",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.5.9-
|
|
4
|
+
"version": "0.5.9-3",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
package/server/app/index.ts
CHANGED
|
@@ -178,6 +178,7 @@ export abstract class Application<
|
|
|
178
178
|
printService(service, 0);
|
|
179
179
|
const instance = service.start();
|
|
180
180
|
this[service.name] = instance.getServiceInstance();
|
|
181
|
+
this[service.name].status = 'starting';
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
|
|
@@ -185,11 +186,23 @@ export abstract class Application<
|
|
|
185
186
|
|
|
186
187
|
const processService = (service: AnyService) => {
|
|
187
188
|
|
|
189
|
+
if (service.status !== 'starting')
|
|
190
|
+
return;
|
|
191
|
+
|
|
188
192
|
service.ready();
|
|
193
|
+
service.status = 'running';
|
|
189
194
|
|
|
190
195
|
// Subservices
|
|
191
|
-
for (const serviceId in service.services)
|
|
192
|
-
|
|
196
|
+
for (const serviceId in service.services) {
|
|
197
|
+
|
|
198
|
+
const subservice = service.services[serviceId];
|
|
199
|
+
if (!subservice) {
|
|
200
|
+
console.error(`Subservice ${serviceId} has not been initialised correctly in ${service.constructor.name}`, service.services);
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
processService(subservice);
|
|
205
|
+
}
|
|
193
206
|
}
|
|
194
207
|
|
|
195
208
|
for (const serviceId in this.registered) {
|
package/types/icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TIcones = "
|
|
1
|
+
export type TIcones = "solid/spinner-third"|"at"|"bell"|"times-circle"|"info-circle"|"check-circle"|"exclamation-circle"|"times"|"map-marker-alt"|"bullhorn"|"angle-down"|"search"|"check"|"arrow-left"|"arrow-right"|"eye"|"trash"|"meh-rolling-eyes"|"unlink"|"pen"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"link"|"file"|"plus"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"
|