vona-module-a-onion 5.0.24 → 5.0.26

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.js CHANGED
@@ -265,6 +265,12 @@ let ServiceOnion = (_dec$2 = ProxyDisable(), _dec2$2 = Service(), _dec3$1 = Bean
265
265
  this.$logger.silly(JSON.stringify(onionSlices, null, 2));
266
266
  this.$logger.silly(JSON.stringify(onionNames, null, 2));
267
267
  }
268
+ inspectEventListener(eventName) {
269
+ const onionSlices = this.getOnionsEnabled(eventName);
270
+ const onionNames = onionSlices.map(item => item.name);
271
+ this.$logger.silly(JSON.stringify(onionSlices, null, 2));
272
+ this.$logger.silly(JSON.stringify(onionNames, null, 2));
273
+ }
268
274
  inspectMeta(metaName, selector, matchThis, ...matchArgs) {
269
275
  const onionSlices = this.getOnionsEnabled(selector, matchThis, ...matchArgs);
270
276
  const onionSlices2 = [];
@@ -1,5 +1,6 @@
1
1
  import type { OnionSceneMeta } from '@cabloy/module-info';
2
2
  import type { Next, VonaContext } from 'vona';
3
+ import type { IEventRecord } from 'vona-module-a-event';
3
4
  import type { IMetaNameRecord } from 'vona-module-a-meta';
4
5
  import type { IOnionExecuteCustom, IOnionSlice, TypeOnionsNormal } from '../types/onion.ts';
5
6
  import { BeanBase } from 'vona';
@@ -41,6 +42,7 @@ export declare class ServiceOnion<ONIONRECORD> extends BeanBase {
41
42
  };
42
43
  private _getRoutePathForMatch;
43
44
  inspect(selector?: string | boolean, matchThis?: any, ...matchArgs: any[]): void;
45
+ inspectEventListener(eventName: keyof IEventRecord): void;
44
46
  inspectMeta(metaName: keyof IMetaNameRecord, selector?: string | boolean, matchThis?: any, ...matchArgs: any[]): void;
45
47
  }
46
48
  export {};
@@ -40,7 +40,7 @@ declare module 'vona' {
40
40
  interface VonaConfig {
41
41
  onions: ConfigOnions;
42
42
  }
43
- interface ILoggerClientChildRecord {
43
+ interface ILoggerChildRecord {
44
44
  onion: never;
45
45
  }
46
46
  interface VonaContext {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-onion",
3
3
  "type": "module",
4
- "version": "5.0.24",
4
+ "version": "5.0.26",
5
5
  "title": "a-onion",
6
6
  "vonaModule": {
7
7
  "dependencies": {}