aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es6-error/lib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/es6-error/lib
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/es6-error/lib')
-rw-r--r--node_modules/es6-error/lib/index.d.ts1
-rw-r--r--node_modules/es6-error/lib/index.jsnext.js72
-rw-r--r--node_modules/es6-error/lib/index.ts.js78
3 files changed, 0 insertions, 151 deletions
diff --git a/node_modules/es6-error/lib/index.d.ts b/node_modules/es6-error/lib/index.d.ts
deleted file mode 100644
index c1b1f12f8..000000000
--- a/node_modules/es6-error/lib/index.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export default class ExtendableError extends Error { }
diff --git a/node_modules/es6-error/lib/index.jsnext.js b/node_modules/es6-error/lib/index.jsnext.js
deleted file mode 100644
index 70fbfbcfd..000000000
--- a/node_modules/es6-error/lib/index.jsnext.js
+++ /dev/null
@@ -1,72 +0,0 @@
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-
-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() {
- var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
-
- _classCallCheck(this, ExtendableError);
-
- // extending Error is weird and does not propagate `message`
- var _this = _possibleConstructorReturn(this, (ExtendableError.__proto__ || Object.getPrototypeOf(ExtendableError)).call(this, message));
-
- Object.defineProperty(_this, 'message', {
- configurable: true,
- enumerable: false,
- value: message,
- writable: true
- });
-
- Object.defineProperty(_this, 'name', {
- configurable: true,
- enumerable: false,
- value: _this.constructor.name,
- writable: true
- });
-
- if (Error.hasOwnProperty('captureStackTrace')) {
- Error.captureStackTrace(_this, _this.constructor);
- return _possibleConstructorReturn(_this);
- }
-
- Object.defineProperty(_this, 'stack', {
- configurable: true,
- enumerable: false,
- value: new Error(message).stack,
- writable: true
- });
- return _this;
- }
-
- return ExtendableError;
-}(_extendableBuiltin(Error));
-
-export default ExtendableError;
diff --git a/node_modules/es6-error/lib/index.ts.js b/node_modules/es6-error/lib/index.ts.js
deleted file mode 100644
index ad1920c58..000000000
--- a/node_modules/es6-error/lib/index.ts.js
+++ /dev/null
@@ -1,78 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
-
-function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
-
-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() {
- var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
-
- _classCallCheck(this, ExtendableError);
-
- // extending Error is weird and does not propagate `message`
- var _this = _possibleConstructorReturn(this, (ExtendableError.__proto__ || Object.getPrototypeOf(ExtendableError)).call(this, message));
-
- Object.defineProperty(_this, 'message', {
- configurable: true,
- enumerable: false,
- value: message,
- writable: true
- });
-
- Object.defineProperty(_this, 'name', {
- configurable: true,
- enumerable: false,
- value: _this.constructor.name,
- writable: true
- });
-
- if (Error.hasOwnProperty('captureStackTrace')) {
- Error.captureStackTrace(_this, _this.constructor);
- return _possibleConstructorReturn(_this);
- }
-
- Object.defineProperty(_this, 'stack', {
- configurable: true,
- enumerable: false,
- value: new Error(message).stack,
- writable: true
- });
- return _this;
- }
-
- return ExtendableError;
-}(_extendableBuiltin(Error));
-
-exports.default = ExtendableError;