Socket
Socket
Sign inDemoInstall

ebay-api

Package Overview
Dependencies
55
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.0 to 1.9.1

3

lib/errors.js

@@ -15,3 +15,4 @@ /**

this.name = this.constructor.name;
_.extend(this, {message: message}, extraProps);
this.message = message;
_.extend(this, _.omit(extraProps, ['name', 'message']));
}

@@ -18,0 +19,0 @@ inherits(EbayClientError, Error);

{
"name": "ebay-api",
"description": "eBay API Client",
"version": "1.9.0",
"version": "1.9.1",
"homepage": "https://github.com/benbuckman/nodejs-ebay-api",

@@ -6,0 +6,0 @@ "author": "Ben Buckman",

@@ -61,4 +61,15 @@ require('./helpers');

it('can\'t overwrite base properties with extra properties', function() {
var err = new errorClass('Original message', {
message: 'New message',
name: 'UhOh'
});
expect(err.message).to.equal('Original message');
expect(err.name).to.equal(errorClassName);
});
});
});
});
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