vona-module-a-core 5.0.75 → 5.0.77

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.
@@ -1,7 +1,7 @@
1
1
  /** middleware: begin */
2
2
  export * from '../bean/middleware.gate.ts';
3
3
  import type { IMiddlewareOptionsGate } from '../bean/middleware.gate.ts';
4
- import 'vona';
4
+ import 'vona-module-a-aspect';
5
5
  declare module 'vona-module-a-aspect' {
6
6
  interface IMiddlewareRecordGlobal {
7
7
  'a-core:gate': IMiddlewareOptionsGate;
@@ -21,7 +21,7 @@ export * from '../bean/middlewareSystem.notfound.ts';
21
21
  export * from '../bean/middlewareSystem.overrideMethod.ts';
22
22
  import type { IMiddlewareSystemOptionsNotfound } from '../bean/middlewareSystem.notfound.ts';
23
23
  import type { IMiddlewareSystemOptionsOverrideMethod } from '../bean/middlewareSystem.overrideMethod.ts';
24
- import 'vona';
24
+ import 'vona-module-a-aspect';
25
25
  declare module 'vona-module-a-aspect' {
26
26
  interface IMiddlewareSystemRecord {
27
27
  'a-core:notfound': IMiddlewareSystemOptionsNotfound;
@@ -45,8 +45,8 @@ declare module 'vona-module-a-core' {
45
45
  /** middlewareSystem: end */
46
46
  /** meta: begin */
47
47
  export * from '../bean/meta.static.ts';
48
- import 'vona';
49
- declare module 'vona' {
48
+ import 'vona-module-a-meta';
49
+ declare module 'vona-module-a-meta' {
50
50
  interface IMetaRecord {
51
51
  'a-core:static': never;
52
52
  }
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 };
@@ -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 {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-core",
3
3
  "type": "module",
4
- "version": "5.0.75",
4
+ "version": "5.0.77",
5
5
  "title": "a-core",
6
6
  "vonaModule": {
7
7
  "dependencies": {},