Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ganintegrity/gan-error

Package Overview
Dependencies
Maintainers
20
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ganintegrity/gan-error - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@ganintegrity/gan-error",
"version": "1.0.1",
"version": "1.0.2",
"description": "an extendable ES6 Error with support for HTTP errors",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -61,4 +61,4 @@ # @ganintegrity/gan-error

Objects can also be passed to the constructor and all the items in the object
will be assigned to the error:
Objects can also be passed to the constructor. They will be stored as `data` on
the error:

@@ -68,6 +68,6 @@ ```js

const error = new CustomError({ message: 'foo', data: { foo: 'bar' } });
const error = new CustomError({ message: 'foo', foo: 'bar' } });
console.log(error.message); // => 'foo'
console.log(error.data); // => { foo: 'bar' }
console.log(error.message); // => undefined
console.log(error.data); // => { message: 'foo', foo: 'bar' }
```

@@ -74,0 +74,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc