koatty 3.11.2-8 → 3.11.2

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,14 @@
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.11.2](https://github.com/thinkkoa/koatty/compare/v3.11.2-8...v3.11.2) (2024-02-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 增加router配置 ([974a181](https://github.com/thinkkoa/koatty/commit/974a1812e3a65721623957ee2c3a907dcc203193))
11
+ * 自定义exception适配新版 ([b5822e2](https://github.com/thinkkoa/koatty/commit/b5822e2959f4ba70945e640a9c0c03f38660aca9))
12
+
5
13
  ### [3.11.2-8](https://github.com/thinkkoa/koatty/compare/v3.11.2-7...v3.11.2-8) (2024-01-16)
6
14
 
7
15
  ### [3.11.2-7](https://github.com/thinkkoa/koatty/compare/v3.11.2-6...v3.11.2-7) (2024-01-15)
package/README.md CHANGED
@@ -66,6 +66,7 @@ import { App } from "../App";
66
66
  @Controller()
67
67
  export class IndexController {
68
68
  app: App;
69
+ ctx: KoattyContext;
69
70
 
70
71
  @Autowired()
71
72
  private testService: TestService;
@@ -161,7 +162,7 @@ Select `TS Program` to debug run. Try to call `http://localhost:3000/` .
161
162
 
162
163
  Check out the [quick start example][quick-example].
163
164
 
164
- [quick-example]: https://github.com/thinkkoa/koatty_demo/
165
+ [quick-example]: https://github.com/Koatty/koatty_template
165
166
 
166
167
 
167
168
 
package/dist/README.md CHANGED
@@ -66,6 +66,7 @@ import { App } from "../App";
66
66
  @Controller()
67
67
  export class IndexController {
68
68
  app: App;
69
+ ctx: KoattyContext;
69
70
 
70
71
  @Autowired()
71
72
  private testService: TestService;
@@ -161,7 +162,7 @@ Select `TS Program` to debug run. Try to call `http://localhost:3000/` .
161
162
 
162
163
  Check out the [quick start example][quick-example].
163
164
 
164
- [quick-example]: https://github.com/thinkkoa/koatty_demo/
165
+ [quick-example]: https://github.com/Koatty/koatty_template
165
166
 
166
167
 
167
168
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2024-01-16 08:38:27
3
+ * @Date: 2024-02-02 15:35:00
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2024-01-16 08:38:15
3
+ * @Date: 2024-02-02 15:34:49
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -142,7 +142,7 @@ function SetLogger(app, config) {
142
142
  * @Usage:
143
143
  * @Author: richen
144
144
  * @Date: 2023-12-09 21:56:32
145
- * @LastEditTime: 2024-01-16 01:17:46
145
+ * @LastEditTime: 2024-01-19 08:36:27
146
146
  * @License: BSD (3-Clause)
147
147
  * @Copyright (c): <richenlin(at)gmail.com>
148
148
  */
@@ -284,7 +284,7 @@ https://github.com/koatty
284
284
  * @Usage:
285
285
  * @Author: richen
286
286
  * @Date: 2023-12-09 22:55:49
287
- * @LastEditTime: 2024-01-04 05:52:31
287
+ * @LastEditTime: 2024-01-24 11:54:29
288
288
  * @License: BSD (3-Clause)
289
289
  * @Copyright (c): <richenlin(at)gmail.com>
290
290
  */
@@ -614,24 +614,6 @@ class Loader {
614
614
  }
615
615
  });
616
616
  }
617
- /**
618
- * Load components
619
- *
620
- * @static
621
- * @param {*} app
622
- * @memberof Loader
623
- */
624
- // public static LoadComponents(app: Koatty) {
625
- // const componentList = IOCContainer.listClass("COMPONENT");
626
- // componentList.forEach((item: ComponentItem) => {
627
- // item.id = (item.id ?? "").replace("COMPONENT:", "");
628
- // if (item.id && !(item.id).endsWith("Plugin") && Helper.isClass(item.target)) {
629
- // Logger.Debug(`Load component: ${item.id}`);
630
- // // registering to IOC
631
- // IOCContainer.reg(item.id, item.target, { scope: "Singleton", type: "COMPONENT", args: [] });
632
- // }
633
- // });
634
- // }
635
617
  /**
636
618
  * Load components
637
619
  *
@@ -687,7 +669,7 @@ class Loader {
687
669
  }
688
670
  }
689
671
 
690
- var version = "3.11.2-8";
672
+ var version = "3.11.2";
691
673
  var engines = {
692
674
  node: ">12.0.0"
693
675
  };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2024-01-16 08:38:15
3
+ * @Date: 2024-02-02 15:34:49
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -128,7 +128,7 @@ function SetLogger(app, config) {
128
128
  * @Usage:
129
129
  * @Author: richen
130
130
  * @Date: 2023-12-09 21:56:32
131
- * @LastEditTime: 2024-01-16 01:17:46
131
+ * @LastEditTime: 2024-01-19 08:36:27
132
132
  * @License: BSD (3-Clause)
133
133
  * @Copyright (c): <richenlin(at)gmail.com>
134
134
  */
@@ -270,7 +270,7 @@ https://github.com/koatty
270
270
  * @Usage:
271
271
  * @Author: richen
272
272
  * @Date: 2023-12-09 22:55:49
273
- * @LastEditTime: 2024-01-04 05:52:31
273
+ * @LastEditTime: 2024-01-24 11:54:29
274
274
  * @License: BSD (3-Clause)
275
275
  * @Copyright (c): <richenlin(at)gmail.com>
276
276
  */
@@ -600,24 +600,6 @@ class Loader {
600
600
  }
601
601
  });
602
602
  }
