moost 0.5.0 → 0.5.1
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 +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -670,10 +670,10 @@ class Moost extends hookable.Hookable {
|
|
|
670
670
|
this.provide = infact$1.createProvideRegistry([infact$1.Infact, getMoostInfact], [mate$1.Mate, getMoostMate]);
|
|
671
671
|
this.replace = {};
|
|
672
672
|
this.unregisteredControllers = [];
|
|
673
|
-
this.logger = options?.logger || getDefaultLogger(`${'[2m' + '[35m'}
|
|
674
|
-
getMoostInfact().setLogger(this.getLogger('
|
|
673
|
+
this.logger = options?.logger || getDefaultLogger(`${'[2m' + '[35m'}moost`);
|
|
674
|
+
getMoostInfact().setLogger(this.getLogger('infact'));
|
|
675
675
|
const mate = getMoostMate();
|
|
676
|
-
Object.assign(mate, { logger: this.getLogger('
|
|
676
|
+
Object.assign(mate, { logger: this.getLogger('mate') });
|
|
677
677
|
}
|
|
678
678
|
_fireEventStart(source) {
|
|
679
679
|
this.callHook('event-start', source);
|
package/dist/index.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ interface TMoostOptions {
|
|
|
432
432
|
* │ const app = new MyServer()
|
|
433
433
|
* │ const http = new MoostHttp()
|
|
434
434
|
* │ app.adapter(http).listen(3000, () => {
|
|
435
|
-
* │ app.getLogger('
|
|
435
|
+
* │ app.getLogger('MyApp').log('Up on port 3000')
|
|
436
436
|
* │ })
|
|
437
437
|
* │ app.init()
|
|
438
438
|
* ```
|
|
@@ -480,7 +480,7 @@ declare class Moost extends Hookable {
|
|
|
480
480
|
* Provides application logger
|
|
481
481
|
* ```js
|
|
482
482
|
* // get logger with topic = "App"
|
|
483
|
-
* const logger = app.getLogger('
|
|
483
|
+
* const logger = app.getLogger('App')
|
|
484
484
|
* logger.log('...')
|
|
485
485
|
* ```
|
|
486
486
|
* @param topic
|
package/dist/index.mjs
CHANGED
|
@@ -671,10 +671,10 @@ class Moost extends Hookable {
|
|
|
671
671
|
this.provide = createProvideRegistry([Infact, getMoostInfact], [Mate, getMoostMate]);
|
|
672
672
|
this.replace = {};
|
|
673
673
|
this.unregisteredControllers = [];
|
|
674
|
-
this.logger = options?.logger || getDefaultLogger(`${'[2m' + '[35m'}
|
|
675
|
-
getMoostInfact().setLogger(this.getLogger('
|
|
674
|
+
this.logger = options?.logger || getDefaultLogger(`${'[2m' + '[35m'}moost`);
|
|
675
|
+
getMoostInfact().setLogger(this.getLogger('infact'));
|
|
676
676
|
const mate = getMoostMate();
|
|
677
|
-
Object.assign(mate, { logger: this.getLogger('
|
|
677
|
+
Object.assign(mate, { logger: this.getLogger('mate') });
|
|
678
678
|
}
|
|
679
679
|
_fireEventStart(source) {
|
|
680
680
|
this.callHook('event-start', source);
|