New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

punch-error

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punch-error - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

17

index.js

@@ -18,3 +18,3 @@ 'use strict';

this.message = message;
this.status = config.status;
this.status = config.status || 500;
if (typeof Error.captureStackTrace === 'function') {

@@ -64,4 +64,7 @@ Error.captureStackTrace(this, this.constructor);

newError.history = (newError.history && newError.history.slice()) || [];
if (err) newError.history.push(err);
if (err) {
newError.history = (err.history && err.history.slice())
newError.history.push(err);
}
else newError.history = [];

@@ -76,4 +79,8 @@ return newError;

const newError = new this(override);
newError.history = (newError.history && newError.history.slice()) || [];
if (err) newError.history.push(err);
if (err) {
newError.history = (err.history && err.history.slice())
newError.history.push(err);
}
else newError.history = [];

@@ -80,0 +87,0 @@ return newError;

{
"name": "punch-error",
"version": "1.0.1",
"version": "1.0.2",
"author": {

@@ -5,0 +5,0 @@ "name": "Tomas Savigliano",

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