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

@swc/helpers

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/helpers - npm Package Compare versions

Comparing version 0.2.14 to 0.3.0

lib/_array_like_to_array.js

41

lib/_apply_decorated_descriptor.js

@@ -1,29 +0,24 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _applyDecoratedDescriptor;
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
var desc = {
export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
var desc1 = {
};
Object['ke' + 'ys'](descriptor).forEach(function(key) {
desc[key] = descriptor[key];
desc1[key] = descriptor[key];
});
desc.enumerable = !!desc.enumerable;
desc.configurable = !!desc.configurable;
if ('value' in desc || desc.initializer) {
desc.writable = true;
desc1.enumerable = !!desc1.enumerable;
desc1.configurable = !!desc1.configurable;
if ('value' in desc1 || desc1.initializer) {
desc1.writable = true;
}
desc = decorators.slice().reverse().reduce(function(desc1, decorator) {
return decorator ? decorator(target, property, desc1) || desc1 : desc1;
}, desc);
if (context && desc.initializer !== void 0) {
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
desc.initializer = undefined;
desc1 = decorators.slice().reverse().reduce(function(desc, decorator) {
return decorator ? decorator(target, property, desc) || desc : desc;
}, desc1);
if (context && desc1.initializer !== void 0) {
desc1.value = desc1.initializer ? desc1.initializer.call(context) : void 0;
desc1.initializer = undefined;
}
if (desc.initializer === void 0) {
Object['define' + 'Property'](target, property, desc);
desc = null;
if (desc1.initializer === void 0) {
Object['define' + 'Property'](target, property, desc1);
desc1 = null;
}
return desc;
}
return desc1;
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _arrayWithHoles;
function _arrayWithHoles(arr) {
export default function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
};

@@ -1,13 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _arrayWithoutHoles;
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for(var i = 0, arr2 = new Array(arr.length); i < arr.length; i++){
arr2[i] = arr[i];
}
return arr2;
}
}
import _arrayLikeToArray from './_array_like_to_array';
export default function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _assertThisInitialized;
function _assertThisInitialized(self) {
export default function _assertThisInitialized(self) {
if (self === void 0) {

@@ -11,2 +6,2 @@ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");

return self;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _asyncGeneratorDelegate;
function _asyncGeneratorDelegate(inner, awaitWrap) {
export default function _asyncGeneratorDelegate(inner, awaitWrap) {
var pump = function pump(key, value) {

@@ -47,2 +42,2 @@ waiting = true;

return iter;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = AsyncGenerator;
var _awaitValue = _interopRequireDefault(require("./_await_value"));
import AwaitValue from './_await_value';
function _instanceof(left, right) {

@@ -14,8 +9,3 @@ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {

}
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function AsyncGenerator(gen) {
export default function AsyncGenerator(gen) {
var send = function send(key, arg) {

@@ -64,13 +54,13 @@ return new Promise(function(resolve, reject) {

var front, back;
function resume(key, arg) {
function resume(key, arg1) {
try {
var result = gen[key](arg);
var result = gen[key](arg1);
var value = result.value;
var wrappedAwait = _instanceof(value, _awaitValue.default);
Promise.resolve(wrappedAwait ? value.wrapped : value).then(function(arg1) {
var wrappedAwait = _instanceof(value, AwaitValue);
Promise.resolve(wrappedAwait ? value.wrapped : value).then(function(arg) {
if (wrappedAwait) {
resume("next", arg1);
resume("next", arg);
return;
}
settle(result.done ? "return" : "normal", arg1);
settle(result.done ? "return" : "normal", arg);
}, function(err) {

@@ -87,3 +77,3 @@ resume("throw", err);

}
}
};
if (typeof Symbol === "function" && Symbol.asyncIterator) {

@@ -90,0 +80,0 @@ AsyncGenerator.prototype[Symbol.asyncIterator] = function() {

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _asyncIterator;
function _asyncIterator(iterable) {
export default function _asyncIterator(iterable) {
var method;

@@ -19,2 +14,2 @@ if (typeof Symbol === "function") {

throw new TypeError("Object is not async iterable");
}
};

@@ -1,6 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _asyncToGenerator;
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {

@@ -20,3 +15,3 @@ try {

}
function _asyncToGenerator(fn) {
export default function _asyncToGenerator(fn) {
return function() {

@@ -35,2 +30,2 @@ var self = this, args = arguments;

};
}
};

@@ -1,14 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _awaitAsyncGenerator;
var _awaitValue = _interopRequireDefault(require("./_await_value"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _awaitAsyncGenerator(value) {
return new _awaitValue.default(value);
}
import AwaitValue from './_await_value';
export default function _awaitAsyncGenerator(value) {
return new AwaitValue(value);
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _AwaitValue;
function _AwaitValue(value) {
export default function _AwaitValue(value) {
this.wrapped = value;
}
};

@@ -1,6 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classCallCheck;
function _instanceof(left, right) {

@@ -13,6 +8,6 @@ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {

}
function _classCallCheck(instance, Constructor) {
export default function _classCallCheck(instance, Constructor) {
if (!_instanceof(instance, Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classNameTDZError;
function _classNameTDZError(name) {
export default function _classNameTDZError(name) {
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classPrivateFieldGet;
function _classPrivateFieldGet(receiver, privateMap) {
export default function _classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {

@@ -11,2 +6,2 @@ throw new TypeError("attempted to get private field on non-instance");

return privateMap.get(receiver).value;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classPrivateFieldBase;
function _classPrivateFieldBase(receiver, privateKey) {
export default function _classPrivateFieldBase(receiver, privateKey) {
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {

@@ -11,2 +6,2 @@ throw new TypeError("attempted to use private field on non-instance");

return receiver;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classPrivateFieldSet;
function _classPrivateFieldSet(receiver, privateMap, value) {
export default function _classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {

@@ -16,2 +11,2 @@ throw new TypeError("attempted to set private field on non-instance");

return value;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classPrivateMethodGet;
function _classPrivateMethodGet(receiver, privateSet, fn) {
export default function _classPrivateMethodGet(receiver, privateSet, fn) {
if (!privateSet.has(receiver)) {

@@ -11,2 +6,2 @@ throw new TypeError("attempted to get private field on non-instance");

return fn;
}
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classPrivateMethodSet;
function _classPrivateMethodSet() {
export default function _classPrivateMethodSet() {
throw new TypeError("attempted to reassign private method");
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classStaticPrivateFieldSpecGet;
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
if (receiver !== classConstructor) {

@@ -11,2 +6,2 @@ throw new TypeError("Private static access of wrong provenance");

return descriptor.value;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _classStaticPrivateFieldSpecSet;
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
if (receiver !== classConstructor) {

@@ -15,2 +10,2 @@ throw new TypeError("Private static access of wrong provenance");

return value;
}
};

@@ -1,6 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _construct;
function isNativeReflectConstruct() {

@@ -18,14 +13,14 @@ if (typeof Reflect === "undefined" || !Reflect.construct) return false;

}
function construct(Parent, args, Class) {
function construct(Parent1, args1, Class1) {
if (isNativeReflectConstruct()) {
construct = Reflect.construct;
} else {
construct = function construct1(Parent1, args1, Class1) {
construct = function construct(Parent, args, Class) {
var a = [
null
];
a.push.apply(a, args1);
var Constructor = Function.bind.apply(Parent1, a);
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class1) _setPrototypeOf(instance, Class1.prototype);
if (Class) _setPrototypeOf(instance, Class.prototype);
return instance;

@@ -36,4 +31,4 @@ };

}
function _construct(Parent, args, Class) {
export default function _construct(Parent, args, Class) {
return construct.apply(null, arguments);
}
};

@@ -1,6 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _createClass;
function _defineProperties(target, props) {

@@ -15,6 +10,6 @@ for(var i = 0; i < props.length; i++){

}
function _createClass(Constructor, protoProps, staticProps) {
export default function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
};

@@ -1,20 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _createSuper;
var _isNativeReflectConstruct = _interopRequireDefault(require("./_is_native_reflect_construct"));
var _getPrototypeOf = _interopRequireDefault(require("./_get_prototype_of"));
var _possibleConstructorReturn = _interopRequireDefault(require("./_possible_constructor_return"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _createSuper(Derived) {
var hasNativeReflectConstruct = (0, _isNativeReflectConstruct).default();
import _isNativeReflectConstruct from "./_is_native_reflect_construct";
import _getPrototypeOf from "./_get_prototype_of";
import _possibleConstructorReturn from './_possible_constructor_return';
export default function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = (0, _getPrototypeOf).default(Derived), result;
var Super = _getPrototypeOf(Derived), result;
if (hasNativeReflectConstruct) {
var NewTarget = (0, _getPrototypeOf).default(this).constructor;
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);

@@ -24,4 +14,4 @@ } else {

}
return (0, _possibleConstructorReturn).default(this, result);
return _possibleConstructorReturn(this, result);
};
}
};

@@ -1,14 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _decorate;
var _toArray = _interopRequireDefault(require("./_to_array"));
var _toPropertyKey = _interopRequireDefault(require("./_to_property_key"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _decorate(decorators, factory, superClass) {
import toArray from './_to_array';
import toPropertyKey from './_to_property_key';
export default function _decorate(decorators, factory, superClass) {
var r = factory(function initialize(O) {

@@ -20,5 +10,5 @@ _initializeInstanceElements(O, decorated.elements);

return _runClassFinishers(r.F, decorated.finishers);
}
};
function _createElementDescriptor(def) {
var key = (0, _toPropertyKey).default(def.key);
var key = toPropertyKey(def.key);
var descriptor;

@@ -74,3 +64,3 @@ if (def.kind === "method") {

var newElements = [];
var isSameElement = function isSameElement1(other) {
var isSameElement = function isSameElement(other) {
return other.kind === "method" && other.key === element.key && other.placement === element.placement;

@@ -80,17 +70,17 @@ };

var element = elements[i];
var other;
if (element.kind === "method" && (other = newElements.find(isSameElement))) {
if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) {
if (_hasDecorators(element) || _hasDecorators(other)) {
var other1;
if (element.kind === "method" && (other1 = newElements.find(isSameElement))) {
if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other1.descriptor)) {
if (_hasDecorators(element) || _hasDecorators(other1)) {
throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
}
other.descriptor = element.descriptor;
other1.descriptor = element.descriptor;
} else {
if (_hasDecorators(element)) {
if (_hasDecorators(other)) {
if (_hasDecorators(other1)) {
throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").");
}
other.decorators = element.decorators;
other1.decorators = element.decorators;
}
_coalesceGetterSetter(element, other);
_coalesceGetterSetter(element, other1);
}

@@ -253,3 +243,3 @@ } else {

if (elementObjects === undefined) return;
return (0, _toArray).default(elementObjects).map(function(elementObject) {
return toArray(elementObjects).map(function(elementObject) {
var element = _toElementDescriptor(elementObject);

@@ -266,3 +256,3 @@ _disallowProperty(elementObject, "finisher", "An element descriptor");

}
var key = (0, _toPropertyKey).default(elementObject.key);
var key = toPropertyKey(elementObject.key);
var placement = String(elementObject.placement);

@@ -269,0 +259,0 @@ if (placement !== "static" && placement !== "prototype" && placement !== "own") {

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _defaults;
function _defaults(obj, defaults) {
export default function _defaults(obj, defaults) {
var keys = Object.getOwnPropertyNames(defaults);

@@ -16,2 +11,2 @@ for(var i = 0; i < keys.length; i++){

return obj;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _defineEnumerableProperties;
function _defineEnumerableProperties(obj, descs) {
export default function _defineEnumerableProperties(obj, descs) {
for(var key in descs){

@@ -24,2 +19,2 @@ var desc = descs[key];

return obj;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _defineProperty;
function _defineProperty(obj, key, value) {
export default function _defineProperty(obj, key, value) {
if (key in obj) {

@@ -18,2 +13,2 @@ Object.defineProperty(obj, key, {

return obj;
}
};

@@ -1,6 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _extends;
function extends_() {

@@ -20,4 +15,4 @@ extends_ = Object.assign || function(target) {

}
function _extends() {
export default function _extends() {
return extends_.apply(this, arguments);
}
};

@@ -1,14 +0,9 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _getPrototypeOf;
function getPrototypeOf(o) {
getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf1(o1) {
return o1.__proto__ || Object.getPrototypeOf(o1);
function getPrototypeOf(o1) {
getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return getPrototypeOf(o);
return getPrototypeOf(o1);
}
function _getPrototypeOf(o) {
export default function _getPrototypeOf(o) {
return getPrototypeOf(o);
}
};

@@ -1,22 +0,12 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _get;
var _superPropBase = _interopRequireDefault(require("./_super_prop_base"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function get(target, property, receiver) {
import superPropBase from './_super_prop_base';
function get(target1, property1, receiver1) {
if (typeof Reflect !== "undefined" && Reflect.get) {
get = Reflect.get;
} else {
get = function get1(target1, property1, receiver1) {
var base = (0, _superPropBase).default(target1, property1);
get = function get(target, property, receiver) {
var base = superPropBase(target, property);
if (!base) return;
var desc = Object.getOwnPropertyDescriptor(base, property1);
var desc = Object.getOwnPropertyDescriptor(base, property);
if (desc.get) {
return desc.get.call(receiver1 || target1);
return desc.get.call(receiver || target);
}

@@ -26,6 +16,6 @@ return desc.value;

}
return get(target, property, receiver);
return get(target1, property1, receiver1);
}
function _get(target, property, reciever) {
export default function _get(target, property, reciever) {
return get(target, property, reciever);
}
};

@@ -1,10 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _inheritsLoose;
function _inheritsLoose(subClass, superClass) {
export default function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
};

@@ -1,13 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _inherits;
var _setPrototypeOf = _interopRequireDefault(require("./_set_prototype_of"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _inherits(subClass, superClass) {
import setPrototypeOf from './_set_prototype_of';
export default function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {

@@ -23,3 +13,3 @@ throw new TypeError("Super expression must either be null or a function");

});
if (superClass) (0, _setPrototypeOf).default(subClass, superClass);
}
if (superClass) setPrototypeOf(subClass, superClass);
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _initializerDefineProperty;
function _initializerDefineProperty(target, property, descriptor, context) {
export default function _initializerDefineProperty(target, property, descriptor, context) {
if (!descriptor) return;

@@ -14,2 +9,2 @@ Object.defineProperty(target, property, {

});
}
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _initializerWarningHelper;
function _initializerWarningHelper(descriptor, context) {
export default function _initializerWarningHelper(descriptor, context) {
throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and set to use loose mode. ' + 'To use proposal-class-properties in spec mode with decorators, wait for ' + 'the next major version of decorators in stage 2.');
}
};

@@ -1,6 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _instanceof1;
function _instanceof(left, right) {

@@ -13,3 +8,3 @@ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {

}
function _instanceof1(left, right) {
export default function _instanceof1(left, right) {
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {

@@ -20,2 +15,2 @@ return right[Symbol.hasInstance](left);

}
}
};

@@ -1,10 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _interopRequireDefault;
function _interopRequireDefault(obj) {
export default function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _interopRequireWildcard;
function _interopRequireWildcard(obj) {
export default function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {

@@ -28,2 +23,2 @@ return obj;

}
}
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _isNativeFunction;
function _isNativeFunction(fn) {
export default function _isNativeFunction(fn) {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _isNativeReflectConstruct;
function _isNativeReflectConstruct() {
export default function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;

@@ -17,2 +12,2 @@ if (Reflect.construct.sham) return false;

}
}
};

@@ -1,9 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _iterableToArrayLimitLoose;
function _iterableToArrayLimitLoose(arr, i) {
export default function _iterableToArrayLimitLoose(arr, i) {
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
if (_i == null) return;
var _arr = [];
for(var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;){
for(_i = _i.call(arr), _step; !(_step = _i.next()).done;){
_arr.push(_step.value);

@@ -13,2 +10,2 @@ if (i && _arr.length === i) break;

return _arr;
}
};

@@ -1,13 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _iterableToArrayLimit;
function _iterableToArrayLimit(arr, i) {
export default function _iterableToArrayLimit(arr, i) {
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
if (_i == null) return;
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
var _s, _e;
try {
for(var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true){
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
_arr.push(_s.value);

@@ -27,2 +24,2 @@ if (i && _arr.length === i) break;

return _arr;
}
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _iterableToArray;
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
}
export default function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _createRawReactElement;
var REACT_ELEMENT_TYPE;
function _createRawReactElement(type, props, key, children) {
export default function _createRawReactElement(type, props, key, children) {
if (!REACT_ELEMENT_TYPE) {

@@ -45,2 +40,2 @@ REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 60103;

};
}
};

@@ -1,10 +0,5 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _newArrowCheck;
function _newArrowCheck(innerThis, boundThis) {
export default function _newArrowCheck(innerThis, boundThis) {
if (innerThis !== boundThis) {
throw new TypeError("Cannot instantiate an arrow function");
}
}
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _nonIterableRest;
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
export default function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _nonIterableSpread;
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
}
export default function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
};

@@ -1,13 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _objectSpread;
var _defineProperty = _interopRequireDefault(require("./_define_property"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _objectSpread(target) {
import defineProperty from './_define_property';
export default function _objectSpread(target) {
var _arguments = arguments, _loop = function(i) {

@@ -23,3 +13,3 @@ var source = _arguments[i] != null ? _arguments[i] : {

ownKeys.forEach(function(key) {
(0, _defineProperty).default(target, key, source[key]);
defineProperty(target, key, source[key]);
});

@@ -29,2 +19,2 @@ };

return target;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _objectWithoutPropertiesLoose;
function _objectWithoutPropertiesLoose(source, excluded) {
export default function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {

@@ -19,2 +14,2 @@ };

return target;
}
};

@@ -1,16 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _objectWithoutProperties;
var _objectWithoutPropertiesLoose = _interopRequireDefault(require("./_object_without_properties_loose"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _objectWithoutProperties(source, excluded) {
import objectWithoutPropertiesLoose from './_object_without_properties_loose';
export default function _objectWithoutProperties(source, excluded) {
if (source == null) return {
};
var target = (0, _objectWithoutPropertiesLoose).default(source, excluded);
var target = objectWithoutPropertiesLoose(source, excluded);
var key, i;

@@ -27,2 +17,2 @@ if (Object.getOwnPropertySymbols) {

return target;
}
};

@@ -1,18 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _possibleConstructorReturn;
var _assertThisInitialized = _interopRequireDefault(require("./_assert_this_initialized"));
var _typeOf = _interopRequireDefault(require("./_type_of"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _possibleConstructorReturn(self, call) {
if (call && ((0, _typeOf).default(call) === "object" || typeof call === "function")) {
import assertThisInitialized from './_assert_this_initialized';
import _typeof from './_type_of';
export default function _possibleConstructorReturn(self, call) {
if (call && (_typeof(call) === "object" || typeof call === "function")) {
return call;
}
return (0, _assertThisInitialized).default(self);
}
return assertThisInitialized(self);
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _readOnlyError;
function _readOnlyError(name) {
export default function _readOnlyError(name) {
throw new Error("\"" + name + "\" is read-only");
}
};

@@ -1,15 +0,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _setPrototypeOf;
function setPrototypeOf(o, p) {
setPrototypeOf = Object.setPrototypeOf || function setPrototypeOf1(o1, p1) {
o1.__proto__ = p1;
return o1;
function setPrototypeOf(o1, p1) {
setPrototypeOf = Object.setPrototypeOf || function setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return setPrototypeOf(o, p);
return setPrototypeOf(o1, p1);
}
function _setPrototypeOf(o, p) {
export default function _setPrototypeOf(o, p) {
return setPrototypeOf(o, p);
}
};

@@ -1,24 +0,14 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _set;
var _defineProperty = _interopRequireDefault(require("./_define_property"));
var _superPropBase = _interopRequireDefault(require("./_super_prop_base"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function set(target, property, value, receiver) {
import defineProperty from './_define_property';
import superPropBase from './_super_prop_base';
function set(target1, property1, value1, receiver1) {
if (typeof Reflect !== "undefined" && Reflect.set) {
set = Reflect.set;
} else {
set = function set1(target1, property1, value1, receiver1) {
var base = (0, _superPropBase).default(target1, property1);
set = function set(target, property, value, receiver) {
var base = superPropBase(target, property);
var desc;
if (base) {
desc = Object.getOwnPropertyDescriptor(base, property1);
desc = Object.getOwnPropertyDescriptor(base, property);
if (desc.set) {
desc.set.call(receiver1, value1);
desc.set.call(receiver, value);
return true;

@@ -29,3 +19,3 @@ } else if (!desc.writable) {

}
desc = Object.getOwnPropertyDescriptor(receiver1, property1);
desc = Object.getOwnPropertyDescriptor(receiver, property);
if (desc) {

@@ -35,6 +25,6 @@ if (!desc.writable) {

}
desc.value = value1;
Object.defineProperty(receiver1, property1, desc);
desc.value = value;
Object.defineProperty(receiver, property, desc);
} else {
(0, _defineProperty).default(receiver1, property1, value1);
defineProperty(receiver, property, value);
}

@@ -44,5 +34,5 @@ return true;

}
return set(target, property, value, receiver);
return set(target1, property1, value1, receiver1);
}
function _set(target, property, value, receiver, isStrict) {
export default function _set(target, property, value, receiver, isStrict) {
var s = set(target, property, value, receiver || target);

@@ -53,2 +43,2 @@ if (!s && isStrict) {

return value;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _skipFirstGeneratorNext;
function _skipFirstGeneratorNext(fn) {
export default function _skipFirstGeneratorNext(fn) {
return function() {

@@ -12,2 +7,2 @@ var it = fn.apply(this, arguments);

};
}
};

@@ -1,16 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _slicedToArrayLoose;
var _arrayWithHoles = _interopRequireDefault(require("./_array_with_holes"));
var _iterableToArrayLimitLoose = _interopRequireDefault(require("./_iterable_to_array_limit_loose"));
var _nonIterableRest = _interopRequireDefault(require("./_non_iterable_rest"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _slicedToArrayLoose(arr, i) {
return (0, _arrayWithHoles).default(arr) || (0, _iterableToArrayLimitLoose).default(arr, i) || (0, _nonIterableRest).default();
}
import arrayWithHoles from './_array_with_holes';
import iterableToArrayLimitLoose from './_iterable_to_array_limit_loose';
import nonIterableRest from './_non_iterable_rest';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _slicedToArrayLoose(arr, i) {
return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
};

@@ -1,16 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _slicedToArray;
var _arrayWithHoles = _interopRequireDefault(require("./_array_with_holes"));
var _iterableToArray = _interopRequireDefault(require("./_iterable_to_array"));
var _nonIterableRest = _interopRequireDefault(require("./_non_iterable_rest"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _slicedToArray(arr, i) {
return (0, _arrayWithHoles).default(arr) || (0, _iterableToArray).default(arr, i) || (0, _nonIterableRest).default();
}
import arrayWithHoles from './_array_with_holes';
import iterableToArrayLimit from './_iterable_to_array';
import nonIterableRest from './_non_iterable_rest';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _slicedToArray(arr, i) {
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
};

@@ -1,18 +0,8 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _superPropBase;
var _getPrototypeOf = _interopRequireDefault(require("./_get_prototype_of"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _superPropBase(object, property) {
import getPrototypeOf from './_get_prototype_of';
export default function _superPropBase(object, property) {
while(!Object.prototype.hasOwnProperty.call(object, property)){
object = (0, _getPrototypeOf).default(object);
object = getPrototypeOf(object);
if (object === null) break;
}
return object;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _taggedTemplateLiteralLoose;
function _taggedTemplateLiteralLoose(strings, raw) {
export default function _taggedTemplateLiteralLoose(strings, raw) {
if (!raw) {

@@ -12,2 +7,2 @@ raw = strings.slice(0);

return strings;
}
};

@@ -1,7 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _taggedTemplateLiteral;
function _taggedTemplateLiteral(strings, raw) {
export default function _taggedTemplateLiteral(strings, raw) {
if (!raw) {

@@ -15,2 +10,2 @@ raw = strings.slice(0);

}));
}
};

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _throw;
function _throw(e) {
export default function _throw(e) {
throw e;
}
};

@@ -1,16 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _toArray;
var _arrayWithHoles = _interopRequireDefault(require("./_array_with_holes"));
var _iterableToArray = _interopRequireDefault(require("./_iterable_to_array"));
var _nonIterableRest = _interopRequireDefault(require("./_non_iterable_rest"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _toArray(arr) {
return (0, _arrayWithHoles).default(arr) || (0, _iterableToArray).default(arr) || (0, _nonIterableRest).default();
}
import arrayWithHoles from './_array_with_holes';
import iterableToArray from './_iterable_to_array';
import nonIterableRest from './_non_iterable_rest';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _toArray(arr) {
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr, i) || nonIterableRest();
};

@@ -1,16 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _toConsumableArray;
var _arrayWithoutHoles = _interopRequireDefault(require("./_array_without_holes"));
var _iterableToArray = _interopRequireDefault(require("./_iterable_to_array"));
var _nonIterableSpread = _interopRequireDefault(require("./_non_iterable_spread"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _toConsumableArray(arr) {
return (0, _arrayWithoutHoles).default(arr) || (0, _iterableToArray).default(arr) || (0, _nonIterableSpread).default();
}
import arrayWithoutHoles from './_array_without_holes';
import iterableToArray from './_iterable_to_array';
import nonIterableSpread from './_non_iterable_spread';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _toConsumableArray(arr) {
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
};

@@ -1,21 +0,11 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _toPrimitive;
var _typeOf = _interopRequireDefault(require("./_type_of"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _toPrimitive(input, hint) {
if ((0, _typeOf).default(input) !== "object" || input === null) return input;
import _typeof from './_type_of';
export default function _toPrimitive(input, hint) {
if (_typeof(input) !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if ((0, _typeOf).default(res) !== "object") return res;
if (_typeof(res) !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
};

@@ -1,16 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _toPropertyKey;
var _typeOf = _interopRequireDefault(require("./_type_of"));
var _toPrimitive = _interopRequireDefault(require("./_to_primitive"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _toPropertyKey(arg) {
var key = (0, _toPrimitive).default(arg, "string");
return (0, _typeOf).default(key) === "symbol" ? key : String(key);
}
import _typeof from './_type_of';
import toPrimitive from './_to_primitive';
export default function _toPropertyKey(arg) {
var key = toPrimitive(arg, "string");
return _typeof(key) === "symbol" ? key : String(key);
};

@@ -1,12 +0,7 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _typeof1;
var _typeof = function(obj) {
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
};
function _typeof1(obj) {
export default function _typeof1(obj) {
return obj && obj.constructor === Symbol ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
}
};
;

@@ -1,16 +0,6 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _wrapAsyncGenerator;
var _asyncGenerator = _interopRequireDefault(require("./_async_generator"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function _wrapAsyncGenerator(fn) {
import AsyncGenerator from './_async_generator';
export default function _wrapAsyncGenerator(fn) {
return function() {
return new _asyncGenerator.default(fn.apply(this, arguments));
return new AsyncGenerator(fn.apply(this, arguments));
};
}
};

@@ -1,30 +0,20 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _wrapNativeSuper;
var _construct = _interopRequireDefault(require("./_construct"));
var _isNativeFunction = _interopRequireDefault(require("./_is_native_function"));
var _getPrototypeOf = _interopRequireDefault(require("./_get_prototype_of"));
var _setPrototypeOf = _interopRequireDefault(require("./_set_prototype_of"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
function wrapNativeSuper(Class) {
import construct from './_construct';
import isNativeFunction from './_is_native_function';
import getPrototypeOf from './_get_prototype_of';
import setPrototypeOf from './_set_prototype_of';
function wrapNativeSuper(Class1) {
var _cache = typeof Map === "function" ? new Map() : undefined;
wrapNativeSuper = function wrapNativeSuper1(Class1) {
wrapNativeSuper = function wrapNativeSuper(Class) {
var Wrapper = function Wrapper() {
return (0, _construct).default(Class1, arguments, (0, _getPrototypeOf).default(this).constructor);
return construct(Class, arguments, getPrototypeOf(this).constructor);
};
if (Class1 === null || !(0, _isNativeFunction).default(Class1)) return Class1;
if (typeof Class1 !== "function") {
if (Class === null || !isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class1)) return _cache.get(Class1);
_cache.set(Class1, Wrapper);
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
Wrapper.prototype = Object.create(Class1.prototype, {
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {

@@ -37,8 +27,8 @@ value: Wrapper,

});
return (0, _setPrototypeOf).default(Wrapper, Class1);
return setPrototypeOf(Wrapper, Class);
};
return wrapNativeSuper(Class);
return wrapNativeSuper(Class1);
}
function _wrapNativeSuper(Class) {
export default function _wrapNativeSuper(Class) {
return wrapNativeSuper(Class);
}
};

@@ -1,471 +0,68 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "applyDecoratedDescriptor", {
enumerable: true,
get: function() {
return _applyDecoratedDescriptor.default;
}
});
Object.defineProperty(exports, "arrayWithHoles", {
enumerable: true,
get: function() {
return _arrayWithHoles.default;
}
});
Object.defineProperty(exports, "arrayWithoutHoles", {
enumerable: true,
get: function() {
return _arrayWithoutHoles.default;
}
});
Object.defineProperty(exports, "assertThisInitialized", {
enumerable: true,
get: function() {
return _assertThisInitialized.default;
}
});
Object.defineProperty(exports, "asyncGenerator", {
enumerable: true,
get: function() {
return _asyncGenerator.default;
}
});
Object.defineProperty(exports, "asyncGeneratorDelegate", {
enumerable: true,
get: function() {
return _asyncGeneratorDelegate.default;
}
});
Object.defineProperty(exports, "asyncIterator", {
enumerable: true,
get: function() {
return _asyncIterator.default;
}
});
Object.defineProperty(exports, "asyncToGenerator", {
enumerable: true,
get: function() {
return _asyncToGenerator.default;
}
});
Object.defineProperty(exports, "awaitAsyncGenerator", {
enumerable: true,
get: function() {
return _awaitAsyncGenerator.default;
}
});
Object.defineProperty(exports, "awaitValue", {
enumerable: true,
get: function() {
return _awaitValue.default;
}
});
Object.defineProperty(exports, "classCallCheck", {
enumerable: true,
get: function() {
return _classCallCheck.default;
}
});
Object.defineProperty(exports, "classNameTDZError", {
enumerable: true,
get: function() {
return _classNameTdzError.default;
}
});
Object.defineProperty(exports, "classPrivateFieldGet", {
enumerable: true,
get: function() {
return _classPrivateFieldGet.default;
}
});
Object.defineProperty(exports, "classPrivateFieldLooseBase", {
enumerable: true,
get: function() {
return _classPrivateFieldLooseBase.default;
}
});
Object.defineProperty(exports, "classPrivateFieldSet", {
enumerable: true,
get: function() {
return _classPrivateFieldSet.default;
}
});
Object.defineProperty(exports, "classPrivateMethodGet", {
enumerable: true,
get: function() {
return _classPrivateMethodGet.default;
}
});
Object.defineProperty(exports, "classPrivateMethodSet", {
enumerable: true,
get: function() {
return _classPrivateMethodSet.default;
}
});
Object.defineProperty(exports, "classStaticPrivateFieldSpecGet", {
enumerable: true,
get: function() {
return _classStaticPrivateFieldSpecGet.default;
}
});
Object.defineProperty(exports, "classStaticPrivateFieldSpecSet", {
enumerable: true,
get: function() {
return _classStaticPrivateFieldSpecSet.default;
}
});
Object.defineProperty(exports, "construct", {
enumerable: true,
get: function() {
return _construct.default;
}
});
Object.defineProperty(exports, "createClass", {
enumerable: true,
get: function() {
return _createClass.default;
}
});
Object.defineProperty(exports, "decorate", {
enumerable: true,
get: function() {
return _decorate.default;
}
});
Object.defineProperty(exports, "defaults", {
enumerable: true,
get: function() {
return _defaults.default;
}
});
Object.defineProperty(exports, "defineEnumerableProperties", {
enumerable: true,
get: function() {
return _defineEnumerableProperties.default;
}
});
Object.defineProperty(exports, "defineProperty", {
enumerable: true,
get: function() {
return _defineProperty.default;
}
});
Object.defineProperty(exports, "extends", {
enumerable: true,
get: function() {
return _extends.default;
}
});
Object.defineProperty(exports, "get", {
enumerable: true,
get: function() {
return _get.default;
}
});
Object.defineProperty(exports, "getPrototypeOf", {
enumerable: true,
get: function() {
return _getPrototypeOf.default;
}
});
Object.defineProperty(exports, "inherits", {
enumerable: true,
get: function() {
return _inherits.default;
}
});
Object.defineProperty(exports, "inheritsLoose", {
enumerable: true,
get: function() {
return _inheritsLoose.default;
}
});
Object.defineProperty(exports, "initializerDefineProperty", {
enumerable: true,
get: function() {
return _initializerDefineProperty.default;
}
});
Object.defineProperty(exports, "initializerWarningHelper", {
enumerable: true,
get: function() {
return _initializerWarningHelper.default;
}
});
Object.defineProperty(exports, "_instanceof", {
enumerable: true,
get: function() {
return _instanceof.default;
}
});
Object.defineProperty(exports, "interopRequireDefault", {
enumerable: true,
get: function() {
return _interopRequireDefault1.default;
}
});
Object.defineProperty(exports, "interopRequireWildcard", {
enumerable: true,
get: function() {
return _interopRequireWildcard.default;
}
});
Object.defineProperty(exports, "isNativeFunction", {
enumerable: true,
get: function() {
return _isNativeFunction.default;
}
});
Object.defineProperty(exports, "iterableToArray", {
enumerable: true,
get: function() {
return _iterableToArray.default;
}
});
Object.defineProperty(exports, "iterableToArrayLimit", {
enumerable: true,
get: function() {
return _iterableToArrayLimit.default;
}
});
Object.defineProperty(exports, "iterableToArrayLimitLoose", {
enumerable: true,
get: function() {
return _iterableToArrayLimitLoose.default;
}
});
Object.defineProperty(exports, "jsx", {
enumerable: true,
get: function() {
return _jsx.default;
}
});
Object.defineProperty(exports, "newArrowCheck", {
enumerable: true,
get: function() {
return _newArrowCheck.default;
}
});
Object.defineProperty(exports, "nonIterableRest", {
enumerable: true,
get: function() {
return _nonIterableRest.default;
}
});
Object.defineProperty(exports, "nonIterableSpread", {
enumerable: true,
get: function() {
return _nonIterableSpread.default;
}
});
Object.defineProperty(exports, "objectSpread", {
enumerable: true,
get: function() {
return _objectSpread.default;
}
});
Object.defineProperty(exports, "objectWithoutProperties", {
enumerable: true,
get: function() {
return _objectWithoutProperties.default;
}
});
Object.defineProperty(exports, "objectWithoutPropertiesLoose", {
enumerable: true,
get: function() {
return _objectWithoutPropertiesLoose.default;
}
});
Object.defineProperty(exports, "possibleConstructorReturn", {
enumerable: true,
get: function() {
return _possibleConstructorReturn.default;
}
});
Object.defineProperty(exports, "readOnlyError", {
enumerable: true,
get: function() {
return _readOnlyError.default;
}
});
Object.defineProperty(exports, "set", {
enumerable: true,
get: function() {
return _set.default;
}
});
Object.defineProperty(exports, "setPrototypeOf", {
enumerable: true,
get: function() {
return _setPrototypeOf.default;
}
});
Object.defineProperty(exports, "skipFirstGeneratorNext", {
enumerable: true,
get: function() {
return _skipFirstGeneratorNext.default;
}
});
Object.defineProperty(exports, "slicedToArray", {
enumerable: true,
get: function() {
return _slicedToArray.default;
}
});
Object.defineProperty(exports, "slicedToArrayLoose", {
enumerable: true,
get: function() {
return _slicedToArrayLoose.default;
}
});
Object.defineProperty(exports, "superPropBase", {
enumerable: true,
get: function() {
return _superPropBase.default;
}
});
Object.defineProperty(exports, "taggedTemplateLiteral", {
enumerable: true,
get: function() {
return _taggedTemplateLiteral.default;
}
});
Object.defineProperty(exports, "taggedTemplateLiteralLoose", {
enumerable: true,
get: function() {
return _taggedTemplateLiteralLoose.default;
}
});
Object.defineProperty(exports, "_throw", {
enumerable: true,
get: function() {
return _throw.default;
}
});
Object.defineProperty(exports, "toArray", {
enumerable: true,
get: function() {
return _toArray.default;
}
});
Object.defineProperty(exports, "toConsumableArray", {
enumerable: true,
get: function() {
return _toConsumableArray.default;
}
});
Object.defineProperty(exports, "toPrimitive", {
enumerable: true,
get: function() {
return _toPrimitive.default;
}
});
Object.defineProperty(exports, "toPropertyKey", {
enumerable: true,
get: function() {
return _toPropertyKey.default;
}
});
Object.defineProperty(exports, "typeOf", {
enumerable: true,
get: function() {
return _typeOf.default;
}
});
Object.defineProperty(exports, "wrapAsyncGenerator", {
enumerable: true,
get: function() {
return _wrapAsyncGenerator.default;
}
});
Object.defineProperty(exports, "wrapNativeSuper", {
enumerable: true,
get: function() {
return _wrapNativeSuper.default;
}
});
Object.defineProperty(exports, "createSuper", {
enumerable: true,
get: function() {
return _createSuper.default;
}
});
Object.defineProperty(exports, "isNativeReflectConstruct", {
enumerable: true,
get: function() {
return _isNativeReflectConstruct.default;
}
});
var _applyDecoratedDescriptor = _interopRequireDefault2(require("./_apply_decorated_descriptor"));
var _arrayWithHoles = _interopRequireDefault2(require("./_array_with_holes"));
var _arrayWithoutHoles = _interopRequireDefault2(require("./_array_without_holes"));
var _assertThisInitialized = _interopRequireDefault2(require("./_assert_this_initialized"));
var _asyncGenerator = _interopRequireDefault2(require("./_async_generator"));
var _asyncGeneratorDelegate = _interopRequireDefault2(require("./_async_generator_delegate"));
var _asyncIterator = _interopRequireDefault2(require("./_async_iterator"));
var _asyncToGenerator = _interopRequireDefault2(require("./_async_to_generator"));
var _awaitAsyncGenerator = _interopRequireDefault2(require("./_await_async_generator"));
var _awaitValue = _interopRequireDefault2(require("./_await_value"));
var _classCallCheck = _interopRequireDefault2(require("./_class_call_check"));
var _classNameTdzError = _interopRequireDefault2(require("./_class_name_tdz_error"));
var _classPrivateFieldGet = _interopRequireDefault2(require("./_class_private_field_get"));
var _classPrivateFieldLooseBase = _interopRequireDefault2(require("./_class_private_field_loose_base"));
var _classPrivateFieldSet = _interopRequireDefault2(require("./_class_private_field_set"));
var _classPrivateMethodGet = _interopRequireDefault2(require("./_class_private_method_get"));
var _classPrivateMethodSet = _interopRequireDefault2(require("./_class_private_method_set"));
var _classStaticPrivateFieldSpecGet = _interopRequireDefault2(require("./_class_static_private_field_spec_get"));
var _classStaticPrivateFieldSpecSet = _interopRequireDefault2(require("./_class_static_private_field_spec_set"));
var _construct = _interopRequireDefault2(require("./_construct"));
var _createClass = _interopRequireDefault2(require("./_create_class"));
var _decorate = _interopRequireDefault2(require("./_decorate"));
var _defaults = _interopRequireDefault2(require("./_defaults"));
var _defineEnumerableProperties = _interopRequireDefault2(require("./_define_enumerable_properties"));
var _defineProperty = _interopRequireDefault2(require("./_define_property"));
var _extends = _interopRequireDefault2(require("./_extends"));
var _get = _interopRequireDefault2(require("./_get"));
var _getPrototypeOf = _interopRequireDefault2(require("./_get_prototype_of"));
var _inherits = _interopRequireDefault2(require("./_inherits"));
var _inheritsLoose = _interopRequireDefault2(require("./_inherits_loose"));
var _initializerDefineProperty = _interopRequireDefault2(require("./_initializer_define_property"));
var _initializerWarningHelper = _interopRequireDefault2(require("./_initializer_warning_helper"));
var _instanceof = _interopRequireDefault2(require("./_instanceof"));
var _interopRequireDefault1 = _interopRequireDefault2(require("./_interop_require_default"));
var _interopRequireWildcard = _interopRequireDefault2(require("./_interop_require_wildcard"));
var _isNativeFunction = _interopRequireDefault2(require("./_is_native_function"));
var _iterableToArray = _interopRequireDefault2(require("./_iterable_to_array"));
var _iterableToArrayLimit = _interopRequireDefault2(require("./_iterable_to_array_limit"));
var _iterableToArrayLimitLoose = _interopRequireDefault2(require("./_iterable_to_array_limit_loose"));
var _jsx = _interopRequireDefault2(require("./_jsx"));
var _newArrowCheck = _interopRequireDefault2(require("./_new_arrow_check"));
var _nonIterableRest = _interopRequireDefault2(require("./_non_iterable_rest"));
var _nonIterableSpread = _interopRequireDefault2(require("./_non_iterable_spread"));
var _objectSpread = _interopRequireDefault2(require("./_object_spread"));
var _objectWithoutProperties = _interopRequireDefault2(require("./_object_without_properties"));
var _objectWithoutPropertiesLoose = _interopRequireDefault2(require("./_object_without_properties_loose"));
var _possibleConstructorReturn = _interopRequireDefault2(require("./_possible_constructor_return"));
var _readOnlyError = _interopRequireDefault2(require("./_read_only_error"));
var _set = _interopRequireDefault2(require("./_set"));
var _setPrototypeOf = _interopRequireDefault2(require("./_set_prototype_of"));
var _skipFirstGeneratorNext = _interopRequireDefault2(require("./_skip_first_generator_next"));
var _slicedToArray = _interopRequireDefault2(require("./_sliced_to_array"));
var _slicedToArrayLoose = _interopRequireDefault2(require("./_sliced_to_array_loose"));
var _superPropBase = _interopRequireDefault2(require("./_super_prop_base"));
var _taggedTemplateLiteral = _interopRequireDefault2(require("./_tagged_template_literal"));
var _taggedTemplateLiteralLoose = _interopRequireDefault2(require("./_tagged_template_literal_loose"));
var _throw = _interopRequireDefault2(require("./_throw"));
var _toArray = _interopRequireDefault2(require("./_to_array"));
var _toConsumableArray = _interopRequireDefault2(require("./_to_consumable_array"));
var _toPrimitive = _interopRequireDefault2(require("./_to_primitive"));
var _toPropertyKey = _interopRequireDefault2(require("./_to_property_key"));
var _typeOf = _interopRequireDefault2(require("./_type_of"));
var _wrapAsyncGenerator = _interopRequireDefault2(require("./_wrap_async_generator"));
var _wrapNativeSuper = _interopRequireDefault2(require("./_wrap_native_super"));
var _createSuper = _interopRequireDefault2(require("./_create_super"));
var _isNativeReflectConstruct = _interopRequireDefault2(require("./_is_native_reflect_construct"));
function _interopRequireDefault2(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
export { default as applyDecoratedDescriptor } from './_apply_decorated_descriptor';
export { default as arrayLikeToArray } from './_array_like_to_array';
export { default as arrayWithHoles } from './_array_with_holes';
export { default as arrayWithoutHoles } from './_array_without_holes';
export { default as assertThisInitialized } from './_assert_this_initialized';
export { default as asyncGenerator } from './_async_generator';
export { default as asyncGeneratorDelegate } from './_async_generator_delegate';
export { default as asyncIterator } from './_async_iterator';
export { default as asyncToGenerator } from './_async_to_generator';
export { default as awaitAsyncGenerator } from './_await_async_generator';
export { default as awaitValue } from './_await_value';
export { default as classCallCheck } from './_class_call_check';
export { default as classNameTDZError } from './_class_name_tdz_error';
export { default as classPrivateFieldGet } from './_class_private_field_get';
export { default as classPrivateFieldLooseBase } from './_class_private_field_loose_base';
export { default as classPrivateFieldSet } from './_class_private_field_set';
export { default as classPrivateMethodGet } from './_class_private_method_get';
export { default as classPrivateMethodSet } from './_class_private_method_set';
export { default as classStaticPrivateFieldSpecGet } from './_class_static_private_field_spec_get';
export { default as classStaticPrivateFieldSpecSet } from './_class_static_private_field_spec_set';
export { default as construct } from './_construct';
export { default as createClass } from './_create_class';
export { default as createSuper } from './_create_super';
export { default as decorate } from './_decorate';
export { default as defaults } from './_defaults';
export { default as defineEnumerableProperties } from './_define_enumerable_properties';
export { default as defineProperty } from './_define_property';
export { default as extends } from './_extends';
export { default as get } from './_get';
export { default as getPrototypeOf } from './_get_prototype_of';
export { default as inherits } from './_inherits';
export { default as inheritsLoose } from './_inherits_loose';
export { default as initializerDefineProperty } from './_initializer_define_property';
export { default as initializerWarningHelper } from './_initializer_warning_helper';
export { default as _instanceof } from './_instanceof';
export { default as interopRequireDefault } from './_interop_require_default';
export { default as interopRequireWildcard } from './_interop_require_wildcard';
export { default as isNativeFunction } from './_is_native_function';
export { default as isNativeReflectConstruct } from './_is_native_reflect_construct';
export { default as iterableToArray } from './_iterable_to_array';
export { default as iterableToArrayLimit } from './_iterable_to_array_limit';
export { default as iterableToArrayLimitLoose } from './_iterable_to_array_limit_loose';
export { default as jsx } from './_jsx';
export { default as newArrowCheck } from './_new_arrow_check';
export { default as nonIterableRest } from './_non_iterable_rest';
export { default as nonIterableSpread } from './_non_iterable_spread';
export { default as objectSpread } from './_object_spread';
export { default as objectWithoutProperties } from './_object_without_properties';
export { default as objectWithoutPropertiesLoose } from './_object_without_properties_loose';
export { default as possibleConstructorReturn } from './_possible_constructor_return';
export { default as readOnlyError } from './_read_only_error';
export { default as set } from './_set';
export { default as setPrototypeOf } from './_set_prototype_of';
export { default as skipFirstGeneratorNext } from './_skip_first_generator_next';
export { default as slicedToArray } from './_sliced_to_array';
export { default as slicedToArrayLoose } from './_sliced_to_array_loose';
export { default as superPropBase } from './_super_prop_base';
export { default as taggedTemplateLiteral } from './_tagged_template_literal';
export { default as taggedTemplateLiteralLoose } from './_tagged_template_literal_loose';
export { default as _throw } from './_throw';
export { default as toArray } from './_to_array';
export { default as toConsumableArray } from './_to_consumable_array';
export { default as toPrimitive } from './_to_primitive';
export { default as toPropertyKey } from './_to_property_key';
export { default as typeOf } from './_type_of';
export { default as unsupportedIterableToArray } from './_unsupported_iterable_to_array';
export { default as wrapAsyncGenerator } from './_wrap_async_generator';
export { default as wrapNativeSuper } from './_wrap_native_super';
{
"name": "@swc/helpers",
"version": "0.2.14",
"description": "",
"esnext": "src/index.js",
"module": "src/index.js",
"main": "lib/index.js",
"sideEffects": false,
"scripts": {
"build": "swc -V && swc src -d lib",
"prepublishOnly": "swc src -d lib",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/helpers.git"
},
"keywords": [
"swc",
"helpers"
],
"author": "강동윤 <kdy1@outlook.kr>",
"license": "MIT",
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
},
"homepage": "https://github.com/swc-project/helpers#readme",
"devDependencies": {
"@swc/cli": "^0.1.36",
"@swc/core": "^1.2.58"
}
"name": "@swc/helpers",
"version": "0.3.0",
"description": "External helpers for the swc project.",
"esnext": "src/index.js",
"module": "src/index.js",
"main": "lib/index.js",
"sideEffects": false,
"scripts": {
"build": "swc -V && swc src -d lib",
"prepublishOnly": "swc src -d lib"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"keywords": [
"swc",
"helpers"
],
"author": "강동윤 <kdy1997.dev@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
},
"homepage": "https://swc.rs",
"devDependencies": {
"@swc/cli": "^0.1.36",
"@swc/core": "^1.2.58"
}
}

@@ -0,9 +1,5 @@

import _arrayLikeToArray from './_array_like_to_array';
export default function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
arr2[i] = arr[i];
}
return arr2;
}
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
export default function _iterableToArrayLimitLoose(arr, i) {
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
if (_i == null) return;
var _arr = [];
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
_arr.push(_step.value);
if (i && _arr.length === i) break;
}
return _arr;
}
export default function _iterableToArrayLimit(arr, i) {
var _i = arr == null ? null : (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
if (_i == null) return;
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
var _s, _e;
try {
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;

@@ -23,4 +24,3 @@ }

}
return _arr;
}
export default function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
export default function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
export default function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
import arrayWithHoles from './_array_with_holes';
import iterableToArrayLimitLoose from './_iterable_to_array_limit_loose';
import nonIterableRest from './_non_iterable_rest';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _slicedToArrayLoose(arr, i) {
return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || nonIterableRest();
return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
}
import arrayWithHoles from './_array_with_holes';
import iterableToArrayLimit from './_iterable_to_array';
import nonIterableRest from './_non_iterable_rest';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _slicedToArray(arr, i) {
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();
}
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
}
import arrayWithHoles from './_array_with_holes';
import iterableToArray from './_iterable_to_array';
import nonIterableRest from './_non_iterable_rest';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _toArray(arr) {
return arrayWithHoles(arr) || iterableToArray(arr) || nonIterableRest();
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr, i) || nonIterableRest();
}
import arrayWithoutHoles from './_array_without_holes';
import iterableToArray from './_iterable_to_array';
import nonIterableSpread from './_non_iterable_spread';
import unsupportedIterableToArray from './_unsupported_iterable_to_array';
export default function _toConsumableArray(arr) {
return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
}
export { default as applyDecoratedDescriptor } from './_apply_decorated_descriptor';
export { default as arrayLikeToArray } from './_array_like_to_array';
export { default as arrayWithHoles } from './_array_with_holes';

@@ -22,2 +23,3 @@ export { default as arrayWithoutHoles } from './_array_without_holes';

export { default as createClass } from './_create_class';
export { default as createSuper } from './_create_super';
export { default as decorate } from './_decorate';

@@ -38,2 +40,3 @@ export { default as defaults } from './_defaults';

export { default as isNativeFunction } from './_is_native_function';
export { default as isNativeReflectConstruct } from './_is_native_reflect_construct';
export { default as iterableToArray } from './_iterable_to_array';

@@ -65,5 +68,4 @@ export { default as iterableToArrayLimit } from './_iterable_to_array_limit';

export { default as typeOf } from './_type_of';
export { default as unsupportedIterableToArray } from './_unsupported_iterable_to_array';
export { default as wrapAsyncGenerator } from './_wrap_async_generator';
export { default as wrapNativeSuper } from './_wrap_native_super';
export { default as createSuper } from './_create_super';
export { default as isNativeReflectConstruct } from './_is_native_reflect_construct';
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