5htp-core 0.5.9-4 → 0.5.9-51

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",
4
+ "version": "0.5.9-51",
5
5
  "author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
6
6
  "repository": "git://github.com/gaetanlegac/5htp-core.git",
7
7
  "license": "MIT",
@@ -157,10 +157,14 @@ export abstract class Application<
157
157
 
158
158
  // Satrt services
159
159
  for (const serviceId in this.registered) {
160
-
161
- const service = this.registered[serviceId];
162
- const instance = service.start();
163
- this[service.name] = instance.getServiceInstance();
160
+ try {
161
+ const service = this.registered[serviceId];
162
+ const instance = service.start();
163
+ this[service.name] = instance.getServiceInstance();
164
+ } catch (error) {
165
+ console.error("Error while starting service", serviceId, service, error);
166
+ throw error;
167
+ }
164
168
  }
165
169
  }
166
170
 
@@ -14,7 +14,7 @@ import dayjs from 'dayjs';
14
14
 
15
15
  // Core
16
16
  import type { Application } from '@server/app';
17
- import type { AnyService, TRegisteredServicesIndex } from '@server/app/service';
17
+ import type { TServiceArgs } from '@server/app/service';
18
18
 
19
19
  // Specific
20
20
  import DiskDriver, {
@@ -50,14 +50,9 @@ export default class S3Driver<
50
50
 
51
51
  public s3: AWS.S3;
52
52
 
53
- public constructor(
54
- public parent: AnyService,
55
- public config: TConfig,
56
- public services: {},
57
- public app: Application
58
- ) {
53
+ public constructor(...args: TServiceArgs) {
59
54
 
60
- super( parent, config, services, app );
55
+ super(...args);
61
56
 
62
57
  AWS.config.update({
63
58
  accessKeyId: this.config.accessKeyId,
@@ -87,6 +82,7 @@ export default class S3Driver<
87
82
  bucketName: TBucketName,
88
83
  filename: string
89
84
  ) {
85
+
90
86
  const bucket = this.config.buckets[bucketName];
91
87
  if (bucket === undefined)
92
88
  throw new Error(`Bucket "${bucketName}" not found in configuration`);
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"|"rocket"|"chart-bar"|"planet-ringed"|"crosshairs"|"user-circle"|"brands/linkedin"|"plus-circle"|"comments-alt"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"key"|"user"|"at"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"times-circle"|"calendar-alt"|"paper-plane"|"search"|"lightbulb"|"magnet"|"solid/crown"|"brands/discord"|"pen"|"plus"|"file"|"angle-up"|"angle-down"|"envelope"|"binoculars"|"info-circle"|"check-circle"|"exclamation-circle"|"meh-rolling-eyes"|"check"|"trash"|"arrow-left"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"bars"|"plane-departure"|"wind"|"play"|"minus-circle"|"external-link"|"question-circle"|"usd-circle"|"users"|"home-alt"|"trophy"|"arrow-to-bottom"|"map-marker-alt"|"clock"|"ellipsis-h"|"building"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"unlink"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"
1
+ export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"chart-bar"|"planet-ringed"|"rocket"|"brands/linkedin"|"user-circle"|"arrow-right"|"crosshairs"|"calendar-alt"|"paper-plane"|"plus-circle"|"comments-alt"|"at"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"key"|"user"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"search"|"lightbulb"|"magnet"|"times-circle"|"angle-up"|"angle-down"|"solid/crown"|"brands/discord"|"pen"|"plus"|"file"|"envelope"|"binoculars"|"check"|"info-circle"|"check-circle"|"exclamation-circle"|"meh-rolling-eyes"|"trash"|"arrow-left"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"cog"|"power-off"|"bars"|"usd-circle"|"users"|"home-alt"|"trophy"|"question-circle"|"external-link"|"play"|"minus-circle"|"plane-departure"|"wind"|"map-marker-alt"|"clock"|"arrow-to-bottom"|"ellipsis-h"|"building"|"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"