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

verror

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verror - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

issue-39.js

6

CHANGES.md

@@ -5,4 +5,8 @@ # Changelog

No changes yet.
None yet.
## v1.8.1
* #39 captureStackTrace lost when inheriting from WError
## v1.8.0

@@ -9,0 +13,0 @@

13

lib/verror.js

@@ -206,3 +206,3 @@ /*

if (Error.captureStackTrace) {
ctor = parsed.options.constructorOpt || arguments.callee;
ctor = parsed.options.constructorOpt || this.constructor;
Error.captureStackTrace(this, ctor);

@@ -327,6 +327,2 @@ }

options = parsed.options;
if (!options.hasOwnProperty('constructorOpt')) {
options['constructorOpt'] = SError;
}
VError.call(this, options, '%s', parsed.shortmessage);

@@ -357,4 +353,3 @@

VError.call(this, {
'cause': errors[0],
'constructorOpt': MultiError
'cause': errors[0]
}, 'first of %d error%s', errors.length, errors.length == 1 ? '' : 's');

@@ -393,6 +388,2 @@ }

options['skipCauseMessage'] = true;
if (!options.hasOwnProperty('constructorOpt')) {
options['constructorOpt'] = WError;
}
VError.call(this, options, '%s', parsed.shortmessage);

@@ -399,0 +390,0 @@

{
"name": "verror",
"version": "1.8.0",
"version": "1.8.1",
"description": "richer JavaScript errors",

@@ -5,0 +5,0 @@ "main": "./lib/verror.js",

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