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

es6-error

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-error - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

29

es6/index.js

@@ -7,5 +7,28 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var ExtendableError = function (_Error) {
_inherits(ExtendableError, _Error);
function _extendableBuiltin(cls) {
function ExtendableBuiltin() {
cls.apply(this, arguments);
}
ExtendableBuiltin.prototype = Object.create(cls.prototype, {
constructor: {
value: cls,
enumerable: false,
writable: true,
configurable: true
}
});
if (Object.setPrototypeOf) {
Object.setPrototypeOf(ExtendableBuiltin, cls);
} else {
ExtendableBuiltin.__proto__ = cls;
}
return ExtendableBuiltin;
}
var ExtendableError = function (_extendableBuiltin2) {
_inherits(ExtendableError, _extendableBuiltin2);
function ExtendableError() {

@@ -48,4 +71,4 @@ var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

return ExtendableError;
}(Error);
}(_extendableBuiltin(Error));
export default ExtendableError;

@@ -13,5 +13,28 @@ 'use strict';

var ExtendableError = function (_Error) {
_inherits(ExtendableError, _Error);
function _extendableBuiltin(cls) {
function ExtendableBuiltin() {
cls.apply(this, arguments);
}
ExtendableBuiltin.prototype = Object.create(cls.prototype, {
constructor: {
value: cls,
enumerable: false,
writable: true,
configurable: true
}
});
if (Object.setPrototypeOf) {
Object.setPrototypeOf(ExtendableBuiltin, cls);
} else {
ExtendableBuiltin.__proto__ = cls;
}
return ExtendableBuiltin;
}
var ExtendableError = function (_extendableBuiltin2) {
_inherits(ExtendableError, _extendableBuiltin2);
function ExtendableError() {

@@ -54,5 +77,5 @@ var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

return ExtendableError;
}(Error);
}(_extendableBuiltin(Error));
exports.default = ExtendableError;
module.exports = exports['default'];

2

package.json
{
"name": "es6-error",
"version": "4.1.0",
"version": "4.1.1",
"description": "Easily-extendable error for use with ES6 classes",

@@ -5,0 +5,0 @@ "main": "./lib/index",

@@ -52,2 +52,6 @@ # es6-error

### Known Issues
- Uglification can obscure error class names ([#31](https://github.com/bjyoungblood/es6-error/issues/31#issuecomment-301128220))
#### Todo

@@ -54,0 +58,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