koatty 3.10.1 → 3.10.2-0
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 +7 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +4 -5
- package/dist/index.mjs +4 -5
- package/dist/package.json +2 -2
- package/package.json +2 -2
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.2-0](https://github.com/thinkkoa/koatty/compare/v3.10.1...v3.10.2-0) (2023-11-10)
|
6
|
+
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* rename ([738185d](https://github.com/thinkkoa/koatty/commit/738185d3eb538770f8ee186dccd4c61ead8a3659))
|
11
|
+
|
5
12
|
### [3.10.1](https://github.com/thinkkoa/koatty/compare/v3.10.0...v3.10.1) (2023-11-09)
|
6
13
|
|
7
14
|
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2023-11-
|
3
|
+
* @Date: 2023-11-10 17:39:37
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -52,9 +52,9 @@ export declare class BaseController implements IController {
|
|
52
52
|
/**
|
53
53
|
* init
|
54
54
|
*
|
55
|
-
* @protected
|
56
55
|
* @memberof BaseController
|
57
56
|
*/
|
57
|
+
init(...arg: any[]): void;
|
58
58
|
/**
|
59
59
|
* Response to normalize json format content for success
|
60
60
|
*
|
@@ -64,7 +64,7 @@ export declare class BaseController implements IController {
|
|
64
64
|
* @returns {*}
|
65
65
|
* @memberof BaseController
|
66
66
|
*/
|
67
|
-
ok(msg: string | ApiInput, data?: any, code?: number):
|
67
|
+
ok(msg: string | ApiInput, data?: any, code?: number): ApiOutput;
|
68
68
|
/**
|
69
69
|
* Response to normalize json format content for fail
|
70
70
|
*
|
@@ -78,7 +78,7 @@ export declare class BaseController implements IController {
|
|
78
78
|
}
|
79
79
|
|
80
80
|
/**
|
81
|
-
* Base
|
81
|
+
* Base service
|
82
82
|
*
|
83
83
|
* @export
|
84
84
|
* @class Base
|
@@ -97,6 +97,7 @@ export declare class BaseService implements IService {
|
|
97
97
|
* @protected
|
98
98
|
* @memberof BaseController
|
99
99
|
*/
|
100
|
+
init(...arg: any[]): void;
|
100
101
|
}
|
101
102
|
|
102
103
|
/**
|
@@ -181,6 +182,9 @@ export { Helper }
|
|
181
182
|
export declare interface IController {
|
182
183
|
readonly app: Koatty;
|
183
184
|
readonly ctx: KoattyContext;
|
185
|
+
init(...arg: any[]): void;
|
186
|
+
ok(msg: string | ApiInput, data?: any, code?: number): ApiOutput;
|
187
|
+
fail(msg: Error | string | ApiInput, data?: any, code?: number): void;
|
184
188
|
}
|
185
189
|
|
186
190
|
/**
|
@@ -202,6 +206,7 @@ export declare interface IPlugin {
|
|
202
206
|
*/
|
203
207
|
export declare interface IService {
|
204
208
|
readonly app: Koatty;
|
209
|
+
init(...arg: any[]): void;
|
205
210
|
}
|
206
211
|
|
207
212
|
/**
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2023-11-
|
3
|
+
* @Date: 2023-11-10 17:39:23
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -183,7 +183,6 @@ class BaseController {
|
|
183
183
|
/**
|
184
184
|
* init
|
185
185
|
*
|
186
|
-
* @protected
|
187
186
|
* @memberof BaseController
|
188
187
|
*/
|
189
188
|
init(...arg) {
|
@@ -199,7 +198,7 @@ class BaseController {
|
|
199
198
|
*/
|
200
199
|
ok(msg, data, code = 0) {
|
201
200
|
const obj = formatApiData(msg, data, code);
|
202
|
-
return
|
201
|
+
return obj;
|
203
202
|
}
|
204
203
|
/**
|
205
204
|
* Response to normalize json format content for fail
|
@@ -647,7 +646,7 @@ class Loader {
|
|
647
646
|
}
|
648
647
|
}
|
649
648
|
|
650
|
-
var version = "3.10.
|
649
|
+
var version = "3.10.2-0";
|
651
650
|
var engines = {
|
652
651
|
node: ">12.0.0"
|
653
652
|
};
|
@@ -985,7 +984,7 @@ function Plugin(identifier) {
|
|
985
984
|
}
|
986
985
|
|
987
986
|
/**
|
988
|
-
* Base
|
987
|
+
* Base service
|
989
988
|
*
|
990
989
|
* @export
|
991
990
|
* @class Base
|
package/dist/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2023-11-
|
3
|
+
* @Date: 2023-11-10 17:39:23
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -169,7 +169,6 @@ class BaseController {
|
|
169
169
|
/**
|
170
170
|
* init
|
171
171
|
*
|
172
|
-
* @protected
|
173
172
|
* @memberof BaseController
|
174
173
|
*/
|
175
174
|
init(...arg) {
|
@@ -185,7 +184,7 @@ class BaseController {
|
|
185
184
|
*/
|
186
185
|
ok(msg, data, code = 0) {
|
187
186
|
const obj = formatApiData(msg, data, code);
|
188
|
-
return
|
187
|
+
return obj;
|
189
188
|
}
|
190
189
|
/**
|
191
190
|
* Response to normalize json format content for fail
|
@@ -633,7 +632,7 @@ class Loader {
|
|
633
632
|
}
|
634
633
|
}
|
635
634
|
|
636
|
-
var version = "3.10.
|
635
|
+
var version = "3.10.2-0";
|
637
636
|
var engines = {
|
638
637
|
node: ">12.0.0"
|
639
638
|
};
|
@@ -971,7 +970,7 @@ function Plugin(identifier) {
|
|
971
970
|
}
|
972
971
|
|
973
972
|
/**
|
974
|
-
* Base
|
973
|
+
* Base service
|
975
974
|
*
|
976
975
|
* @export
|
977
976
|
* @class Base
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.10.
|
3
|
+
"version": "3.10.2-0",
|
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",
|
@@ -80,7 +80,7 @@
|
|
80
80
|
"dependencies": {
|
81
81
|
"koa": "^2.14.2",
|
82
82
|
"koatty_config": "^1.1.6",
|
83
|
-
"koatty_container": "^1.8.
|
83
|
+
"koatty_container": "^1.8.3",
|
84
84
|
"koatty_core": "^1.8.2",
|
85
85
|
"koatty_exception": "^1.2.8",
|
86
86
|
"koatty_lib": "^1.3.4",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.10.
|
3
|
+
"version": "3.10.2-0",
|
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",
|
@@ -80,7 +80,7 @@
|
|
80
80
|
"dependencies": {
|
81
81
|
"koa": "^2.14.2",
|
82
82
|
"koatty_config": "^1.1.6",
|
83
|
-
"koatty_container": "^1.8.
|
83
|
+
"koatty_container": "^1.8.3",
|
84
84
|
"koatty_core": "^1.8.2",
|
85
85
|
"koatty_exception": "^1.2.8",
|
86
86
|
"koatty_lib": "^1.3.4",
|