koatty 3.10.1 → 3.10.2-1

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,20 @@
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-1](https://github.com/thinkkoa/koatty/compare/v3.10.2-0...v3.10.2-1) (2023-11-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * ctl.ok返回类型 ([5d76b80](https://github.com/thinkkoa/koatty/commit/5d76b800fa3a59c5685fba3bf5adca04ce27afe2))
11
+
12
+ ### [3.10.2-0](https://github.com/thinkkoa/koatty/compare/v3.10.1...v3.10.2-0) (2023-11-10)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * rename ([738185d](https://github.com/thinkkoa/koatty/commit/738185d3eb538770f8ee186dccd4c61ead8a3659))
18
+
5
19
  ### [3.10.1](https://github.com/thinkkoa/koatty/compare/v3.10.0...v3.10.1) (2023-11-09)
6
20
 
7
21
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2023-11-09 23:03:18
3
+ * @Date: 2023-11-10 17:54:48
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
  *
@@ -78,7 +78,7 @@ export declare class BaseController implements IController {
78
78
  }
79
79
 
80
80
  /**
81
- * Base class
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): Promise<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-09 23:03:05
3
+ * @Date: 2023-11-10 17:54:34
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) {
@@ -647,7 +646,7 @@ class Loader {
647
646
  }
648
647
  }
649
648
 
650
- var version = "3.10.1";
649
+ var version = "3.10.2-1";
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 class
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-09 23:03:05
3
+ * @Date: 2023-11-10 17:54:34
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) {
@@ -633,7 +632,7 @@ class Loader {
633
632
  }
634
633
  }
635
634
 
636
- var version = "3.10.1";
635
+ var version = "3.10.2-1";
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 class
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.1",
3
+ "version": "3.10.2-1",
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.2",
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.1",
3
+ "version": "3.10.2-1",
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.2",
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",