vona-module-a-core 5.0.75 → 5.0.76
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 +5 -1
- package/dist/lib/core.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -93,8 +93,12 @@ let ScopeModuleACore = (_dec = Scope(), _dec2 = BeanInfo({
|
|
|
93
93
|
function Gate(options) {
|
|
94
94
|
return Aspect.middlewareGlobal('a-core:gate', options);
|
|
95
95
|
}
|
|
96
|
+
function Error(options) {
|
|
97
|
+
return Aspect.filterGlobal('a-error:error', options);
|
|
98
|
+
}
|
|
96
99
|
const Core = {
|
|
97
|
-
gate: Gate
|
|
100
|
+
gate: Gate,
|
|
101
|
+
error: Error
|
|
98
102
|
};
|
|
99
103
|
|
|
100
104
|
export { Core, MetaStatic, MiddlewareGate, MiddlewareSystemNotfound, MiddlewareSystemOverrideMethod, ScopeModuleACore };
|
package/dist/lib/core.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { IFilterOptionsError } from 'vona-module-a-error';
|
|
1
2
|
import type { TypeUseOnionOmitOptionsGlobal } from 'vona-module-a-onion';
|
|
2
3
|
import type { IMiddlewareOptionsGate } from '../bean/middleware.gate.ts';
|
|
3
4
|
declare function Gate(options?: Partial<TypeUseOnionOmitOptionsGlobal<IMiddlewareOptionsGate>>): ClassDecorator & MethodDecorator;
|
|
5
|
+
declare function Error(options?: Partial<TypeUseOnionOmitOptionsGlobal<IFilterOptionsError>>): ClassDecorator & MethodDecorator;
|
|
4
6
|
export declare const Core: {
|
|
5
7
|
gate: typeof Gate;
|
|
8
|
+
error: typeof Error;
|
|
6
9
|
};
|
|
7
10
|
export {};
|