5htp-core 0.6.2-9 → 0.6.2-91
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 +1 -1
- package/server/app/index.ts +0 -1
- package/server/app/service/index.ts +11 -0
- package/types/icons.d.ts +1 -1
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.6.2-
|
|
4
|
+
"version": "0.6.2-91",
|
|
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
|
@@ -105,7 +105,6 @@ export abstract class Application<
|
|
|
105
105
|
this.on('error', (e, request) => this.container.handleBug(e, "An error occured in the application", request));
|
|
106
106
|
|
|
107
107
|
process.on('unhandledRejection', (error: any, promise: any) => {
|
|
108
|
-
console.log("unhandledRejection");
|
|
109
108
|
// We don't log the error here because it's the role of the app to decidehiw to log errors
|
|
110
109
|
this.runHook('error', error);
|
|
111
110
|
});
|
|
@@ -219,6 +219,17 @@ export default abstract class Service<
|
|
|
219
219
|
)
|
|
220
220
|
).then(() => {
|
|
221
221
|
//this.config.debug && console.info(`[hook] Hooks ${name} executed with success.`);
|
|
222
|
+
}).catch(e => {
|
|
223
|
+
if (name === 'error') {
|
|
224
|
+
|
|
225
|
+
// In error hook = avoid infinite loop
|
|
226
|
+
console.error("Error hook", e);
|
|
227
|
+
|
|
228
|
+
} else {
|
|
229
|
+
|
|
230
|
+
// Let the error hook handle it
|
|
231
|
+
throw e;
|
|
232
|
+
}
|
|
222
233
|
})
|
|
223
234
|
}
|
|
224
235
|
|
package/types/icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"check-circle"|"
|
|
1
|
+
export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"check-circle"|"chart-bar"|"user-circle"|"rocket"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"crosshairs"|"plane-departure"|"plus-circle"|"comments-alt"|"arrow-right"|"user-plus"|"paper-plane"|"magnet"|"sack-dollar"|"info-circle"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"brands/whatsapp"|"user"|"brands/linkedin"|"at"|"plus"|"minus"|"trash"|"search"|"clock"|"cog"|"ellipsis-h"|"check"|"regular/shield-check"|"angle-down"|"play"|"stop"|"calendar-alt"|"lightbulb"|"phone"|"angle-up"|"solid/crown"|"eye"|"pen"|"file"|"envelope"|"coins"|"download"|"exclamation-circle"|"times-circle"|"arrow-left"|"meh-rolling-eyes"|"bars"|"chevron-left"|"bolt"|"key"|"power-off"|"comment-alt"|"wind"|"minus-circle"|"question-circle"|"broom"|"brands/google"|"copy"|"external-link"|"solid/check-circle"|"solid/exclamation-triangle"|"solid/times-circle"|"hourglass"|"plug"|"coin"|"building"|"briefcase"|"map-marker-alt"|"graduation-cap"|"angle-left"|"angle-right"|"arrow-to-bottom"|"solid/magic"|"globe"|"users"|"industry"|"map-marker"|"calendar"|"fire"|"magic"|"bug"|"binoculars"|"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"
|