koatty 3.5.12-2 → 3.5.12-3
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 +2 -0
- package/dist/index.d.ts +8 -3
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/package.json +6 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,8 @@
|
|
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.5.12-3](https://github.com/thinkkoa/koatty/compare/v3.5.12-2...v3.5.12-3) (2021-12-23)
|
6
|
+
|
5
7
|
### [3.5.12-2](https://github.com/thinkkoa/koatty/compare/v3.5.12-1...v3.5.12-2) (2021-12-21)
|
6
8
|
|
7
9
|
### [3.5.12-1](https://github.com/thinkkoa/koatty/compare/v3.5.12-0...v3.5.12-1) (2021-12-21)
|
package/dist/index.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2021-12-
|
3
|
+
* @Date: 2021-12-23 15:26:28
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
7
7
|
*/
|
8
8
|
import { Helper } from 'koatty_lib';
|
9
|
-
import Koa from 'koa';
|
10
9
|
import { Koatty } from 'koatty_core';
|
11
10
|
import { KoattyContext } from 'koatty_core';
|
11
|
+
import { KoattyNext } from 'koatty_core';
|
12
12
|
import { Logger as Logger_2 } from 'koatty_logger';
|
13
13
|
import { ObjectDefinitionOptions } from 'koatty_container';
|
14
14
|
|
@@ -306,7 +306,7 @@ export declare interface IController {
|
|
306
306
|
* Interface for Middleware
|
307
307
|
*/
|
308
308
|
export declare interface IMiddleware {
|
309
|
-
run: (options: any, app: Koatty) =>
|
309
|
+
run: (options: any, app: Koatty) => KoattyMiddleware;
|
310
310
|
}
|
311
311
|
|
312
312
|
/**
|
@@ -323,6 +323,11 @@ export declare interface IService {
|
|
323
323
|
app: Koatty;
|
324
324
|
}
|
325
325
|
|
326
|
+
/**
|
327
|
+
* Interface for Middleware
|
328
|
+
*/
|
329
|
+
export declare type KoattyMiddleware = (ctx: KoattyContext, next: KoattyNext) => Promise<any>;
|
330
|
+
|
326
331
|
export declare const Logger: Logger_2;
|
327
332
|
|
328
333
|
/**
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2021-12-
|
3
|
+
* @Date: 2021-12-23 15:26:13
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -903,7 +903,7 @@ class Loader {
|
|
903
903
|
}
|
904
904
|
}
|
905
905
|
|
906
|
-
var version = "3.5.12-
|
906
|
+
var version = "3.5.12-3";
|
907
907
|
var engines = {
|
908
908
|
node: ">12.0.0"
|
909
909
|
};
|
package/dist/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2021-12-
|
3
|
+
* @Date: 2021-12-23 15:26:13
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -886,7 +886,7 @@ class Loader {
|
|
886
886
|
}
|
887
887
|
}
|
888
888
|
|
889
|
-
var version = "3.5.12-
|
889
|
+
var version = "3.5.12-3";
|
890
890
|
var engines = {
|
891
891
|
node: ">12.0.0"
|
892
892
|
};
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.5.12-
|
3
|
+
"version": "3.5.12-3",
|
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",
|
@@ -82,16 +82,16 @@
|
|
82
82
|
"dependencies": {
|
83
83
|
"koa": "^2.13.4",
|
84
84
|
"koatty_config": "^1.0.6",
|
85
|
-
"koatty_container": "^1.6.
|
86
|
-
"koatty_core": "^1.4.
|
85
|
+
"koatty_container": "^1.6.16",
|
86
|
+
"koatty_core": "^1.4.14",
|
87
87
|
"koatty_exception": "^1.0.6",
|
88
88
|
"koatty_lib": "^1.2.8",
|
89
89
|
"koatty_loader": "^1.0.2",
|
90
90
|
"koatty_logger": "^1.3.12",
|
91
91
|
"koatty_payload": "^1.3.10",
|
92
|
-
"koatty_router": "^1.6.
|
93
|
-
"koatty_serve": "^1.4.
|
94
|
-
"koatty_trace": "^1.5.
|
92
|
+
"koatty_router": "^1.6.4",
|
93
|
+
"koatty_serve": "^1.4.4",
|
94
|
+
"koatty_trace": "^1.5.2",
|
95
95
|
"reflect-metadata": "^0.1.13",
|
96
96
|
"tslib": "^2.3.1"
|
97
97
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.5.12-
|
3
|
+
"version": "3.5.12-3",
|
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",
|
@@ -82,16 +82,16 @@
|
|
82
82
|
"dependencies": {
|
83
83
|
"koa": "^2.13.4",
|
84
84
|
"koatty_config": "^1.0.6",
|
85
|
-
"koatty_container": "^1.6.
|
86
|
-
"koatty_core": "^1.4.
|
85
|
+
"koatty_container": "^1.6.16",
|
86
|
+
"koatty_core": "^1.4.14",
|
87
87
|
"koatty_exception": "^1.0.6",
|
88
88
|
"koatty_lib": "^1.2.8",
|
89
89
|
"koatty_loader": "^1.0.2",
|
90
90
|
"koatty_logger": "^1.3.12",
|
91
91
|
"koatty_payload": "^1.3.10",
|
92
|
-
"koatty_router": "^1.6.
|
93
|
-
"koatty_serve": "^1.4.
|
94
|
-
"koatty_trace": "^1.5.
|
92
|
+
"koatty_router": "^1.6.4",
|
93
|
+
"koatty_serve": "^1.4.4",
|
94
|
+
"koatty_trace": "^1.5.2",
|
95
95
|
"reflect-metadata": "^0.1.13",
|
96
96
|
"tslib": "^2.3.1"
|
97
97
|
}
|