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.0 to 1.0.1

.releaserc.json

6

lib/GanError.js

@@ -31,7 +31,3 @@ class GanError extends Error {

} else if (data) {
Object.keys(data).forEach(key => {
if (this[key] === undefined) {
this[key] = data[key];
}
});
this.data = data;
}

@@ -38,0 +34,0 @@ }

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

@@ -23,2 +23,4 @@ "main": "index.js",

"devDependencies": {
"@semantic-release/changelog": "^2.0.0",
"@semantic-release/git": "^4.0.0",
"coveralls": "^3.0.0",

@@ -30,2 +32,3 @@ "eslint": "^4.18.1",

"prettier": "^1.11.0",
"semantic-release": "^15.0.2",
"unexpected": "^10.37.2"

@@ -32,0 +35,0 @@ },

@@ -7,2 +7,3 @@ # @ganintegrity/gan-error

[![dependency status](https://david-dm.org/ganintegrity/gan-error.svg)](https://david-dm.org/ganintegrity/gan-error)
[![Greenkeeper badge](https://badges.greenkeeper.io/ganintegrity/gan-error.svg)](https://greenkeeper.io/)

@@ -9,0 +10,0 @@ > an extendable ES6 [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)

@@ -61,7 +61,7 @@ const expect = require('unexpected').clone();

it('assigns all other items in the object to the error', () => {
it('stores the object as `data`', () => {
expect(
new GanError({ message: 'foo', foo: 'foo', bar: {} }),
'to satisfy',
{ message: 'foo', foo: 'foo', bar: {} }
{ data: { message: 'foo', foo: 'foo', bar: {} } }
);

@@ -68,0 +68,0 @@ });

Sorry, the diff of this file is not supported yet

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