@moostjs/event-http 0.4.23 → 0.5.0

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/dist/index.cjs CHANGED
@@ -246,7 +246,7 @@ class MoostHttp {
246
246
  return infact.createProvideRegistry([eventHttp.WooksHttp, () => this.getHttpApp()], ['WooksHttp', () => this.getHttpApp()], [http.Server, () => this.getHttpApp().getServer()], [https.Server, () => this.getHttpApp().getServer()]);
247
247
  }
248
248
  getLogger() {
249
- return this.getHttpApp().getLogger('moost-http');
249
+ return this.getHttpApp().getLogger('[moost-http]');
250
250
  }
251
251
  bindHandler(opts) {
252
252
  let fn;
package/dist/index.d.ts CHANGED
@@ -249,7 +249,7 @@ interface THttpHandlerMeta {
249
249
  * │ const app = new MyServer()
250
250
  * │ const http = new MoostHttp()
251
251
  * │ app.adapter(http).listen(3000, () => {
252
- * │ app.getLogger('MyApp').log('Up on port 3000')
252
+ * │ app.getLogger('[MyApp]').log('Up on port 3000')
253
253
  * │ })
254
254
  * │ app.init()
255
255
  * ```
package/dist/index.mjs CHANGED
@@ -245,7 +245,7 @@ class MoostHttp {
245
245
  return createProvideRegistry([WooksHttp, () => this.getHttpApp()], ['WooksHttp', () => this.getHttpApp()], [Server, () => this.getHttpApp().getServer()], [Server$1, () => this.getHttpApp().getServer()]);
246
246
  }
247
247
  getLogger() {
248
- return this.getHttpApp().getLogger('moost-http');
248
+ return this.getHttpApp().getLogger('[moost-http]');
249
249
  }
250
250
  bindHandler(opts) {
251
251
  let fn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moostjs/event-http",
3
- "version": "0.4.23",
3
+ "version": "0.5.0",
4
4
  "description": "@moostjs/event-http",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -38,10 +38,10 @@
38
38
  "homepage": "https://github.com/moostjs/moostjs/tree/main/packages/event-http#readme",
39
39
  "peerDependencies": {},
40
40
  "dependencies": {
41
- "moost": "0.4.23",
42
- "@wooksjs/event-core": "^0.5.17",
43
- "@wooksjs/event-http": "^0.5.17",
44
- "@wooksjs/http-body": "^0.5.17",
41
+ "moost": "0.5.0",
42
+ "@wooksjs/event-core": "^0.5.18",
43
+ "@wooksjs/event-http": "^0.5.18",
44
+ "@wooksjs/http-body": "^0.5.18",
45
45
  "@prostojs/infact": "^0.2.4",
46
46
  "@prostojs/router": "^0.2.1"
47
47
  }