koatty_trace
Advanced tools
Comparing version 1.6.7 to 1.6.8
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.6.8](https://github.com/koatty/koatty_trace/compare/v1.6.7...v1.6.8) (2022-08-19) | ||
### Bug Fixes | ||
* 错误信息包含 " 导致json格式错误 ([47c39fd](https://github.com/koatty/koatty_trace/commit/47c39fd16e65980c8bcfd3b8a7b0b0ae2fdc1849)) | ||
### [1.6.7](https://github.com/koatty/koatty_trace/compare/v1.6.6...v1.6.7) (2022-05-27) | ||
@@ -7,0 +14,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2022-05-27 10:41:51 | ||
* @Date: 2022-08-19 12:04:02 | ||
* @License: BSD (3-Clause) | ||
@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
/*! | ||
* @Author: richen | ||
* @Date: 2022-05-27 10:41:34 | ||
* @Date: 2022-08-19 12:03:48 | ||
* @License: BSD (3-Clause) | ||
@@ -116,3 +116,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
* @Date: 2022-02-21 11:32:03 | ||
* @LastEditTime: 2022-03-01 19:05:25 | ||
* @LastEditTime: 2022-08-19 11:59:56 | ||
*/ | ||
@@ -136,7 +136,8 @@ /** | ||
const globalErrorHandler = koatty_container.IOCContainer.getClass("ExceptionHandler", "COMPONENT"); | ||
const message = (err.message).includes('"') ? ("err.message").replace('"', '\"') : err.message; | ||
if (globalErrorHandler) { | ||
return new globalErrorHandler(err.message, (_a = err.code) !== null && _a !== void 0 ? _a : 1, (_b = err.status) !== null && _b !== void 0 ? _b : 500).handler(ctx); | ||
return new globalErrorHandler(message, (_a = err.code) !== null && _a !== void 0 ? _a : 1, (_b = err.status) !== null && _b !== void 0 ? _b : 500).handler(ctx); | ||
} | ||
// 使用默认错误处理 | ||
return new koatty_exception.Exception(err.message, (_c = err.code) !== null && _c !== void 0 ? _c : 1, (_d = err.status) !== null && _d !== void 0 ? _d : 500).default(ctx); | ||
return new koatty_exception.Exception(message, (_c = err.code) !== null && _c !== void 0 ? _c : 1, (_d = err.status) !== null && _d !== void 0 ? _d : 500).default(ctx); | ||
} | ||
@@ -143,0 +144,0 @@ |
{ | ||
"name": "koatty_trace", | ||
"version": "1.6.7", | ||
"version": "1.6.8", | ||
"description": "Full link tracking and error interception for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "koatty_trace", | ||
"version": "1.6.7", | ||
"version": "1.6.8", | ||
"description": "Full link tracking and error interception for koatty.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
44648
1044
0