make-error-cause
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -5,4 +5,3 @@ import * as makeError from 'make-error'; | ||
constructor(message: string, cause?: Error | undefined); | ||
inspect(): string | undefined; | ||
} | ||
export declare function fullStack(error: Error | BaseError): string | undefined; |
@@ -14,2 +14,3 @@ "use strict"; | ||
var makeError = require("make-error"); | ||
var util_1 = require("util"); | ||
/** | ||
@@ -26,3 +27,3 @@ * @internal | ||
} | ||
BaseError.prototype.inspect = function () { | ||
BaseError.prototype[util_1.inspect.custom || 'inspect'] = function () { | ||
return fullStack(this); | ||
@@ -29,0 +30,0 @@ }; |
{ | ||
"name": "make-error-cause", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Make your own nested error types!", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
12874