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-2",
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",
@@ -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
- processService(service.services[serviceId]);
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) {
@@ -2,5 +2,6 @@
2
2
  "id": "Core/Fetch",
3
3
  "name": "Fetch",
4
4
  "parent": "app",
5
- "dependences": []
5
+ "dependences": [],
6
+ "priority": 0
6
7
  }
package/types/icons.d.ts CHANGED
@@ -1 +1 @@
1
- export type TIcones = "long-arrow-right"|"times"|"solid/spinner-third"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"chart-bar"|"at"|"arrow-right"|"rocket"|"magnet"|"search"|"file-excel"|"plus-circle"|"plus"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"map-marker"|"link"|"industry"|"users"|"calendar-alt"|"file-invoice"|"binoculars"|"brands/linkedin"|"lightbulb"|"long-arrow-left"|"key"|"user"|"building"|"briefcase"|"times-circle"|"suitcase"|"brands/linkedin-in"|"phone-plus"|"envelope"|"home-alt"|"planet-ringed"|"user-circle"|"crosshairs"|"comments-alt"|"paper-plane"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"file-alt"|"angle-up"|"angle-down"|"solid/crown"|"brands/discord"|"pen"|"file"|"info-circle"|"check-circle"|"exclamation-circle"|"check"|"meh-rolling-eyes"|"arrow-left"|"trash"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"usd-circle"|"trophy"|"bars"|"chevron-right"|"edit"|"map-marker-alt"|"clock"|"arrow-to-bottom"|"ellipsis-h"|"question-circle"|"play"|"minus-circle"|"plane-departure"|"wind"|"external-link"|"ban"|"heart"|"calendar-check"|"unlink"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"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"
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"