603
- /**
604
- * Load components
605
- *
606
- * @static
607
- * @param {*} app
608
- * @memberof Loader
609
- */
610
- // public static LoadComponents(app: Koatty) {
611
- // const componentList = IOCContainer.listClass("COMPONENT");
612
- // componentList.forEach((item: ComponentItem) => {
613
- // item.id = (item.id ?? "").replace("COMPONENT:", "");
614
- // if (item.id && !(item.id).endsWith("Plugin") && Helper.isClass(item.target)) {
615
- // Logger.Debug(`Load component: ${item.id}`);
616
- // // registering to IOC
617
- // IOCContainer.reg(item.id, item.target, { scope: "Singleton", type: "COMPONENT", args: [] });
618
- // }
619
- // });
620
- // }
621
603
  /**
622
604
  * Load components
623
605
  *
@@ -673,7 +655,7 @@ class Loader {
673
655
  }
674
656
  }
675
657
 
676
- var version = "3.11.2-8";
658
+ var version = "3.11.2";
677
659
  var engines = {
678
660
  node: ">12.0.0"
679
661
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.11.2-8",
3
+ "version": "3.11.2",
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",
@@ -86,14 +86,14 @@
86
86
  "koatty_config": "~1.1.6",
87
87
  "koatty_container": "~1.8.10",
88
88
  "koatty_core": "~1.9.0",
89
- "koatty_exception": "~1.2.8",
89
+ "koatty_exception": "~1.3.2",
90
90
  "koatty_lib": "~1.3.4",
91
91
  "koatty_loader": "~1.1.0",
92
92
  "koatty_logger": "~2.1.4",
93
93
  "koatty_proto": "~1.1.12",
94
94
  "koatty_router": "~1.9.0",
95
95
  "koatty_serve": "~2.1.2",
96
- "koatty_trace": "~1.11.2",
96
+ "koatty_trace": "~1.12.2",
97
97
  "koatty_validation": "~1.3.2"
98
98
  }
99
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.11.2-8",
3
+ "version": "3.11.2",
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",
@@ -86,14 +86,14 @@
86
86
  "koatty_config": "~1.1.6",
87
87
  "koatty_container": "~1.8.10",
88
88
  "koatty_core": "~1.9.0",
89
- "koatty_exception": "~1.2.8",
89
+ "koatty_exception": "~1.3.2",
90
90
  "koatty_lib": "~1.3.4",
91
91
  "koatty_loader": "~1.1.0",
92
92
  "koatty_logger": "~2.1.4",
93
93
  "koatty_proto": "~1.1.12",
94
94
  "koatty_router": "~1.9.0",
95
95
  "koatty_serve": "~2.1.2",
96
- "koatty_trace": "~1.11.2",
96
+ "koatty_trace": "~1.12.2",
97
97
  "koatty_validation": "~1.3.2"
98
98
  }
99
99
  }