Socket
Socket
Sign inDemoInstall

@aomex/web

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomex/web - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

README.md

11

CHANGELOG.md

@@ -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 @@

2

dist/index.d.ts

@@ -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;

2

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc