Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koatty_trace

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koatty_trace - npm Package Compare versions

Comparing version 1.6.7 to 1.6.8

7

CHANGELOG.md

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

2

dist/index.d.ts
/*!
* @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

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