koatty 3.10.0 → 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 CHANGED
@@ -2,6 +2,21 @@
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
+
12
+ ### [3.10.1](https://github.com/thinkkoa/koatty/compare/v3.10.0...v3.10.1) (2023-11-09)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * jsdoc ([993970e](https://github.com/thinkkoa/koatty/commit/993970e77dab26af1b81e7d2abfeac93263648ae))
18
+ * readme ([73078be](https://github.com/thinkkoa/koatty/commit/73078be36cc7a89767ded165dc91a7b3f11fd228))
19
+
5
20
  ## [3.10.0](https://github.com/thinkkoa/koatty/compare/v3.9.5...v3.10.0) (2023-11-08)
6
21
 
7
22
 
package/README.md CHANGED
@@ -145,6 +145,7 @@ if you use vscode , edit the `.vscode/launch.json` , like this:
145
145
  "sourceMaps": true,
146
146
  "cwd": "${workspaceRoot}",
147
147
  "protocol": "inspector",
148
+ "outputCapture": "std",
148
149
  "internalConsoleOptions": "neverOpen"
149
150
  }
150
151
  ]
package/dist/README.md CHANGED
@@ -145,6 +145,7 @@ if you use vscode , edit the `.vscode/launch.json` , like this:
145
145
  "sourceMaps": true,
146
146
  "cwd": "${workspaceRoot}",
147
147
  "protocol": "inspector",
148
+ "outputCapture": "std",
148
149
  "internalConsoleOptions": "neverOpen"
149
150
  }
150
151
  ]
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2023-11-08 15:28: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): Promise<ApiOutput>;
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 class
81
+ * Base service
82
82
  *
83
83
  * @export
84
84
  * @class Base
@@ -97,13 +97,14 @@ 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
  /**
103
104
  * @description: bind App event hook func
104
105
  * example:
105
106
  * export function TestDecorator(): ClassDecorator {
106
- * return (target: any) => {
107
+ * return (target: Function) => {
107
108
  * BindEventHook(AppEvent.appBoot, (app: Koatty) => {
108
109
  * // todo
109
110
  * return Promise.resolve();
@@ -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-08 15:27:56
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 Promise.resolve(obj);
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.0";
649
+ var version = "3.10.2-0";
651
650
  var engines = {
652
651
  node: ">12.0.0"
653
652
  };
@@ -891,7 +890,7 @@ function ConfigurationScan(scanPath) {
891
890
  * @description: bind App event hook func
892
891
  * example:
893
892
  * export function TestDecorator(): ClassDecorator {
894
- * return (target: any) => {
893
+ * return (target: Function) => {
895
894
  * BindEventHook(AppEvent.appBoot, (app: Koatty) => {
896
895
  * // todo
897
896
  * return Promise.resolve();
@@ -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-08 15:27:56
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 Promise.resolve(obj);
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.0";
635
+ var version = "3.10.2-0";
637
636
  var engines = {
638
637
  node: ">12.0.0"
639
638
  };
@@ -877,7 +876,7 @@ function ConfigurationScan(scanPath) {
877
876
  * @description: bind App event hook func
878
877
  * example:
879
878
  * export function TestDecorator(): ClassDecorator {
880
- * return (target: any) => {
879
+ * return (target: Function) => {
881
880
  * BindEventHook(AppEvent.appBoot, (app: Koatty) => {
882
881
  * // todo
883
882
  * return Promise.resolve();
@@ -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.0",
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,8 +80,8 @@
80
80
  "dependencies": {
81
81
  "koa": "^2.14.2",
82
82
  "koatty_config": "^1.1.6",
83
- "koatty_container": "^1.8.1",
84
- "koatty_core": "^1.8.1",
83
+ "koatty_container": "^1.8.3",
84
+ "koatty_core": "^1.8.2",
85
85
  "koatty_exception": "^1.2.8",
86
86
  "koatty_lib": "^1.3.4",
87
87
  "koatty_loader": "^1.1.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.10.0",
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,8 +80,8 @@
80
80
  "dependencies": {
81
81
  "koa": "^2.14.2",
82
82
  "koatty_config": "^1.1.6",
83
- "koatty_container": "^1.8.1",
84
- "koatty_core": "^1.8.1",
83
+ "koatty_container": "^1.8.3",
84
+ "koatty_core": "^1.8.2",
85
85
  "koatty_exception": "^1.2.8",
86
86
  "koatty_lib": "^1.3.4",
87
87
  "koatty_loader": "^1.1.0",