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

merge-error-cause

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-error-cause - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

17

build/src/class.js

@@ -17,6 +17,18 @@ import setErrorClass from"set-error-class";

const shouldMergeClass=function({name,wrap}){
return name==="Error"||wrap===true;
const shouldMergeClass=function(parent){
const{wrap,name}=parent;
if(typeof wrap!=="boolean"){
return name==="Error";
}
if(isOwn.call(parent,"wrap")){
delete parent.wrap;
}
return wrap;
};
const{hasOwnProperty:isOwn}=Object.prototype;

@@ -28,2 +40,3 @@

const fixName=function(parent,constructorError){

@@ -30,0 +43,0 @@ if(parent.name!==constructorError.name){

4

package.json
{
"name": "merge-error-cause",
"version": "2.1.1",
"version": "2.2.0",
"type": "module",

@@ -56,3 +56,3 @@ "exports": "./build/src/main.js",

"@ehmicky/dev-tasks": "^1.0.86",
"test-each": "^5.3.0"
"test-each": "^5.4.0"
},

@@ -59,0 +59,0 @@ "engines": {

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