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

yerror

Package Overview
Dependencies
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yerror - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "yerror",
"version": "4.0.0",
"version": "4.0.1",
"description": "It helps to know why you got an error.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

declare class YError extends Error {
constructor(errorCode: string, ...params: any[]);
constructor<E extends Error>(wrappedErrors?: E[], errorCode?: string, ...params: any[]);
constructor(wrappedErrors?: Error[], errorCode?: string, ...params: any[]);
code: string;

@@ -5,0 +5,0 @@ params: any[];

@@ -205,3 +205,3 @@ /* eslint max-nested-callbacks:[0], no-magic-numbers:[0] */

var err = YError.bump(baseErr);
let err = YError.bump(baseErr);

@@ -208,0 +208,0 @@ assert.equal(err.code, 'E_A_NEW_ERROR');

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