koatty 3.10.4-4 → 3.10.4-5

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
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.10.4-5](https://github.com/thinkkoa/koatty/compare/v3.10.4-4...v3.10.4-5) (2023-12-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * KoattyMiddleware ([50dd7f5](https://github.com/thinkkoa/koatty/commit/50dd7f57fc6824127443ddfc614d5f61e83530ed))
11
+
5
12
  ### [3.10.4-4](https://github.com/thinkkoa/koatty/compare/v3.10.4-3...v3.10.4-4) (2023-12-23)
6
13
 
7
14
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2023-12-23 11:03:07
3
+ * @Date: 2023-12-23 11:42:32
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -11,8 +11,8 @@ import { EventHookFunc } from 'koatty_core';
11
11
  import { Helper } from 'koatty_lib';
12
12
  import { Koatty } from 'koatty_core';
13
13
  import { KoattyContext } from 'koatty_core';
14
- import { KoattyNext } from 'koatty_core';
15
14
  import { Logger as Logger_2 } from 'koatty_logger';
15
+ import { Middleware as Middleware_2 } from 'koa';
16
16
  import { Value } from 'koatty_config';
17
17
 
18
18
  /**
@@ -212,7 +212,8 @@ export declare interface IService {
212
212
  /**
213
213
  * Interface for Middleware
214
214
  */
215
- export declare type KoattyMiddleware = (ctx: KoattyContext, next: KoattyNext) => Promise<any>;
215
+ export declare interface KoattyMiddleware extends Middleware_2 {
216
+ }
216
217
 
217
218
  export declare const Logger: Logger_2;
218
219
 
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2023-12-23 11:02:53
3
+ * @Date: 2023-12-23 11:42:17
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -662,7 +662,7 @@ class Loader {
662
662
  }
663
663
  }
664
664
 
665
- var version = "3.10.4-4";
665
+ var version = "3.10.4-5";
666
666
  var engines = {
667
667
  node: ">12.0.0"
668
668
  };
@@ -929,7 +929,7 @@ function BindEventHook(eventName, eventFunc, target) {
929
929
  * @Usage:
930
930
  * @Author: richen
931
931
  * @Date: 2023-12-09 21:56:32
932
- * @LastEditTime: 2023-12-09 23:03:33
932
+ * @LastEditTime: 2023-12-23 11:40:44
933
933
  * @License: BSD (3-Clause)
934
934
  * @Copyright (c): <richenlin(at)gmail.com>
935
935
  */
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2023-12-23 11:02:53
3
+ * @Date: 2023-12-23 11:42:17
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -647,7 +647,7 @@ class Loader {
647
647
  }
648
648
  }
649
649
 
650
- var version = "3.10.4-4";
650
+ var version = "3.10.4-5";
651
651
  var engines = {
652
652
  node: ">12.0.0"
653
653
  };
@@ -914,7 +914,7 @@ function BindEventHook(eventName, eventFunc, target) {
914
914
  * @Usage:
915
915
  * @Author: richen
916
916
  * @Date: 2023-12-09 21:56:32
917
- * @LastEditTime: 2023-12-09 23:03:33
917
+ * @LastEditTime: 2023-12-23 11:40:44
918
918
  * @License: BSD (3-Clause)
919
919
  * @Copyright (c): <richenlin(at)gmail.com>
920
920
  */
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.10.4-4",
3
+ "version": "3.10.4-5",
4
4
  "description": "Koa2 + Typescript = koatty. Use Typescript's decorator implement auto injection.",
5
5
  "scripts": {
6
6
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.10.4-4",
3
+ "version": "3.10.4-5",
4
4
  "description": "Koa2 + Typescript = koatty. Use Typescript's decorator implement auto injection.",
5
5
  "scripts": {
6
6
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",