koatty 3.7.3 → 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 CHANGED
@@ -2,6 +2,15 @@
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
+
5
14
  ### [3.7.3](https://github.com/thinkkoa/koatty/compare/v3.7.2...v3.7.3) (2022-11-16)
6
15
 
7
16
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2022-11-16 17:45:16
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
- __befor?: () => Promise<any>;
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-16 17:44:54
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.3";
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-16 17:44:54
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.3";
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",
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
- "pub": "git push --follow-tags origin && npm publish",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.7.3",
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
- "pub": "git push --follow-tags origin && npm publish",
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",