azurajs 2.5.2-2 → 2.5.2-4

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.
Files changed (37) hide show
  1. package/dist/{LoggingMiddleware-BBmUUuyX.d.ts → LoggingMiddleware-BZfecAhg.d.ts} +1 -1
  2. package/dist/{LoggingMiddleware-D8FkeXT4.d.cts → LoggingMiddleware-BZvXPu-Q.d.cts} +1 -1
  3. package/dist/{ProxyPlugin--9F0WYSD.d.ts → ProxyPlugin-Cs7B9xzo.d.ts} +2 -2
  4. package/dist/{ProxyPlugin-C9FSADp9.d.cts → ProxyPlugin-rOa2o83O.d.cts} +2 -2
  5. package/dist/{Server-CVyJAYne.d.cts → Server-Cfz6d-2n.d.cts} +3 -2
  6. package/dist/{Server-CbcNkm0I.d.ts → Server-um_Vy8kC.d.ts} +3 -2
  7. package/dist/{common.type-BPo50rEF.d.ts → common.type-BAw801cA.d.ts} +1 -1
  8. package/dist/{common.type-f0llB3mM.d.cts → common.type-D02Uw2lN.d.cts} +1 -1
  9. package/dist/cors.d.cts +1 -1
  10. package/dist/cors.d.ts +1 -1
  11. package/dist/decorators.d.cts +3 -3
  12. package/dist/decorators.d.ts +3 -3
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +5 -5
  15. package/dist/index.d.ts +5 -5
  16. package/dist/index.js.map +1 -1
  17. package/dist/infra.cjs.map +1 -1
  18. package/dist/infra.d.cts +3 -3
  19. package/dist/infra.d.ts +3 -3
  20. package/dist/infra.js.map +1 -1
  21. package/dist/middleware.d.cts +2 -2
  22. package/dist/middleware.d.ts +2 -2
  23. package/dist/plugins.d.cts +3 -3
  24. package/dist/plugins.d.ts +3 -3
  25. package/dist/{proxy.type-B2VypPGc.d.ts → proxy.type-B9XYNOyP.d.ts} +1 -1
  26. package/dist/{proxy.type-ByYzE_1y.d.cts → proxy.type-h1wgeME0.d.cts} +1 -1
  27. package/dist/rate-limit.d.cts +1 -1
  28. package/dist/rate-limit.d.ts +1 -1
  29. package/dist/router.d.cts +1 -1
  30. package/dist/router.d.ts +1 -1
  31. package/dist/swagger.d.cts +3 -3
  32. package/dist/swagger.d.ts +3 -3
  33. package/dist/types.d.cts +2 -2
  34. package/dist/types.d.ts +2 -2
  35. package/package.json +1 -1
  36. package/src/infra/Server.ts +4 -3
  37. package/src/types/index.ts +3 -1
@@ -1,5 +1,5 @@
1
1
  import { ConfigTypes } from './config.js';
2
- import { R as RequestHandler } from './common.type-BPo50rEF.js';
2
+ import { R as RequestHandler } from './common.type-BAw801cA.js';
3
3
 
4
4
  declare function createLoggingMiddleware(config: ConfigTypes): RequestHandler;
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { ConfigTypes } from './config.cjs';
2
- import { R as RequestHandler } from './common.type-f0llB3mM.cjs';
2
+ import { R as RequestHandler } from './common.type-D02Uw2lN.cjs';
3
3
 
4
4
  declare function createLoggingMiddleware(config: ConfigTypes): RequestHandler;
5
5
 
@@ -1,6 +1,6 @@
1
- import { a as RequestServer } from './common.type-BPo50rEF.js';
1
+ import { a as RequestServer } from './common.type-BAw801cA.js';
2
2
  import { R as ResponseServer } from './response.type-d6e6eU9D.js';
3
- import { P as ProxyOptions } from './proxy.type-B2VypPGc.js';
3
+ import { P as ProxyOptions } from './proxy.type-B9XYNOyP.js';
4
4
 
5
5
  declare function createProxyMiddleware(options: ProxyOptions): (req: RequestServer, res: ResponseServer, next?: Function) => Promise<void>;
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { a as RequestServer } from './common.type-f0llB3mM.cjs';
1
+ import { a as RequestServer } from './common.type-D02Uw2lN.cjs';
2
2
  import { R as ResponseServer } from './response.type-d6e6eU9D.cjs';
3
- import { P as ProxyOptions } from './proxy.type-ByYzE_1y.cjs';
3
+ import { P as ProxyOptions } from './proxy.type-h1wgeME0.cjs';
4
4
 
5
5
  declare function createProxyMiddleware(options: ProxyOptions): (req: RequestServer, res: ResponseServer, next?: Function) => Promise<void>;
