@aomex/web
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.4.0](https://github.com/aomex/aomex/compare/v1.3.0...v1.4.0) (2024-06-29) | ||
### Features | ||
* **web:** 开启debug时如实响应5xx错误信息 ([f6b0c82](https://github.com/aomex/aomex/commit/f6b0c82bf1123962e0848fc89c7179f0656c20fa)) | ||
# [1.3.0](https://github.com/aomex/aomex/compare/v1.2.0...v1.3.0) (2024-06-28) | ||
@@ -8,0 +19,0 @@ |
@@ -296,2 +296,4 @@ import { I18nMessage, Next, Middleware, MixinMiddleware, OpenAPI, Validator, TransformedValidator, magistrate, I18n, ValidatorToken } from '@aomex/core'; | ||
* 调试模式。默认值:`process.env.NODE_ENV !== 'production'` | ||
* | ||
* 如果开启,则`5xx`异常会响应真实的错误信息。 | ||
*/ | ||
@@ -298,0 +300,0 @@ debug?: boolean; |
@@ -325,3 +325,3 @@ // src/i18n/locales/zh-cn.ts | ||
} | ||
this.body = err.expose ? err.message : statuses.message[this.statusCode]; | ||
this.body = this.app.debug || err.expose ? err.message : statuses.message[this.statusCode]; | ||
this.app.emit("error", err, this.ctx); | ||
@@ -328,0 +328,0 @@ this.flush(); |
{ | ||
"name": "@aomex/web", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "aomex web层应用", | ||
@@ -56,3 +56,3 @@ "type": "module", | ||
"vary": "^1.1.2", | ||
"@aomex/internal-tools": "^1.3.0" | ||
"@aomex/internal-tools": "^1.4.0" | ||
}, | ||
@@ -67,5 +67,5 @@ "devDependencies": { | ||
"@types/vary": "^1.1.3", | ||
"@aomex/core": "^1.3.0" | ||
"@aomex/core": "^1.4.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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
99886
7
1251
1
4
Updated@aomex/internal-tools@^1.4.0