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 1.0.2 to 1.1.0

3

dist/index.js

@@ -0,1 +1,2 @@

"use strict";
var __extends = (this && this.__extends) || function (d, b) {

@@ -23,3 +24,3 @@ for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];

return BaseError;
})(makeError.BaseError);
}(makeError.BaseError));
makeErrorCause.BaseError = BaseError;

@@ -26,0 +27,0 @@ })(makeErrorCause || (makeErrorCause = {}));

@@ -0,1 +1,2 @@

"use strict";
var test = require('blue-tape');

@@ -2,0 +3,0 @@ var makeErrorCause = require('./index');

{
"name": "make-error-cause",
"version": "1.0.2",
"description": "Make your own error types, with a cause!",
"version": "1.1.0",
"description": "Make your own nested error types!",
"main": "dist/index.js",

@@ -24,7 +24,8 @@ "files": [

"keywords": [
"custom",
"nested",
"error",
"cause",
"extend",
"inherit",
"cause"
"custom"
],

@@ -42,3 +43,3 @@ "author": {

"devDependencies": {
"blue-tape": "^0.1.10",
"blue-tape": "^0.2.0",
"istanbul": "1.0.0-alpha.2",

@@ -50,7 +51,7 @@ "pre-commit": "^1.0.6",

"typescript": "^1.7.3",
"typings": "^0.3.1"
"typings": "^0.7.2"
},
"dependencies": {
"make-error": "^1.0.4"
"make-error": "^1.1.1"
}
}

@@ -8,3 +8,3 @@ # Make Error Cause

> Make your own error types, with a cause!
> Make your own nested error types!

@@ -16,3 +16,3 @@ ## Features

* Use `error.stack` and `error.name`
* Appended cause with `toString`
* Output full cause with `toString`
* Extends [make-error](https://github.com/julien-f/js-make-error)

@@ -28,3 +28,3 @@

See the usages from [`make-error`](https://github.com/julien-f/js-make-error#usage). Things work the same here, except the base function has a second argument for the "cause". The cause will be printed when using `toString`, but can also be accessed manually.
Usages from [`make-error`](https://github.com/julien-f/js-make-error#usage). The only difference is that errors accept a second argument known as the error "cause". The cause is used to wrap original errors with more intuitive feedback - for instance, wrapping a raw database error in a HTTP error.

@@ -44,3 +44,3 @@ ```js

Inspired by [`verror`](https://www.npmjs.com/package/verror), and others, but made much lighter for browser bundling in tight places.
Inspired by [`verror`](https://www.npmjs.com/package/verror), and others, but created lighter and without core dependencies for browser usage.

@@ -47,0 +47,0 @@ ## License

Sorry, the diff of this file is not supported yet

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