Socket
Socket
Sign inDemoInstall

make-error-cause

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.2.0

1

dist/index.d.ts

@@ -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;

3

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc