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

koatty_exception

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koatty_exception - npm Package Compare versions

Comparing version 1.3.0-2 to 1.3.0-3

7

CHANGELOG.md

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

## [1.3.0-3](https://github.com/koatty/koatty_exception/compare/v1.3.0-2...v1.3.0-3) (2024-01-21)
### Bug Fixes
* default value ([d7a620a](https://github.com/koatty/koatty_exception/commit/d7a620a65d3ff301c2097c1630a40877d30eaa5e))
## [1.3.0-2](https://github.com/koatty/koatty_exception/compare/v1.3.0-1...v1.3.0-2) (2024-01-21)

@@ -7,0 +14,0 @@

8

dist/index.d.ts
/*!
* @Author: richen
* @Date: 2024-01-21 12:20:52
* @Date: 2024-01-21 13:06:58
* @License: BSD (3-Clause)

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

* @param {string} message err message
* @param {*} code err code
* @param {*} status http status
* @param {number} code err code
* @param {number} status http status
* @param {string} stack err stack
* @param {Span} span opentracing span
* @return {*}
* @return {Exception}
*/

@@ -33,0 +33,0 @@ constructor(message: string, code?: number, status?: number, stack?: string, span?: Span);

/*!
* @Author: richen
* @Date: 2024-01-21 12:20:43
* @Date: 2024-01-21 13:06:49
* @License: BSD (3-Clause)

@@ -647,10 +647,12 @@ * @Copyright (c) - <richenlin(at)gmail.com>

* @param {string} message err message
* @param {*} code err code
* @param {*} status http status
* @param {number} code err code
* @param {number} status http status
* @param {string} stack err stack
* @param {Span} span opentracing span
* @return {*}
* @return {Exception}
*/
constructor(message, code = 1, status = 0, stack, span) {
constructor(message, code, status, stack, span) {
super(message);
this.status = 500;
this.code = 1;
this.type = "Exception";

@@ -657,0 +659,0 @@ this.status = status;

{
"name": "koatty_exception",
"version": "1.3.0-2",
"version": "1.3.0-3",
"description": "Exception handler for koatty.",

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

{
"name": "koatty_exception",
"version": "1.3.0-2",
"version": "1.3.0-3",
"description": "Exception handler 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