vona-module-a-onion 5.0.13 → 5.0.15
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 +17 -18
- package/dist/index.js +1 -1
- package/dist/types/onion.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import type { BeanScopeUtil } from 'vona';
|
|
2
|
-
/** bean: end */
|
|
3
|
-
/** bean: begin */
|
|
4
|
-
import type { BeanOnion } from '../bean/bean.onion.ts';
|
|
5
|
-
/** main: end */
|
|
6
|
-
/** scope: begin */
|
|
7
|
-
import { BeanScopeBase } from 'vona';
|
|
8
1
|
/** bean: begin */
|
|
9
|
-
import 'vona';
|
|
10
|
-
import 'vona';
|
|
11
|
-
import 'vona';
|
|
12
|
-
import 'vona';
|
|
13
2
|
export * from '../bean/bean.onion.ts';
|
|
3
|
+
import 'vona';
|
|
14
4
|
declare module 'vona' {
|
|
15
5
|
}
|
|
16
6
|
declare module 'vona-module-a-onion' {
|
|
17
7
|
interface BeanOnion {
|
|
18
8
|
}
|
|
19
9
|
}
|
|
10
|
+
/** bean: end */
|
|
11
|
+
/** bean: begin */
|
|
12
|
+
import type { BeanOnion } from '../bean/bean.onion.ts';
|
|
13
|
+
import 'vona';
|
|
20
14
|
declare module 'vona' {
|
|
21
15
|
interface IBeanRecordGlobal {
|
|
22
|
-
onion: BeanOnion;
|
|
16
|
+
'onion': BeanOnion;
|
|
23
17
|
}
|
|
24
18
|
}
|
|
25
|
-
/**
|
|
26
|
-
/**
|
|
27
|
-
export * from '../
|
|
19
|
+
/** bean: end */
|
|
20
|
+
/** service: begin */
|
|
21
|
+
export * from '../service/onion_.ts';
|
|
22
|
+
import 'vona';
|
|
28
23
|
declare module 'vona-module-a-web' {
|
|
29
24
|
}
|
|
30
25
|
declare module 'vona-module-a-onion' {
|
|
31
26
|
}
|
|
32
|
-
/**
|
|
33
|
-
/**
|
|
34
|
-
export * from '../
|
|
27
|
+
/** service: end */
|
|
28
|
+
/** main: begin */
|
|
29
|
+
export * from '../main.ts';
|
|
30
|
+
/** main: end */
|
|
31
|
+
/** scope: begin */
|
|
32
|
+
import { BeanScopeBase, type BeanScopeUtil } from 'vona';
|
|
35
33
|
export declare class ScopeModuleAOnion extends BeanScopeBase {
|
|
36
34
|
}
|
|
37
35
|
export interface ScopeModuleAOnion {
|
|
38
36
|
util: BeanScopeUtil;
|
|
39
37
|
}
|
|
38
|
+
import 'vona';
|
|
40
39
|
declare module 'vona' {
|
|
41
40
|
interface IBeanScopeRecord {
|
|
42
41
|
'a-onion': ScopeModuleAOnion;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProxyDisable, BeanInfo, BeanBase, compose, appMetadata, cast, deepExtend, appResource, BeanSimple, BeanScopeBase } from 'vona';
|
|
2
|
-
import { Bean, Scope } from 'vona-module-a-bean';
|
|
3
2
|
import { isNil, checkMeta } from '@cabloy/utils';
|
|
4
3
|
import { matchSelector } from '@cabloy/word-utils';
|
|
4
|
+
import { Bean, Scope } from 'vona-module-a-bean';
|
|
5
5
|
import { isRegExp } from 'node:util/types';
|
|
6
6
|
import { swapDeps } from '@cabloy/deps';
|
|
7
7
|
import { getOnionScenesMeta } from '@cabloy/module-info';
|
package/dist/types/onion.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ export declare const SymbolUseOnionOptions: unique symbol;
|
|
|
5
5
|
export type IOnionExecuteCustom = (beanInstance: any, data: any, options: any, next: Function) => any;
|
|
6
6
|
export type TypeUseOnionOmitOptionsGlobal<T> = Omit<T, 'global' | 'dependencies' | 'dependents' | 'ignore' | 'match'>;
|
|
7
7
|
export type TypeUseOnionOmitOptionsEnable<T> = Omit<T, 'enable' | 'meta'>;
|
|
8
|
-
export interface IOnionOptionsEnable {
|
|
8
|
+
export interface IOnionOptionsEnable<OmitMetaFields extends string = never> {
|
|
9
9
|
enable?: boolean;
|
|
10
|
-
meta?: IOnionOptionsMeta
|
|
10
|
+
meta?: Omit<IOnionOptionsMeta, OmitMetaFields>;
|
|
11
11
|
}
|
|
12
12
|
export type TypeOnionOptionsMatchFunction = (this: any, ...args: any[]) => boolean;
|
|
13
13
|
export type TypeOnionOptionsMatchRule<T> = T | RegExp | TypeOnionOptionsMatchFunction;
|