6
6
  /**
@@ -1,8 +1,8 @@
1
1
  import { ConfigTypes } from './config.cjs';
2
2
  import http from 'node:http';
3
3
  import { Router } from './router.cjs';
4
- import { R as RequestHandler } from './common.type-f0llB3mM.cjs';
5
- import { P as ProxyOptions } from './proxy.type-ByYzE_1y.cjs';
4
+ import { R as RequestHandler } from './common.type-D02Uw2lN.cjs';
5
+ import { P as ProxyOptions } from './proxy.type-h1wgeME0.cjs';
6
6
 
7
7
  declare class AzuraClient {
8
8
  private opts;
@@ -19,6 +19,7 @@ declare class AzuraClient {
19
19
  private setupDefaultRoutes;
20
20
  getConfig(): ConfigTypes;
21
21
  private init;
22
+ use(prefix: string, mw: RequestHandler): void;
22
23
  use(mw: RequestHandler): void;
23
24
  use(prefix: string, router: Router): void;
24
25
  addRoute(method: string, path: string, ...handlers: RequestHandler[]): void;
@@ -1,8 +1,8 @@
1
1
  import { ConfigTypes } from './config.js';
2
2
  import http from 'node:http';
3
3
  import { Router } from './router.js';
4
- import { R as RequestHandler } from './common.type-BPo50rEF.js';
5
- import { P as ProxyOptions } from './proxy.type-B2VypPGc.js';
4
+ import { R as RequestHandler } from './common.type-BAw801cA.js';
5
+ import { P as ProxyOptions } from './proxy.type-B9XYNOyP.js';
6
6
 
7
7
  declare class AzuraClient {
8
8
  private opts;
@@ -19,6 +19,7 @@ declare class AzuraClient {
19
19
  private setupDefaultRoutes;
20
20
  getConfig(): ConfigTypes;
21
21
  private init;
22
+ use(prefix: string, mw: RequestHandler): void;
22
23
  use(mw: RequestHandler): void;
23
24
  use(prefix: string, router: Router): void;
24
25
  addRoute(method: string, path: string, ...handlers: RequestHandler[]): void;
@@ -35,4 +35,4 @@ interface HttpContext {
35
35
  body?: Buffer | string | unknown;
36
36
  }
37
37
 
38
- export type { HttpContext as H, RequestHandler as R, RequestServer as a };
38
+ export type { HttpContext as H, NextFunction as N, RequestHandler as R, RequestServer as a };
@@ -35,4 +35,4 @@ interface HttpContext {
35
35
  body?: Buffer | string | unknown;
36
36
  }
37
37
 
38
- export type { HttpContext as H, RequestHandler as R, RequestServer as a };
38
+ export type { HttpContext as H, NextFunction as N, RequestHandler as R, RequestServer as a };
package/dist/cors.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { R as ResponseServer } from './response.type-d6e6eU9D.cjs';
2
- import { H as HttpContext } from './common.type-f0llB3mM.cjs';
2
+ import { H as HttpContext } from './common.type-D02Uw2lN.cjs';
3
3
  import 'node:http';
4
4
 
5
5
  interface CorsOptions {
package/dist/cors.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { R as ResponseServer } from './response.type-d6e6eU9D.js';
2
- import { H as HttpContext } from './common.type-BPo50rEF.js';
2
+ import { H as HttpContext } from './common.type-BAw801cA.js';
3
3
  import 'node:http';
4
4
 
5
5
  interface CorsOptions {
@@ -1,13 +1,13 @@
1
- import { A as AzuraClient } from './Server-CVyJAYne.cjs';
1
+ import { A as AzuraClient } from './Server-Cfz6d-2n.cjs';
2
2
  import { R as RouteDefinition, P as ParamDefinition } from './swagger.type-BWq5nhCX.cjs';
3
3
  export { a as ParamSource } from './swagger.type-BWq5nhCX.cjs';
4
4
  export { c as ApiBody, e as ApiDeprecated, A as ApiDoc, b as ApiParameter, a as ApiResponse, f as ApiSecurity, d as ApiTags, g as getSwaggerMetadata } from './Swagger-BWCRS_VR.cjs';
5
5
  import './config.cjs';
6
6
  import 'node:http';
7
7
  import './router.cjs';
8
- import './common.type-f0llB3mM.cjs';
8
+ import './common.type-D02Uw2lN.cjs';
9
9
  import './response.type-d6e6eU9D.cjs';
10
- import './proxy.type-ByYzE_1y.cjs';
10
+ import './proxy.type-h1wgeME0.cjs';
11
11
 
12
12
  declare function Controller(prefix?: string): ClassDecorator;
13
13
  declare const Get: (path?: string) => MethodDecorator;
@@ -1,13 +1,13 @@
1
- import { A as AzuraClient } from './Server-CbcNkm0I.js';
1
+ import { A as AzuraClient } from './Server-um_Vy8kC.js';
2
2
  import { R as RouteDefinition, P as ParamDefinition } from './swagger.type-BWq5nhCX.js';
3
3
  export { a as ParamSource } from './swagger.type-BWq5nhCX.js';
4
4
  export { c as ApiBody, e as ApiDeprecated, A as ApiDoc, b as ApiParameter, a as ApiResponse, f as ApiSecurity, d as ApiTags, g as getSwaggerMetadata } from './Swagger-BuMxfyha.js';
5
5
  import './config.js';
6
6
  import 'node:http';
7
7
  import './router.js';
8
- import './common.type-BPo50rEF.js';
8
+ import './common.type-BAw801cA.js';
9
9
  import './response.type-d6e6eU9D.js';
10
- import './proxy.type-B2VypPGc.js';
10
+ import './proxy.type-B9XYNOyP.js';
11
11
 
12
12
  declare function Controller(prefix?: string): ClassDecorator;
13
13
  declare const Get: (path?: string) => MethodDecorator;