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.
- package/dist/.metadata/index.d.ts +1 -1
- package/dist/index.js +12 -0
- package/dist/service/onion_.d.ts +2 -0
- package/package.json +1 -1
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;
|
package/dist/service/onion_.d.ts
CHANGED
|
@@ -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 {};
|