@midwayjs/koa 2.14.0 → 2.14.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.14.2](https://github.com/midwayjs/midway/compare/v2.14.1...v2.14.2) (2021-12-28)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * generate middleware typings ([#1442](https://github.com/midwayjs/midway/issues/1442)) ([1b2f99b](https://github.com/midwayjs/midway/commit/1b2f99b0fcfa6d87fa216ac9277d9f1240ef26a2))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.14.0](https://github.com/midwayjs/midway/compare/v2.13.5...v2.14.0) (2021-12-06)
7
18
 
8
19
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # midway-web for koa
1
+ # midway for koa
2
2
 
3
3
  [![Package Quality](http://npm.packagequality.com/shield/midway-web.svg)](http://packagequality.com/#?package=midway-web)
4
4
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/midwayjs/midway/pulls)
@@ -21,7 +21,7 @@ export declare abstract class MidwayKoaBaseFramework<APP extends IMidwayKoaAppli
21
21
  * @param routerResponseData
22
22
  */
23
23
  generateController(controllerMapping: string, routeArgsInfo?: RouterParamValue[], routerResponseData?: any[]): Middleware<DefaultState, IMidwayKoaContext>;
24
- generateMiddleware(middlewareId: string): Promise<Middleware<DefaultState, IMidwayKoaContext, any>>;
24
+ generateMiddleware(middlewareId: any): Promise<Middleware<DefaultState, IMidwayKoaContext, any>>;
25
25
  loadMidwayController(): Promise<void>;
26
26
  protected createRouter(routerOptions: any): Router;
27
27
  private handlerWebMiddleware;
@@ -1,4 +1,3 @@
1
- /// <reference types="koa-passport" />
2
1
  /// <reference types="node" />
3
2
  import { IConfigurationOptions, IMidwayApplication, IMidwayContext } from '@midwayjs/core';
4
3
  import * as koa from 'koa';
@@ -7,7 +6,7 @@ import { RouterParamValue } from '@midwayjs/decorator';
7
6
  export declare type IMidwayKoaContext = IMidwayContext<KoaContext>;
8
7
  export declare type IMidwayKoaApplication = IMidwayApplication<IMidwayKoaContext, koa<DefaultState, IMidwayKoaContext> & {
9
8
  generateController(controllerMapping: string, routeArgsInfo?: RouterParamValue[], routerResponseData?: any[]): Middleware<DefaultState, IMidwayKoaContext>;
10
- generateMiddleware(middlewareId: string): Promise<Middleware<DefaultState, IMidwayKoaContext>>;
9
+ generateMiddleware(middlewareId: any): Promise<Middleware<DefaultState, IMidwayKoaContext>>;
11
10
  }>;
12
11
  export declare type IMidwayKoaNext = Next;
13
12
  export interface IMidwayKoaApplicationPlus<CTX extends IMidwayContext> extends IMidwayApplication<CTX> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/koa",
3
- "version": "2.14.0",
3
+ "version": "2.14.2",
4
4
  "description": "Midway Web Framework for KOA",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=10.10.0"
47
47
  },
48
- "gitHead": "5fd716b0e731162d8e9f0931790fde7402fb83de"
48
+ "gitHead": "68b7fd9182619e8428f353f24a52254abce6e5bf"
49
49
  }