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.8 to 1.6.9

8

CHANGELOG.md

@@ -5,2 +5,10 @@ # Changelog

### [1.6.9](https://github.com/koatty/koatty_trace/compare/v1.6.8...v1.6.9) (2022-08-19)
### Bug Fixes
* 处理特殊字符 ([2e398b9](https://github.com/koatty/koatty_trace/commit/2e398b9b749943586b1de9d3b1284403cd7c00f9))
* 错误的赋值 ([22a0386](https://github.com/koatty/koatty_trace/commit/22a038612bfbd119e7fe7c65c9a0012685a96a1f))
### [1.6.8](https://github.com/koatty/koatty_trace/compare/v1.6.7...v1.6.8) (2022-08-19)

@@ -7,0 +15,0 @@

2

dist/index.d.ts
/*!
* @Author: richen
* @Date: 2022-08-19 12:04:02
* @Date: 2022-08-19 12:14:28
* @License: BSD (3-Clause)

@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com>

/*!
* @Author: richen
* @Date: 2022-08-19 12:03:48
* @Date: 2022-08-19 12:14:08
* @License: BSD (3-Clause)

@@ -116,3 +116,3 @@ * @Copyright (c) - <richenlin(at)gmail.com>

* @Date: 2022-02-21 11:32:03
* @LastEditTime: 2022-08-19 11:59:56
* @LastEditTime: 2022-08-19 12:09:14
*/

@@ -127,3 +127,2 @@ /**

function catcher(ctx, err) {
var _a, _b, _c, _d;
// LOG

@@ -137,8 +136,8 @@ koatty_logger.DefaultLogger.Error(err.stack);

const globalErrorHandler = koatty_container.IOCContainer.getClass("ExceptionHandler", "COMPONENT");
const message = (err.message).includes('"') ? ("err.message").replace('"', '\"') : err.message;
const message = (err.message).includes('"') ? (err.message).replaceAll('"', '\\"') : err.message;
if (globalErrorHandler) {
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 globalErrorHandler(message, err.code ?? 1, err.status ?? 500).handler(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);
return new koatty_exception.Exception(message, err.code ?? 1, err.status ?? 500).default(ctx);
}

@@ -223,3 +222,2 @@

async function grpcHandler(ctx, next, ext) {
var _a;
const timeout = ext.timeout || 10000;

@@ -267,3 +265,3 @@ // set ctx start time

if (koatty_exception.isPrevent(err)) {
ctx.rpc.callback(null, (_a = ctx.body) !== null && _a !== void 0 ? _a : "");
ctx.rpc.callback(null, ctx.body ?? "");
return null;

@@ -270,0 +268,0 @@ }

{
"name": "koatty_trace",
"version": "1.6.8",
"version": "1.6.9",
"description": "Full link tracking and error interception for koatty.",

@@ -5,0 +5,0 @@ "scripts": {

{
"name": "koatty_trace",
"version": "1.6.8",
"version": "1.6.9",
"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