koatty_router 1.8.4 → 1.8.6
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 +14 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
### [1.8.6](https://github.com/koatty/koatty_router/compare/v1.8.5...v1.8.6) (2023-02-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* convert param types ([46f5e80](https://github.com/koatty/koatty_router/commit/46f5e80a6bd35d6b77e20fa36fe46971f67be0b9))
|
|
11
|
+
|
|
12
|
+
### [1.8.5](https://github.com/koatty/koatty_router/compare/v1.8.4...v1.8.5) (2023-02-17)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* 修复dto参数类型转换 ([7fd8f64](https://github.com/koatty/koatty_router/commit/7fd8f642c8094e2f93ce1cd50bb91b56043e71d3))
|
|
18
|
+
|
|
5
19
|
### [1.8.4](https://github.com/koatty/koatty_router/compare/v1.8.3...v1.8.4) (2023-02-10)
|
|
6
20
|
|
|
7
21
|
### [1.8.3](https://github.com/koatty/koatty_router/compare/v1.8.2...v1.8.3) (2023-02-10)
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @Author: richen
|
|
3
|
-
* @Date: 2023-02-
|
|
3
|
+
* @Date: 2023-02-17 14:23:29
|
|
4
4
|
* @License: BSD (3-Clause)
|
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
|
6
6
|
* @HomePage: https://koatty.org/
|
|
@@ -40,7 +40,7 @@ var Helper__namespace = /*#__PURE__*/_interopNamespaceDefault(Helper);
|
|
|
40
40
|
* @Usage:
|
|
41
41
|
* @Author: richen
|
|
42
42
|
* @Date: 2021-11-24 23:21:26
|
|
43
|
-
* @LastEditTime: 2023-02-
|
|
43
|
+
* @LastEditTime: 2023-02-17 14:21:38
|
|
44
44
|
*/
|
|
45
45
|
/**
|
|
46
46
|
* Parameter binding assignment.
|
|
@@ -91,10 +91,10 @@ async function checkParams(app, value, opt) {
|
|
|
91
91
|
opt.clazz = koatty_container.IOCContainer.getClass(opt.type, "COMPONENT");
|
|
92
92
|
}
|
|
93
93
|
if (opt.dtoCheck) {
|
|
94
|
-
value = await koatty_validation.ClassValidator.valid(opt.clazz, value,
|
|
94
|
+
value = await koatty_validation.ClassValidator.valid(opt.clazz, value, true);
|
|
95
95
|
}
|
|
96
96
|
else {
|
|
97
|
-
value = koatty_validation.plainToClass(opt.clazz, value,
|
|
97
|
+
value = koatty_validation.plainToClass(opt.clazz, value, true);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
else {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @Author: richen
|
|
3
|
-
* @Date: 2023-02-
|
|
3
|
+
* @Date: 2023-02-17 14:23:29
|
|
4
4
|
* @License: BSD (3-Clause)
|
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
|
6
6
|
* @HomePage: https://koatty.org/
|
|
@@ -20,7 +20,7 @@ import KoaRouter from '@koa/router';
|
|
|
20
20
|
* @Usage:
|
|
21
21
|
* @Author: richen
|
|
22
22
|
* @Date: 2021-11-24 23:21:26
|
|
23
|
-
* @LastEditTime: 2023-02-
|
|
23
|
+
* @LastEditTime: 2023-02-17 14:21:38
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
26
|
* Parameter binding assignment.
|
|
@@ -71,10 +71,10 @@ async function checkParams(app, value, opt) {
|
|
|
71
71
|
opt.clazz = IOCContainer.getClass(opt.type, "COMPONENT");
|
|
72
72
|
}
|
|
73
73
|
if (opt.dtoCheck) {
|
|
74
|
-
value = await ClassValidator.valid(opt.clazz, value,
|
|
74
|
+
value = await ClassValidator.valid(opt.clazz, value, true);
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
77
|
-
value = plainToClass(opt.clazz, value,
|
|
77
|
+
value = plainToClass(opt.clazz, value, true);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
else {
|
package/dist/package.json
CHANGED
package/package.json
CHANGED