koatty 3.7.2 → 3.7.4
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 +17 -0
- package/README.md +2 -1
- package/dist/README.md +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -10
- package/dist/index.mjs +9 -10
- package/dist/package.json +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,23 @@
|
|
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.7.4](https://github.com/thinkkoa/koatty/compare/v3.7.3...v3.7.4) (2022-11-18)
|
6
|
+
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* prod模式log打印不全 ([bf3c81b](https://github.com/thinkkoa/koatty/commit/bf3c81b1851630eacc36558a7fc7cf444dce9c91))
|
11
|
+
* wrong words ([024a1fa](https://github.com/thinkkoa/koatty/commit/024a1fa0ff7e8a327ecb6e482b36e450e63dcc4b))
|
12
|
+
* 更新logo ([4e5554e](https://github.com/thinkkoa/koatty/commit/4e5554e13404cba81c3585bcac3dd017abbf8267))
|
13
|
+
|
14
|
+
### [3.7.3](https://github.com/thinkkoa/koatty/compare/v3.7.2...v3.7.3) (2022-11-16)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* readme ([721ce49](https://github.com/thinkkoa/koatty/commit/721ce4962c3695bc5bc79c1b9de868e561e305ba))
|
20
|
+
* upgrade ([76df70b](https://github.com/thinkkoa/koatty/commit/76df70b5b106fd7c70e94be63d22b1191bd5ecd0))
|
21
|
+
|
5
22
|
### [3.7.2](https://github.com/thinkkoa/koatty/compare/v3.7.1...v3.7.2) (2022-11-16)
|
6
23
|
|
7
24
|
|
package/README.md
CHANGED
@@ -9,8 +9,9 @@ Use Typescript's decorator implement IOC and AOP.
|
|
9
9
|
## New features
|
10
10
|
|
11
11
|
* HTTP、HTTPS、HTTP2、gRPC、WebSocket server.
|
12
|
-
* Support loading environment configuration, parsing command line parameters (process.
|
12
|
+
* Support loading environment configuration, parsing command line parameters (process.argv) and environment variables (process.env)
|
13
13
|
* `@ExceptionHandler()` Register global exception handling
|
14
|
+
* graceful shutdown and pre-exit event
|
14
15
|
|
15
16
|
|
16
17
|
## Documentation
|
package/dist/README.md
CHANGED
@@ -9,8 +9,9 @@ Use Typescript's decorator implement IOC and AOP.
|
|
9
9
|
## New features
|
10
10
|
|
11
11
|
* HTTP、HTTPS、HTTP2、gRPC、WebSocket server.
|
12
|
-
* Support loading environment configuration, parsing command line parameters (process.
|
12
|
+
* Support loading environment configuration, parsing command line parameters (process.argv) and environment variables (process.env)
|
13
13
|
* `@ExceptionHandler()` Register global exception handling
|
14
|
+
* graceful shutdown and pre-exit event
|
14
15
|
|
15
16
|
|
16
17
|
## Documentation
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2022-11-
|
3
|
+
* @Date: 2022-11-18 17:54:51
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -181,7 +181,7 @@ export { Helper }
|
|
181
181
|
export declare interface IController {
|
182
182
|
readonly app: Koatty;
|
183
183
|
readonly ctx: KoattyContext;
|
184
|
-
|
184
|
+
__before?: () => Promise<any>;
|
185
185
|
__after?: () => Promise<any>;
|
186
186
|
}
|
187
187
|
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2022-11-
|
3
|
+
* @Date: 2022-11-18 17:54:35
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -168,12 +168,11 @@ const APP_READY_HOOK = "APP_READY_HOOK";
|
|
168
168
|
// tslint:disable: no-irregular-whitespace
|
169
169
|
const LOGO = `
|
170
170
|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
https://github.com/koatty
|
171
|
+
┬┌─┌─┐┌─┐┌┬┐┌┬┐┬ ┬
|
172
|
+
├┴┐│ │├─┤ │ │ └┬┘
|
173
|
+
┴ ┴└─┘┴ ┴ ┴ ┴ ┴
|
174
|
+
-------------------------------------------
|
175
|
+
https://github.com/koatty
|
177
176
|
`;
|
178
177
|
|
179
178
|
/**
|
@@ -629,7 +628,7 @@ class Loader {
|
|
629
628
|
}
|
630
629
|
}
|
631
630
|
|
632
|
-
var version = "3.7.
|
631
|
+
var version = "3.7.4";
|
633
632
|
var engines = {
|
634
633
|
node: ">12.0.0"
|
635
634
|
};
|
@@ -732,8 +731,6 @@ const executeBootstrap = async function (target, bootFunc, isInitiative = false)
|
|
732
731
|
// Load Plugin
|
733
732
|
Logger.Log('think', '', 'Load Plugins ...');
|
734
733
|
await Loader.LoadPlugins(app);
|
735
|
-
// Set Logger
|
736
|
-
Loader.SetLogger(app);
|
737
734
|
// app.emit("appBoot");
|
738
735
|
await asyncEvent(app, 'appBoot');
|
739
736
|
// Load App ready hooks
|
@@ -805,6 +802,8 @@ const listenCallback = (app) => {
|
|
805
802
|
// binding event "appStop"
|
806
803
|
Logger.Log('think', '', 'Bind App Stop event ...');
|
807
804
|
koatty_serve.BindProcessEvent(app, 'appStop');
|
805
|
+
// Set Logger
|
806
|
+
Loader.SetLogger(app);
|
808
807
|
// tslint:disable-next-line: no-unused-expression
|
809
808
|
app.appDebug && Logger.Warn(`Running in debug mode.`);
|
810
809
|
};
|
package/dist/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @Author: richen
|
3
|
-
* @Date: 2022-11-
|
3
|
+
* @Date: 2022-11-18 17:54:35
|
4
4
|
* @License: BSD (3-Clause)
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
6
6
|
* @HomePage: https://koatty.org/
|
@@ -148,12 +148,11 @@ const APP_READY_HOOK = "APP_READY_HOOK";
|
|
148
148
|
// tslint:disable: no-irregular-whitespace
|
149
149
|
const LOGO = `
|
150
150
|
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
https://github.com/koatty
|
151
|
+
┬┌─┌─┐┌─┐┌┬┐┌┬┐┬ ┬
|
152
|
+
├┴┐│ │├─┤ │ │ └┬┘
|
153
|
+
┴ ┴└─┘┴ ┴ ┴ ┴ ┴
|
154
|
+
-------------------------------------------
|
155
|
+
https://github.com/koatty
|
157
156
|
`;
|
158
157
|
|
159
158
|
/**
|
@@ -609,7 +608,7 @@ class Loader {
|
|
609
608
|
}
|
610
609
|
}
|
611
610
|
|
612
|
-
var version = "3.7.
|
611
|
+
var version = "3.7.4";
|
613
612
|
var engines = {
|
614
613
|
node: ">12.0.0"
|
615
614
|
};
|
@@ -712,8 +711,6 @@ const executeBootstrap = async function (target, bootFunc, isInitiative = false)
|
|
712
711
|
// Load Plugin
|
713
712
|
Logger.Log('think', '', 'Load Plugins ...');
|
714
713
|
await Loader.LoadPlugins(app);
|
715
|
-
// Set Logger
|
716
|
-
Loader.SetLogger(app);
|
717
714
|
// app.emit("appBoot");
|
718
715
|
await asyncEvent(app, 'appBoot');
|
719
716
|
// Load App ready hooks
|
@@ -785,6 +782,8 @@ const listenCallback = (app) => {
|
|
785
782
|
// binding event "appStop"
|
786
783
|
Logger.Log('think', '', 'Bind App Stop event ...');
|
787
784
|
BindProcessEvent(app, 'appStop');
|
785
|
+
// Set Logger
|
786
|
+
Loader.SetLogger(app);
|
788
787
|
// tslint:disable-next-line: no-unused-expression
|
789
788
|
app.appDebug && Logger.Warn(`Running in debug mode.`);
|
790
789
|
};
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.7.
|
3
|
+
"version": "3.7.4",
|
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",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"eslint": "eslint --ext .ts,.js ./",
|
12
12
|
"prepublishOnly": "npm test && npm run build",
|
13
13
|
"prerelease": "npm test && npm run build",
|
14
|
-
"
|
14
|
+
"push": "git push --follow-tags origin && npm publish",
|
15
15
|
"release": "standard-version",
|
16
16
|
"release:pre": "npm run release -- --prerelease",
|
17
17
|
"release:major": "npm run release -- --release-as major",
|
@@ -91,7 +91,7 @@
|
|
91
91
|
"koatty_payload": "1.3.18",
|
92
92
|
"koatty_proto": "^1.1.9",
|
93
93
|
"koatty_router": "1.8.0",
|
94
|
-
"koatty_serve": "1.5.
|
94
|
+
"koatty_serve": "1.5.1",
|
95
95
|
"koatty_trace": "1.7.0",
|
96
96
|
"koatty_validation": "1.2.5",
|
97
97
|
"reflect-metadata": "0.1.13",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "koatty",
|
3
|
-
"version": "3.7.
|
3
|
+
"version": "3.7.4",
|
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",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"eslint": "eslint --ext .ts,.js ./",
|
12
12
|
"prepublishOnly": "npm test && npm run build",
|
13
13
|
"prerelease": "npm test && npm run build",
|
14
|
-
"
|
14
|
+
"push": "git push --follow-tags origin && npm publish",
|
15
15
|
"release": "standard-version",
|
16
16
|
"release:pre": "npm run release -- --prerelease",
|
17
17
|
"release:major": "npm run release -- --release-as major",
|
@@ -91,7 +91,7 @@
|
|
91
91
|
"koatty_payload": "1.3.18",
|
92
92
|
"koatty_proto": "^1.1.9",
|
93
93
|
"koatty_router": "1.8.0",
|
94
|
-
"koatty_serve": "1.5.
|
94
|
+
"koatty_serve": "1.5.1",
|
95
95
|
"koatty_trace": "1.7.0",
|
96
96
|
"koatty_validation": "1.2.5",
|
97
97
|
"reflect-metadata": "0.1.13",
|