@jamashita/anden-error
Advanced tools
Comparing version 2.18.0 to 2.19.0
@@ -16,6 +16,4 @@ "use strict"; | ||
chain.push(error); | ||
if (error instanceof RuntimeError) { | ||
if (!anden_type_1.Kind.isUndefined(error.cause)) { | ||
this.stackErrors(error.cause, chain); | ||
} | ||
if (error.cause instanceof Error) { | ||
this.stackErrors(error.cause, chain); | ||
} | ||
@@ -22,0 +20,0 @@ } |
@@ -13,6 +13,4 @@ import { Kind } from '@jamashita/anden-type'; | ||
chain.push(error); | ||
if (error instanceof RuntimeError) { | ||
if (!Kind.isUndefined(error.cause)) { | ||
this.stackErrors(error.cause, chain); | ||
} | ||
if (error.cause instanceof Error) { | ||
this.stackErrors(error.cause, chain); | ||
} | ||
@@ -19,0 +17,0 @@ } |
{ | ||
"name": "@jamashita/anden-error", | ||
"version": "2.18.0", | ||
"version": "2.19.0", | ||
"private": false, | ||
@@ -26,3 +26,3 @@ "repository": { | ||
"dependencies": { | ||
"@jamashita/anden-type": "^2.11.0" | ||
"@jamashita/anden-type": "^2.12.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "engines": { |
@@ -18,6 +18,4 @@ import { Ambiguous, Kind } from '@jamashita/anden-type'; | ||
if (error instanceof RuntimeError) { | ||
if (!Kind.isUndefined(error.cause)) { | ||
this.stackErrors(error.cause, chain); | ||
} | ||
if (error.cause instanceof Error) { | ||
this.stackErrors(error.cause, chain); | ||
} | ||
@@ -24,0 +22,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
73348
327