vona-module-a-core 5.0.77 → 5.0.78
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 +17 -1
- package/dist/lib/core.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -96,9 +96,25 @@ function Gate(options) {
|
|
|
96
96
|
function Error(options) {
|
|
97
97
|
return Aspect.filterGlobal('a-error:error', options);
|
|
98
98
|
}
|
|
99
|
+
function Log(options) {
|
|
100
|
+
return Aspect.aopMethod('a-logger:log', options);
|
|
101
|
+
}
|
|
102
|
+
function Transaction(options) {
|
|
103
|
+
return Aspect.aopMethod('a-orm:transaction', options);
|
|
104
|
+
}
|
|
105
|
+
function CaptchaVerify(options) {
|
|
106
|
+
return Aspect.interceptor('a-captcha:captchaVerify', options);
|
|
107
|
+
}
|
|
108
|
+
function FileUpload(options) {
|
|
109
|
+
return Aspect.interceptor('a-upload:upload', options);
|
|
110
|
+
}
|
|
99
111
|
const Core = {
|
|
100
112
|
gate: Gate,
|
|
101
|
-
error: Error
|
|
113
|
+
error: Error,
|
|
114
|
+
log: Log,
|
|
115
|
+
transaction: Transaction,
|
|
116
|
+
captchaVerify: CaptchaVerify,
|
|
117
|
+
fileUpload: FileUpload
|
|
102
118
|
};
|
|
103
119
|
|
|
104
120
|
export { Core, MetaStatic, MiddlewareGate, MiddlewareSystemNotfound, MiddlewareSystemOverrideMethod, ScopeModuleACore };
|
package/dist/lib/core.d.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
import type { IInterceptorOptionsCaptchaVerify } from 'vona-module-a-captcha';
|
|
1
2
|
import type { IFilterOptionsError } from 'vona-module-a-error';
|
|
3
|
+
import type { IAopMethodOptionsLog } from 'vona-module-a-logger';
|
|
2
4
|
import type { TypeUseOnionOmitOptionsGlobal } from 'vona-module-a-onion';
|
|
5
|
+
import type { IAopMethodOptionsTransaction } from 'vona-module-a-orm';
|
|
6
|
+
import type { IInterceptorOptionsUpload } from 'vona-module-a-upload';
|
|
3
7
|
import type { IMiddlewareOptionsGate } from '../bean/middleware.gate.ts';
|
|
4
8
|
declare function Gate(options?: Partial<TypeUseOnionOmitOptionsGlobal<IMiddlewareOptionsGate>>): ClassDecorator & MethodDecorator;
|
|
5
9
|
declare function Error(options?: Partial<TypeUseOnionOmitOptionsGlobal<IFilterOptionsError>>): ClassDecorator & MethodDecorator;
|
|
10
|
+
declare function Log(options?: Partial<IAopMethodOptionsLog>): MethodDecorator;
|
|
11
|
+
declare function Transaction(options?: Partial<IAopMethodOptionsTransaction>): MethodDecorator;
|
|
12
|
+
declare function CaptchaVerify(options?: Partial<IInterceptorOptionsCaptchaVerify>): MethodDecorator;
|
|
13
|
+
declare function FileUpload(options?: Partial<IInterceptorOptionsUpload>): MethodDecorator;
|
|
6
14
|
export declare const Core: {
|
|
7
15
|
gate: typeof Gate;
|
|
8
16
|
error: typeof Error;
|
|
17
|
+
log: typeof Log;
|
|
18
|
+
transaction: typeof Transaction;
|
|
19
|
+
captchaVerify: typeof CaptchaVerify;
|
|
20
|
+
fileUpload: typeof FileUpload;
|
|
9
21
|
};
|
|
10
22
|
export {};
|