@aeriajs/http 0.0.102 → 0.0.104
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/routing.d.ts +2 -2
- package/package.json +5 -5
package/dist/routing.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const matches: <TRequest extends GenericRequest>(req: TRequest, m
|
|
|
25
25
|
fragments: string[];
|
|
26
26
|
} | undefined;
|
|
27
27
|
export declare const registerRoute: (context: RouteContext, method: RequestMethod | RequestMethod[], exp: RouteUri, cb: (context: RouteContext) => any, contract?: ContractWithRoles, options?: RouterOptions) => Promise<any>;
|
|
28
|
-
export declare const wrapRouteExecution: (response: GenericResponse, cb: () =>
|
|
28
|
+
export declare const wrapRouteExecution: (response: GenericResponse, cb: () => unknown | Promise<unknown>) => Promise<{} | undefined>;
|
|
29
29
|
export declare const createRouter: (options?: Partial<RouterOptions>) => ProxiedRouter<{
|
|
30
30
|
route: <const TContractWithRoles extends ContractWithRoles, TCallback extends (TContractWithRoles extends {
|
|
31
31
|
response: infer Response;
|
|
@@ -36,6 +36,6 @@ export declare const createRouter: (options?: Partial<RouterOptions>) => Proxied
|
|
|
36
36
|
install: (context: RouteContext, options?: RouterOptions) => any;
|
|
37
37
|
routesMeta: RoutesMeta;
|
|
38
38
|
}>(exp: RouteUri, router: TRouter, middleware?: (context: RouteContext) => any) => void;
|
|
39
|
-
install: (_context: RouteContext, _options?: RouterOptions) => ReturnType<(value: unknown, context: RouteContext, groupOptions?: RouteGroupOptions | undefined) => Promise<any>>;
|
|
39
|
+
install: (_context: RouteContext, _options?: RouterOptions) => ReturnType<(value: unknown, context: RouteContext, groupOptions?: RouteGroupOptions | undefined) => Promise<{} | Promise<any> | null>>;
|
|
40
40
|
}>;
|
|
41
41
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/http",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.104",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@aeriajs/validation": "link:../validation"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@aeriajs/common": "^0.0.
|
|
32
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
33
|
-
"@aeriajs/types": "^0.0.
|
|
34
|
-
"@aeriajs/validation": "^0.0.
|
|
31
|
+
"@aeriajs/common": "^0.0.92",
|
|
32
|
+
"@aeriajs/entrypoint": "^0.0.94",
|
|
33
|
+
"@aeriajs/types": "^0.0.79",
|
|
34
|
+
"@aeriajs/validation": "^0.0.95"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"test": "vitest run",
|