5htp-core 0.2.4-2 → 0.2.4-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.2.4-2",
4
+ "version": "0.2.4-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",
@@ -92,5 +92,8 @@
92
92
  "@types/ws": "^7.4.7",
93
93
  "@types/yargs-parser": "^21.0.0",
94
94
  "babel-plugin-glob-import": "^0.0.6-2"
95
- }
95
+ },
96
+ "peerDependencies": {
97
+ "5htp": "0.2.3"
98
+ }
96
99
  }
@@ -106,8 +106,6 @@ export default abstract class Application extends Service<Config, Hooks, /* TODO
106
106
  const configParser = new ConfigParser( this.path.root );
107
107
  this.env = configParser.env();
108
108
  this.identity = configParser.identity();
109
-
110
- console.log(`[boot] Environment:`, this.env);
111
109
  }
112
110
 
113
111
  /*----------------------------------
@@ -140,6 +138,8 @@ export default abstract class Application extends Service<Config, Hooks, /* TODO
140
138
 
141
139
  public async start() {
142
140
 
141
+ console.log(`5HTP Core`, process.env.npm_package_version);
142
+
143
143
  console.info(`[boot] Connect disk`);
144
144
  await this.initDisk();
145
145
 
@@ -92,6 +92,8 @@ export default abstract class Service<
92
92
  callbacks.map(
93
93
  cb => cb(...args).catch(e => {
94
94
  console.error(`[hook] Error while executing hook ${name}:`, e);
95
+ if (name !== 'error')
96
+ this.runHook('error', e);
95
97
  })
96
98
  )
97
99
  ).then(() => {