@midwayjs/core 3.4.10 → 3.4.11
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/interface.d.ts +3 -3
- package/package.json +3 -3
package/dist/interface.d.ts
CHANGED
|
@@ -307,9 +307,9 @@ export declare type NextFunction = () => Promise<any>;
|
|
|
307
307
|
* Common middleware definition
|
|
308
308
|
*/
|
|
309
309
|
export interface IMiddleware<CTX, R, N = unknown> {
|
|
310
|
-
resolve: (app
|
|
311
|
-
match?: (ctx
|
|
312
|
-
ignore?: (ctx
|
|
310
|
+
resolve: (app: IMidwayApplication) => FunctionMiddleware<CTX, R, N> | Promise<FunctionMiddleware<CTX, R, N>>;
|
|
311
|
+
match?: (ctx: CTX) => boolean;
|
|
312
|
+
ignore?: (ctx: CTX) => boolean;
|
|
313
313
|
}
|
|
314
314
|
export declare type FunctionMiddleware<CTX, R, N = unknown> = N extends true ? (req: CTX, res: R, next: N) => any : (context: CTX, next: R, options?: any) => any;
|
|
315
315
|
export declare type ClassMiddleware<CTX, R, N> = new (...args: any[]) => IMiddleware<CTX, R, N>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.11",
|
|
4
4
|
"description": "midway core",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@midwayjs/decorator": "^3.4.
|
|
24
|
+
"@midwayjs/decorator": "^3.4.11",
|
|
25
25
|
"koa": "2.13.4",
|
|
26
26
|
"midway-test-component": "*",
|
|
27
27
|
"mm": "3.2.0",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=12"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "942dd076d60f27d6004640fa6dd9a9724efc559d"
|
|
49
49
|
}
|