Comparing version 3.2.0 to 4.0.0
@@ -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, |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12244
13
225
1