vona-module-a-onion 5.0.22 → 5.0.24

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.
@@ -19,7 +19,7 @@ declare module 'vona' {
19
19
  /** bean: end */
20
20
  /** service: begin */
21
21
  export * from '../service/onion_.ts';
22
- import 'vona';
22
+ import 'vona-module-a-bean';
23
23
  declare module 'vona-module-a-bean' {
24
24
  }
25
25
  declare module 'vona-module-a-onion' {
package/dist/index.js CHANGED
@@ -265,6 +265,18 @@ 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
+ inspectMeta(metaName, selector, matchThis, ...matchArgs) {
269
+ const onionSlices = this.getOnionsEnabled(selector, matchThis, ...matchArgs);
270
+ const onionSlices2 = [];
271
+ for (const item of onionSlices) {
272
+ if (item.beanOptions.name === metaName) {
273
+ onionSlices2.push(item);
274
+ }
275
+ }
276
+ const onionNames = onionSlices.map(item => item.name).filter(item => item.toString().endsWith(`:${metaName}`));
277
+ this.$logger.silly(JSON.stringify(onionSlices2, null, 2));
278
+ this.$logger.silly(JSON.stringify(onionNames, null, 2));
279
+ }
268
280
  }) || _class$2) || _class$2) || _class$2);
269
281
 
270
282
  var _dec$1, _dec2$1, _dec3, _class$1;
@@ -1,5 +1,6 @@
1
1
  import type { OnionSceneMeta } from '@cabloy/module-info';
2
2
  import type { Next, VonaContext } from 'vona';
3
+ import type { IMetaNameRecord } from 'vona-module-a-meta';
3
4
  import type { IOnionExecuteCustom, IOnionSlice, TypeOnionsNormal } from '../types/onion.ts';
4
5
  import { BeanBase } from 'vona';
5
6
  declare const SymbolOnionsEnabled: unique symbol;
@@ -40,5 +41,6 @@ export declare class ServiceOnion<ONIONRECORD> extends BeanBase {
40
41
  };
41
42
  private _getRoutePathForMatch;
42
43
  inspect(selector?: string | boolean, matchThis?: any, ...matchArgs: any[]): void;
44
+ inspectMeta(metaName: keyof IMetaNameRecord, selector?: string | boolean, matchThis?: any, ...matchArgs: any[]): void;
43
45
  }
44
46
  export {};
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.22",
4
+ "version": "5.0.24",
5
5
  "title": "a-onion",
6
6
  "vonaModule": {
7
7
  "dependencies": {}