moost 0.4.23 → 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 CHANGED
@@ -385,7 +385,7 @@ function getIterceptorHandlerFactory(interceptors, getTargetInstance, pipes, log
385
385
  }
386
386
 
387
387
  async function bindControllerMethods(options) {
388
- const opts = options || {};
388
+ const opts = options;
389
389
  const { getInstance } = opts;
390
390
  const { classConstructor } = opts;
391
391
  const { adapters } = opts;
@@ -462,7 +462,7 @@ async function bindControllerMethods(options) {
462
462
  getIterceptorHandler,
463
463
  resolveArgs,
464
464
  logHandler: (eventName) => {
465
- options.logger.info(`• ${eventName} ${'' + '' + ''}→ ${classConstructor.name}.${''}${method}${''}()`);
465
+ options.logger.info(`${eventName} ${'' + '' + ''}→ ${classConstructor.name}.${''}${method}${''}()`);
466
466
  },
467
467
  register(h, path, args) {
468
468
  const data = wm.get(h);
@@ -670,7 +670,7 @@ 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('moost');
673
+ this.logger = options?.logger || getDefaultLogger(`${'' + ''}moost`);
674
674
  getMoostInfact().setLogger(this.getLogger('infact'));
675
675
  const mate = getMoostMate();
676
676
  Object.assign(mate, { logger: this.getLogger('mate') });
package/dist/index.mjs CHANGED
@@ -386,7 +386,7 @@ function getIterceptorHandlerFactory(interceptors, getTargetInstance, pipes, log
386
386
  }
387
387
 
388
388
  async function bindControllerMethods(options) {
389
- const opts = options || {};
389
+ const opts = options;
390
390
  const { getInstance } = opts;
391
391
  const { classConstructor } = opts;
392
392
  const { adapters } = opts;
@@ -463,7 +463,7 @@ async function bindControllerMethods(options) {
463
463
  getIterceptorHandler,
464
464
  resolveArgs,
465
465
  logHandler: (eventName) => {
466
- options.logger.info(`• ${eventName} ${'' + '' + ''}→ ${classConstructor.name}.${''}${method}${''}()`);
466
+ options.logger.info(`${eventName} ${'' + '' + ''}→ ${classConstructor.name}.${''}${method}${''}()`);
467
467
  },
468
468
  register(h, path, args) {
469
469
  const data = wm.get(h);
@@ -671,7 +671,7 @@ 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('moost');
674
+ this.logger = options?.logger || getDefaultLogger(`${'' + ''}moost`);
675
675
  getMoostInfact().setLogger(this.getLogger('infact'));
676
676
  const mate = getMoostMate();
677
677
  Object.assign(mate, { logger: this.getLogger('mate') });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moost",
3
- "version": "0.4.23",
3
+ "version": "0.5.1",
4
4
  "description": "moost",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -33,10 +33,10 @@
33
33
  "dependencies": {
34
34
  "@prostojs/infact": "^0.2.4",
35
35
  "@prostojs/mate": "^0.3.3",
36
- "@prostojs/logger": "^0.4.2",
37
- "@wooksjs/event-core": "^0.5.17",
36
+ "@prostojs/logger": "^0.4.3",
37
+ "@wooksjs/event-core": "^0.5.18",
38
38
  "hookable": "^5.5.3",
39
- "wooks": "^0.5.17"
39
+ "wooks": "^0.5.18"
40
40
  },
41
41
  "author": "Artem Maltsev",
42
42
  "license": "MIT",