koatty 3.7.6 → 3.7.7

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,13 @@
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.7](https://github.com/thinkkoa/koatty/compare/v3.7.6...v3.7.7) (2023-02-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * rebuild logger ([42cdb96](https://github.com/thinkkoa/koatty/commit/42cdb964c2e0a41a93b1a895084c92c016cbad24))
11
+
5
12
  ### [3.7.6](https://github.com/thinkkoa/koatty/compare/v3.7.4...v3.7.6) (2023-01-13)
6
13
 
7
14
  ### [3.7.4](https://github.com/thinkkoa/koatty/compare/v3.7.3...v3.7.4) (2022-11-18)
package/README.md CHANGED
@@ -19,7 +19,7 @@ Use Typescript's decorator implement IOC and AOP.
19
19
  [koatty_doc_CN](https://koatty.org/) (In progress💪)
20
20
 
21
21
 
22
- ## Installation
22
+ ## Installation CLI tools
23
23
 
24
24
  ```shell
25
25
  npm i -g koatty_cli
@@ -30,36 +30,31 @@ npm i -g koatty_cli
30
30
  ### 1.Create Project
31
31
 
32
32
  ```shell
33
- koatty new projectName
34
-
35
- cd ./projectName
36
-
37
- yarn install
33
+ kt new projectName
38
34
 
39
35
  npm start
40
36
  ```
41
37
 
42
- ### 2.Create a Controller
43
- ```shell
44
- koatty controller test
38
+ ### 2. Install deps
45
39
 
46
40
  ```
41
+ cd ./projectName
47
42
 
48
- ### 3.Create a Service
49
-
50
- ```shell
51
- koatty service test
52
-
43
+ npm i
53
44
  ```
54
45
 
55
- ### 4.Create a DTOClass (Optional)
46
+ ### 3. Start up
56
47
 
57
- ```shell
58
- koatty dto test
48
+ ```
49
+ npm run dev
59
50
 
51
+ // or
52
+ npm start
60
53
  ```
61
54
 
62
- ### 5.Define TestController
55
+ ## Code style
56
+
57
+ default Controller:
63
58
 
64
59
  ```javascript
65
60
  import { Controller, BaseController, Autowired, GetMapping, RequestBody, PathVariable,
package/dist/README.md CHANGED
@@ -19,7 +19,7 @@ Use Typescript's decorator implement IOC and AOP.
19
19
  [koatty_doc_CN](https://koatty.org/) (In progress💪)
20
20
 
21
21
 
22
- ## Installation
22
+ ## Installation CLI tools
23
23
 
24
24
  ```shell
25
25
  npm i -g koatty_cli
@@ -30,36 +30,31 @@ npm i -g koatty_cli
30
30
  ### 1.Create Project
31
31
 
32
32
  ```shell
33
- koatty new projectName
34
-
35
- cd ./projectName
36
-
37
- yarn install
33
+ kt new projectName
38
34
 
39
35
  npm start
40
36
  ```
41
37
 
42
- ### 2.Create a Controller
43
- ```shell
44
- koatty controller test
38
+ ### 2. Install deps
45
39
 
46
40
  ```
41
+ cd ./projectName
47
42
 
48
- ### 3.Create a Service
49
-
50
- ```shell
51
- koatty service test
52
-
43
+ npm i
53
44
  ```
54
45
 
55
- ### 4.Create a DTOClass (Optional)
46
+ ### 3. Start up
56
47
 
57
- ```shell
58
- koatty dto test
48
+ ```
49
+ npm run dev
59
50
 
51
+ // or
52
+ npm start
60
53
  ```
61
54
 
62
- ### 5.Define TestController
55
+ ## Code style
56
+
57
+ default Controller:
63
58
 
64
59
  ```javascript
65
60
  import { Controller, BaseController, Autowired, GetMapping, RequestBody, PathVariable,
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2023-01-13 16:41:31
3
+ * @Date: 2023-02-15 18:28:27
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: 2023-01-13 16:41:15
3
+ * @Date: 2023-02-15 18:28:04
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -607,7 +607,7 @@ class Loader {
607
607
  }
608
608
  }
609
609
 
610
- var version = "3.7.6";
610
+ var version = "3.7.7";
611
611
  var engines = {
612
612
  node: ">12.0.0"
613
613
  };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2023-01-13 16:41:15
3
+ * @Date: 2023-02-15 18:28:04
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
@@ -593,7 +593,7 @@ class Loader {
593
593
  }
594
594
  }
595
595
 
596
- var version = "3.7.6";
596
+ var version = "3.7.7";
597
597
  var engines = {
598
598
  node: ">12.0.0"
599
599
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.7.6",
3
+ "version": "3.7.7",
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",
@@ -79,8 +79,7 @@
79
79
  "typescript": "^4.x.x"
80
80
  },
81
81
  "dependencies": {
82
- "@koa/router": "^12.0.0",
83
- "koa": "^2.13.4",
82
+ "koa": "^2.14.1",
84
83
  "koatty_config": "^1.1.6",
85
84
  "koatty_container": "^1.7.14",
86
85
  "koatty_core": "^1.6.12",
@@ -90,8 +89,8 @@
90
89
  "koatty_logger": "^2.0.4",
91
90
  "koatty_payload": "^1.4.0",
92
91
  "koatty_proto": "^1.1.10",
93
- "koatty_router": "^1.8.2",
94
- "koatty_serve": "^1.5.4",
92
+ "koatty_router": "^1.8.4",
93
+ "koatty_serve": "^1.5.5",
95
94
  "koatty_trace": "^1.7.2",
96
95
  "koatty_validation": "^1.2.6",
97
96
  "reflect-metadata": "^0.1.13",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty",
3
- "version": "3.7.6",
3
+ "version": "3.7.7",
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",
@@ -79,8 +79,7 @@
79
79
  "typescript": "^4.x.x"
80
80
  },
81
81
  "dependencies": {
82
- "@koa/router": "^12.0.0",
83
- "koa": "^2.13.4",
82
+ "koa": "^2.14.1",
84
83
  "koatty_config": "^1.1.6",
85
84
  "koatty_container": "^1.7.14",
86
85
  "koatty_core": "^1.6.12",
@@ -90,8 +89,8 @@
90
89
  "koatty_logger": "^2.0.4",
91
90
  "koatty_payload": "^1.4.0",
92
91
  "koatty_proto": "^1.1.10",
93
- "koatty_router": "^1.8.2",
94
- "koatty_serve": "^1.5.4",
92
+ "koatty_router": "^1.8.4",
93
+ "koatty_serve": "^1.5.5",
95
94
  "koatty_trace": "^1.7.2",
96
95
  "koatty_validation": "^1.2.6",
97
96
  "reflect-metadata": "^0.1.13",
@@ -1,70 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var json = require('@rollup/plugin-json');
6
- var typescript = require('rollup-plugin-typescript2');
7
-
8
- /*
9
- * @Description:
10
- * @Usage:
11
- * @Author: richen
12
- * @Date: 2021-12-17 10:20:44
13
- * @LastEditTime: 2022-05-27 11:50:23
14
- */
15
- // import babel from '@rollup/plugin-babel';
16
-
17
- var _rollup_config = [
18
- {
19
- input: './src/index.ts',
20
- output: [{
21
- format: 'cjs',
22
- file: './dist/index.js',
23
- banner: require('./scripts/copyright')
24
- }],
25
- plugins: [
26
- // babel({
27
- // babelHelpers: "runtime",
28
- // configFile: './babel.config.js',
29
- // exclude: 'node_modules/**',
30
- // }),
31
- json(),
32
- typescript({
33
- tsconfigOverride: {
34
- compilerOptions: {
35
- declaration: false,
36
- declarationMap: false,
37
- module: "ESNext"
38
- }
39
- }
40
- })
41
- ]
42
- },
43
- {
44
- input: './src/index.ts',
45
- output: [{
46
- format: 'es',
47
- file: './dist/index.mjs',
48
- banner: require('./scripts/copyright')
49
- }],
50
- plugins: [
51
- // babel({
52
- // babelHelpers: "runtime",
53
- // configFile: './babel.config.js',
54
- // exclude: 'node_modules/**',
55
- // }),
56
- json(),
57
- typescript({
58
- tsconfigOverride: {
59
- compilerOptions: {
60
- declaration: false,
61
- declarationMap: false,
62
- module: "ESNext"
63
- }
64
- }
65
- })
66
- ]
67
- }
68
- ];
69
-
70
- exports.default = _rollup_config;