koatty_router 1.13.1 → 1.13.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 +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
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
|
+
### [1.13.2](https://github.com/koatty/koatty_router/compare/v1.13.1...v1.13.2) (2025-03-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修正 Handler 函数中缺少返回值的问题 ([3f37db5](https://github.com/koatty/koatty_router/commit/3f37db54018b4ce8022575977a5ff782794a4df2))
|
|
11
|
+
|
|
5
12
|
### [1.13.1](https://github.com/koatty/koatty_router/compare/v1.13.0...v1.13.1) (2025-03-15)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @Author: richen
|
|
3
|
-
* @Date: 2025-03-15 16:
|
|
3
|
+
* @Date: 2025-03-15 16:45:42
|
|
4
4
|
* @License: BSD (3-Clause)
|
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
|
6
6
|
* @HomePage: https://koatty.org/
|
|
@@ -395,7 +395,7 @@ const HeadMapping = (path = "/", routerOptions) => {
|
|
|
395
395
|
* @Usage:
|
|
396
396
|
* @Author: richen
|
|
397
397
|
* @Date: 2023-12-09 12:02:29
|
|
398
|
-
* @LastEditTime: 2025-03-
|
|
398
|
+
* @LastEditTime: 2025-03-15 16:41:41
|
|
399
399
|
* @License: BSD (3-Clause)
|
|
400
400
|
* @Copyright (c): <richenlin(at)gmail.com>
|
|
401
401
|
*/
|
|
@@ -424,6 +424,7 @@ async function Handler(app, ctx, ctl, method, ctlParams, ctlParamsValue) {
|
|
|
424
424
|
throw res;
|
|
425
425
|
}
|
|
426
426
|
ctx.body = ctx.body || res;
|
|
427
|
+
return ctx.body;
|
|
427
428
|
}
|
|
428
429
|
/**
|
|
429
430
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @Author: richen
|
|
3
|
-
* @Date: 2025-03-15 16:
|
|
3
|
+
* @Date: 2025-03-15 16:45:42
|
|
4
4
|
* @License: BSD (3-Clause)
|
|
5
5
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
|
6
6
|
* @HomePage: https://koatty.org/
|
|
@@ -375,7 +375,7 @@ const HeadMapping = (path = "/", routerOptions) => {
|
|
|
375
375
|
* @Usage:
|
|
376
376
|
* @Author: richen
|
|
377
377
|
* @Date: 2023-12-09 12:02:29
|
|
378
|
-
* @LastEditTime: 2025-03-
|
|
378
|
+
* @LastEditTime: 2025-03-15 16:41:41
|
|
379
379
|
* @License: BSD (3-Clause)
|
|
380
380
|
* @Copyright (c): <richenlin(at)gmail.com>
|
|
381
381
|
*/
|
|
@@ -404,6 +404,7 @@ async function Handler(app, ctx, ctl, method, ctlParams, ctlParamsValue) {
|
|
|
404
404
|
throw res;
|
|
405
405
|
}
|
|
406
406
|
ctx.body = ctx.body || res;
|
|
407
|
+
return ctx.body;
|
|
407
408
|
}
|
|
408
409
|
/**
|
|
409
410
|
*
|
package/dist/package.json
CHANGED
package/package.json
CHANGED