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 3.2.0 to 4.0.0

build.js

5

lib/index.js

@@ -40,3 +40,3 @@ 'use strict';

function ExtendableError() {
var message = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];
var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

@@ -46,5 +46,4 @@ _classCallCheck(this, ExtendableError);

// extending Error is weird and does not propagate `message`
var _this = _possibleConstructorReturn(this, (ExtendableError.__proto__ || Object.getPrototypeOf(ExtendableError)).call(this, message));
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(ExtendableError).call(this, message));
Object.defineProperty(_this, 'message', {

@@ -51,0 +50,0 @@ configurable: true,

6

package.json
{
"name": "es6-error",
"version": "3.2.0",
"version": "4.0.0",
"description": "Easily-extendable error for use with ES6 classes",
"main": "./lib/index",
"jsnext:main": "./lib/index",
"jsnext:main": "./lib/index.jsnext.js",
"typings": "./lib/index.d.ts",
"scripts": {
"test": "mocha --compilers js:babel-core/register --recursive",
"build": "babel ./src --out-dir ./lib",
"build": "node build.js",
"prepublish": "npm run build && npm run test"

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