Comparing version 4.0.0 to 4.0.1
{ | ||
"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'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
224097