@babel/runtime-corejs2
Advanced tools
Comparing version 7.16.3 to 7.16.5
@@ -37,3 +37,2 @@ var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys"); | ||
module.exports = _applyDecoratedDescriptor; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -11,3 +11,2 @@ function _arrayLikeToArray(arr, len) { | ||
module.exports = _arrayLikeToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ var _Array$isArray = require("@babel/runtime-corejs2/core-js/array/is-array"); | ||
module.exports = _arrayWithHoles; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ var _Array$isArray = require("@babel/runtime-corejs2/core-js/array/is-array"); | ||
module.exports = _arrayWithoutHoles; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ function _assertThisInitialized(self) { | ||
module.exports = _assertThisInitialized; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -103,3 +103,2 @@ var _Promise = require("@babel/runtime-corejs2/core-js/promise"); | ||
module.exports = AsyncGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -62,3 +62,2 @@ var _Promise = require("@babel/runtime-corejs2/core-js/promise"); | ||
module.exports = _asyncGeneratorDelegate; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,20 +13,8 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
if (typeof _Symbol !== "undefined") { | ||
async = _Symbol.asyncIterator; | ||
sync = _Symbol$iterator; | ||
for ("undefined" != typeof _Symbol && (async = _Symbol.asyncIterator, sync = _Symbol$iterator); retry--;) { | ||
if (async && null != (method = iterable[async])) return method.call(iterable); | ||
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable)); | ||
async = "@@asyncIterator", sync = "@@iterator"; | ||
} | ||
while (retry--) { | ||
if (async && (method = iterable[async]) != null) { | ||
return method.call(iterable); | ||
} | ||
if (sync && (method = iterable[sync]) != null) { | ||
return new AsyncFromSyncIterator(method.call(iterable)); | ||
} | ||
async = "@@asyncIterator"; | ||
sync = "@@iterator"; | ||
} | ||
throw new TypeError("Object is not async iterable"); | ||
@@ -36,8 +24,16 @@ } | ||
function AsyncFromSyncIterator(s) { | ||
AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { | ||
this.s = s; | ||
this.n = s.next; | ||
}; | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) return _Promise.reject(new TypeError(r + " is not an object.")); | ||
var done = r.done; | ||
return _Promise.resolve(r.value).then(function (value) { | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
}); | ||
} | ||
AsyncFromSyncIterator.prototype = { | ||
return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { | ||
this.s = s, this.n = s.next; | ||
}, AsyncFromSyncIterator.prototype = { | ||
s: null, | ||
@@ -50,37 +46,14 @@ n: null, | ||
var ret = this.s["return"]; | ||
if (ret === undefined) { | ||
return _Promise.resolve({ | ||
value: value, | ||
done: true | ||
}); | ||
} | ||
return AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); | ||
return void 0 === ret ? _Promise.resolve({ | ||
value: value, | ||
done: !0 | ||
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); | ||
}, | ||
"throw": function _throw(value) { | ||
var thr = this.s["return"]; | ||
if (thr === undefined) return _Promise.reject(value); | ||
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); | ||
return void 0 === thr ? _Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); | ||
} | ||
}; | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) { | ||
return _Promise.reject(new TypeError(r + " is not an object.")); | ||
} | ||
var done = r.done; | ||
return _Promise.resolve(r.value).then(function (value) { | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
}); | ||
} | ||
return new AsyncFromSyncIterator(s); | ||
}, new AsyncFromSyncIterator(s); | ||
} | ||
module.exports = _asyncIterator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -39,3 +39,2 @@ var _Promise = require("@babel/runtime-corejs2/core-js/promise"); | ||
module.exports = _asyncToGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ var AwaitValue = require("./AwaitValue.js"); | ||
module.exports = _awaitAsyncGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _AwaitValue(value) { | ||
module.exports = _AwaitValue; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ function _checkPrivateRedeclaration(obj, privateCollection) { | ||
module.exports = _checkPrivateRedeclaration; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -22,3 +22,2 @@ function _classApplyDescriptorDestructureSet(receiver, descriptor) { | ||
module.exports = _classApplyDescriptorDestructureSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ function _classApplyDescriptorGet(receiver, descriptor) { | ||
module.exports = _classApplyDescriptorGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ function _classApplyDescriptorSet(receiver, descriptor, value) { | ||
module.exports = _classApplyDescriptorSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ function _classCallCheck(instance, Constructor) { | ||
module.exports = _classCallCheck; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ function _classCheckPrivateStaticAccess(receiver, classConstructor) { | ||
module.exports = _classCheckPrivateStaticAccess; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { | ||
module.exports = _classCheckPrivateStaticFieldDescriptor; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ function _classExtractFieldDescriptor(receiver, privateMap, action) { | ||
module.exports = _classExtractFieldDescriptor; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _classNameTDZError(name) { | ||
module.exports = _classNameTDZError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -10,3 +10,2 @@ var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); | ||
module.exports = _classPrivateFieldDestructureSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -10,3 +10,2 @@ var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); | ||
module.exports = _classPrivateFieldGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,3 +8,2 @@ var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
module.exports = _classPrivateFieldInitSpec; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ function _classPrivateFieldBase(receiver, privateKey) { | ||
module.exports = _classPrivateFieldBase; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ var id = 0; | ||
module.exports = _classPrivateFieldKey; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -11,3 +11,2 @@ var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); | ||
module.exports = _classPrivateFieldSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ function _classPrivateMethodGet(receiver, privateSet, fn) { | ||
module.exports = _classPrivateMethodGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,3 +8,2 @@ var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
module.exports = _classPrivateMethodInitSpec; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _classPrivateMethodSet() { | ||
module.exports = _classPrivateMethodSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); | ||
module.exports = _classStaticPrivateFieldDestructureSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); | ||
module.exports = _classStaticPrivateFieldSpecGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -14,3 +14,2 @@ var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); | ||
module.exports = _classStaticPrivateFieldSpecSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,3 +8,2 @@ var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); | ||
module.exports = _classStaticPrivateMethodGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _classStaticPrivateMethodSet() { | ||
module.exports = _classStaticPrivateMethodSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,4 +9,3 @@ var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct"); | ||
if (isNativeReflectConstruct()) { | ||
module.exports = _construct = _Reflect$construct; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _construct = _Reflect$construct, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
} else { | ||
@@ -20,5 +19,3 @@ module.exports = _construct = function _construct(Parent, args, Class) { | ||
return instance; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
} | ||
@@ -29,3 +26,2 @@ | ||
module.exports = _construct; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -17,6 +17,10 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
_Object$defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} | ||
module.exports = _createClass; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -66,3 +66,2 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
module.exports = _createForOfIteratorHelper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -30,3 +30,2 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
module.exports = _createForOfIteratorHelperLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -26,3 +26,2 @@ var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct"); | ||
module.exports = _createSuper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -410,3 +410,2 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); | ||
module.exports = _decorate; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -23,3 +23,2 @@ var _Object$getOwnPropertyNames = require("@babel/runtime-corejs2/core-js/object/get-own-property-names"); | ||
module.exports = _defaults; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -30,3 +30,2 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); | ||
module.exports = _defineEnumerableProperties; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -18,3 +18,2 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); | ||
module.exports = _defineProperty; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -10,20 +10,8 @@ import _Symbol from "@babel/runtime-corejs2/core-js/symbol"; | ||
if (typeof _Symbol !== "undefined") { | ||
async = _Symbol.asyncIterator; | ||
sync = _Symbol$iterator; | ||
for ("undefined" != typeof _Symbol && (async = _Symbol.asyncIterator, sync = _Symbol$iterator); retry--;) { | ||
if (async && null != (method = iterable[async])) return method.call(iterable); | ||
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable)); | ||
async = "@@asyncIterator", sync = "@@iterator"; | ||
} | ||
while (retry--) { | ||
if (async && (method = iterable[async]) != null) { | ||
return method.call(iterable); | ||
} | ||
if (sync && (method = iterable[sync]) != null) { | ||
return new AsyncFromSyncIterator(method.call(iterable)); | ||
} | ||
async = "@@asyncIterator"; | ||
sync = "@@iterator"; | ||
} | ||
throw new TypeError("Object is not async iterable"); | ||
@@ -33,8 +21,16 @@ } | ||
function AsyncFromSyncIterator(s) { | ||
AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { | ||
this.s = s; | ||
this.n = s.next; | ||
}; | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) return _Promise.reject(new TypeError(r + " is not an object.")); | ||
var done = r.done; | ||
return _Promise.resolve(r.value).then(function (value) { | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
}); | ||
} | ||
AsyncFromSyncIterator.prototype = { | ||
return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { | ||
this.s = s, this.n = s.next; | ||
}, AsyncFromSyncIterator.prototype = { | ||
s: null, | ||
@@ -47,34 +43,12 @@ n: null, | ||
var ret = this.s["return"]; | ||
if (ret === undefined) { | ||
return _Promise.resolve({ | ||
value: value, | ||
done: true | ||
}); | ||
} | ||
return AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); | ||
return void 0 === ret ? _Promise.resolve({ | ||
value: value, | ||
done: !0 | ||
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); | ||
}, | ||
"throw": function _throw(value) { | ||
var thr = this.s["return"]; | ||
if (thr === undefined) return _Promise.reject(value); | ||
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); | ||
return void 0 === thr ? _Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); | ||
} | ||
}; | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) { | ||
return _Promise.reject(new TypeError(r + " is not an object.")); | ||
} | ||
var done = r.done; | ||
return _Promise.resolve(r.value).then(function (value) { | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
}); | ||
} | ||
return new AsyncFromSyncIterator(s); | ||
}, new AsyncFromSyncIterator(s); | ||
} |
@@ -17,3 +17,8 @@ import _Object$defineProperty from "@babel/runtime-corejs2/core-js/object/define-property"; | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
_Object$defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} |
@@ -0,1 +1,2 @@ | ||
import _Object$defineProperty from "@babel/runtime-corejs2/core-js/object/define-property"; | ||
import _Object$create from "@babel/runtime-corejs2/core-js/object/create"; | ||
@@ -8,10 +9,14 @@ import setPrototypeOf from "./setPrototypeOf.js"; | ||
subClass.prototype = _Object$create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
writable: true, | ||
configurable: true | ||
} | ||
_Object$defineProperty(subClass, "prototype", { | ||
value: _Object$create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
writable: true, | ||
configurable: true | ||
} | ||
}), | ||
writable: false | ||
}); | ||
if (superClass) setPrototypeOf(subClass, superClass); | ||
} |
@@ -5,21 +5,9 @@ import _Symbol from "@babel/runtime-corejs2/core-js/symbol"; | ||
export default function _createRawReactElement(type, props, key, children) { | ||
if (!REACT_ELEMENT_TYPE) { | ||
REACT_ELEMENT_TYPE = typeof _Symbol === "function" && _Symbol$for && _Symbol$for("react.element") || 0xeac7; | ||
} | ||
var defaultProps = type && type.defaultProps; | ||
var childrenLength = arguments.length - 3; | ||
if (!props && childrenLength !== 0) { | ||
props = { | ||
children: void 0 | ||
}; | ||
} | ||
if (childrenLength === 1) { | ||
props.children = children; | ||
} else if (childrenLength > 1) { | ||
var childArray = new Array(childrenLength); | ||
for (var i = 0; i < childrenLength; i++) { | ||
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof _Symbol && _Symbol$for && _Symbol$for("react.element") || 60103); | ||
var defaultProps = type && type.defaultProps, | ||
childrenLength = arguments.length - 3; | ||
if (props || 0 === childrenLength || (props = { | ||
children: void 0 | ||
}), 1 === childrenLength) props.children = children;else if (childrenLength > 1) { | ||
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) { | ||
childArray[i] = arguments[i + 3]; | ||
@@ -30,17 +18,9 @@ } | ||
} | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
if (props && defaultProps) for (var propName in defaultProps) { | ||
void 0 === props[propName] && (props[propName] = defaultProps[propName]); | ||
} else props || (props = defaultProps || {}); | ||
return { | ||
$$typeof: REACT_ELEMENT_TYPE, | ||
type: type, | ||
key: key === undefined ? null : "" + key, | ||
key: void 0 === key ? null : "" + key, | ||
ref: null, | ||
@@ -47,0 +27,0 @@ props: props, |
@@ -15,9 +15,5 @@ import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys"; | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
enumerableOnly && (symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
})), keys.push.apply(keys, symbols); | ||
} | ||
@@ -30,15 +26,8 @@ | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} else if (_Object$getOwnPropertyDescriptors) { | ||
_Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
_Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
var source = null != arguments[i] ? arguments[i] : {}; | ||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | ||
_Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
@@ -45,0 +34,0 @@ |
@@ -6,13 +6,7 @@ import _Symbol from "@babel/runtime-corejs2/core-js/symbol"; | ||
if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { | ||
_typeof = function _typeof(obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function _typeof(obj) { | ||
return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
} | ||
return _typeof(obj); | ||
return _typeof = "function" == typeof _Symbol && "symbol" == typeof _Symbol$iterator ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && "function" == typeof _Symbol && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | ||
}, _typeof(obj); | ||
} |
import _typeof from "@babel/runtime-corejs2/helpers/typeof"; | ||
import _WeakMap from "@babel/runtime-corejs2/core-js/weak-map"; | ||
import _Symbol$replace from "@babel/runtime-corejs2/core-js/symbol/replace"; | ||
import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys"; | ||
import _Object$create from "@babel/runtime-corejs2/core-js/object/create"; | ||
import _Symbol$replace from "@babel/runtime-corejs2/core-js/symbol/replace"; | ||
import setPrototypeOf from "./setPrototypeOf.js"; | ||
@@ -10,28 +10,28 @@ import inherits from "./inherits.js"; | ||
_wrapRegExp = function _wrapRegExp(re, groups) { | ||
return new BabelRegExp(re, undefined, groups); | ||
return new BabelRegExp(re, void 0, groups); | ||
}; | ||
var _super = RegExp.prototype; | ||
var _super = RegExp.prototype, | ||
_groups = new _WeakMap(); | ||
var _groups = new _WeakMap(); | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = new RegExp(re, flags); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
return _groups.set(_this, groups || _groups.get(re)), setPrototypeOf(_this, BabelRegExp.prototype); | ||
} | ||
return setPrototypeOf(_this, BabelRegExp.prototype); | ||
function buildGroups(result, re) { | ||
var g = _groups.get(re); | ||
return _Object$keys(g).reduce(function (groups, name) { | ||
return groups[name] = result[g[name]], groups; | ||
}, _Object$create(null)); | ||
} | ||
inherits(BabelRegExp, RegExp); | ||
BabelRegExp.prototype.exec = function (str) { | ||
return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { | ||
var result = _super.exec.call(this, str); | ||
if (result) result.groups = buildGroups(result, this); | ||
return result; | ||
}; | ||
BabelRegExp.prototype[_Symbol$replace] = function (str, substitution) { | ||
if (typeof substitution === "string") { | ||
return result && (result.groups = buildGroups(result, this)), result; | ||
}, BabelRegExp.prototype[_Symbol$replace] = function (str, substitution) { | ||
if ("string" == typeof substitution) { | ||
var groups = _groups.get(this); | ||
@@ -42,3 +42,5 @@ | ||
})); | ||
} else if (typeof substitution === "function") { | ||
} | ||
if ("function" == typeof substitution) { | ||
var _this = this; | ||
@@ -48,25 +50,8 @@ | ||
var args = arguments; | ||
if (_typeof(args[args.length - 1]) !== "object") { | ||
args = [].slice.call(args); | ||
args.push(buildGroups(args, _this)); | ||
} | ||
return substitution.apply(this, args); | ||
return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); | ||
}); | ||
} else { | ||
return _super[_Symbol$replace].call(this, str, substitution); | ||
} | ||
}; | ||
function buildGroups(result, re) { | ||
var g = _groups.get(re); | ||
return _Object$keys(g).reduce(function (groups, name) { | ||
groups[name] = result[g[name]]; | ||
return groups; | ||
}, _Object$create(null)); | ||
} | ||
return _wrapRegExp.apply(this, arguments); | ||
return _super[_Symbol$replace].call(this, str, substitution); | ||
}, _wrapRegExp.apply(this, arguments); | ||
} |
@@ -16,9 +16,6 @@ var _Object$assign = require("@babel/runtime-corejs2/core-js/object/assign"); | ||
return target; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _extends.apply(this, arguments); | ||
} | ||
module.exports = _extends; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,4 +9,3 @@ var _Reflect$get = require("@babel/runtime-corejs2/core-js/reflect/get"); | ||
if (typeof Reflect !== "undefined" && _Reflect$get) { | ||
module.exports = _get = _Reflect$get; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _get = _Reflect$get, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
} else { | ||
@@ -24,5 +23,3 @@ module.exports = _get = function _get(target, property, receiver) { | ||
return desc.value; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
} | ||
@@ -33,3 +30,2 @@ | ||
module.exports = _get; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,8 +8,6 @@ var _Object$setPrototypeOf = require("@babel/runtime-corejs2/core-js/object/set-prototype-of"); | ||
return o.__proto__ || _Object$getPrototypeOf(o); | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _getPrototypeOf(o); | ||
} | ||
module.exports = _getPrototypeOf; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -0,1 +1,3 @@ | ||
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); | ||
var _Object$create = require("@babel/runtime-corejs2/core-js/object/create"); | ||
@@ -10,13 +12,16 @@ | ||
subClass.prototype = _Object$create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
writable: true, | ||
configurable: true | ||
} | ||
_Object$defineProperty(subClass, "prototype", { | ||
value: _Object$create(superClass && superClass.prototype, { | ||
constructor: { | ||
value: subClass, | ||
writable: true, | ||
configurable: true | ||
} | ||
}), | ||
writable: false | ||
}); | ||
if (superClass) setPrototypeOf(subClass, superClass); | ||
} | ||
module.exports = _inherits; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -11,3 +11,2 @@ var _Object$create = require("@babel/runtime-corejs2/core-js/object/create"); | ||
module.exports = _inheritsLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -14,3 +14,2 @@ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); | ||
module.exports = _initializerDefineProperty; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _initializerDefineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _initializerWarningHelper(descriptor, context) { | ||
module.exports = _initializerWarningHelper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _initializerWarningHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
module.exports = _instanceof; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _instanceof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ function _interopRequireDefault(obj) { | ||
module.exports = _interopRequireDefault; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -59,3 +59,2 @@ var _typeof = require("@babel/runtime-corejs2/helpers/typeof")["default"]; | ||
module.exports = _interopRequireWildcard; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _isNativeFunction(fn) { | ||
module.exports = _isNativeFunction; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -16,3 +16,2 @@ var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct"); | ||
module.exports = _isNativeReflectConstruct; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -11,3 +11,2 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
module.exports = _iterableToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -35,3 +35,2 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
module.exports = _iterableToArrayLimit; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -20,3 +20,2 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
module.exports = _iterableToArrayLimitLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _iterableToArrayLimitLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,21 +8,9 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
function _createRawReactElement(type, props, key, children) { | ||
if (!REACT_ELEMENT_TYPE) { | ||
REACT_ELEMENT_TYPE = typeof _Symbol === "function" && _Symbol$for && _Symbol$for("react.element") || 0xeac7; | ||
} | ||
var defaultProps = type && type.defaultProps; | ||
var childrenLength = arguments.length - 3; | ||
if (!props && childrenLength !== 0) { | ||
props = { | ||
children: void 0 | ||
}; | ||
} | ||
if (childrenLength === 1) { | ||
props.children = children; | ||
} else if (childrenLength > 1) { | ||
var childArray = new Array(childrenLength); | ||
for (var i = 0; i < childrenLength; i++) { | ||
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof _Symbol && _Symbol$for && _Symbol$for("react.element") || 60103); | ||
var defaultProps = type && type.defaultProps, | ||
childrenLength = arguments.length - 3; | ||
if (props || 0 === childrenLength || (props = { | ||
children: void 0 | ||
}), 1 === childrenLength) props.children = children;else if (childrenLength > 1) { | ||
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) { | ||
childArray[i] = arguments[i + 3]; | ||
@@ -33,17 +21,9 @@ } | ||
} | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
if (props && defaultProps) for (var propName in defaultProps) { | ||
void 0 === props[propName] && (props[propName] = defaultProps[propName]); | ||
} else props || (props = defaultProps || {}); | ||
return { | ||
$$typeof: REACT_ELEMENT_TYPE, | ||
type: type, | ||
key: key === undefined ? null : "" + key, | ||
key: void 0 === key ? null : "" + key, | ||
ref: null, | ||
@@ -55,3 +35,2 @@ props: props, | ||
module.exports = _createRawReactElement; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -14,3 +14,2 @@ var _Array$isArray = require("@babel/runtime-corejs2/core-js/array/is-array"); | ||
module.exports = _maybeArrayLike; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,3 +7,2 @@ function _newArrowCheck(innerThis, boundThis) { | ||
module.exports = _newArrowCheck; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _nonIterableRest() { | ||
module.exports = _nonIterableRest; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _nonIterableSpread() { | ||
module.exports = _nonIterableSpread; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _objectDestructuringEmpty(obj) { | ||
module.exports = _objectDestructuringEmpty; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -29,3 +29,2 @@ var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys"); | ||
module.exports = _objectSpread; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -21,9 +21,5 @@ var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys"); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
enumerableOnly && (symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
})), keys.push.apply(keys, symbols); | ||
} | ||
@@ -36,15 +32,8 @@ | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} else if (_Object$getOwnPropertyDescriptors) { | ||
_Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
_Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
var source = null != arguments[i] ? arguments[i] : {}; | ||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | ||
_Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
@@ -55,3 +44,2 @@ | ||
module.exports = _objectSpread2; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -24,3 +24,2 @@ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols"); | ||
module.exports = _objectWithoutProperties; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -20,3 +20,2 @@ var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys"); | ||
module.exports = _objectWithoutPropertiesLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -15,3 +15,2 @@ var _typeof = require("@babel/runtime-corejs2/helpers/typeof")["default"]; | ||
module.exports = _possibleConstructorReturn; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _readOnlyError(name) { | ||
module.exports = _readOnlyError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -61,3 +61,2 @@ var _Reflect$set = require("@babel/runtime-corejs2/core-js/reflect/set"); | ||
module.exports = _set; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -7,9 +7,6 @@ var _Object$setPrototypeOf = require("@babel/runtime-corejs2/core-js/object/set-prototype-of"); | ||
return o; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _setPrototypeOf(o, p); | ||
} | ||
module.exports = _setPrototypeOf; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ function _skipFirstGeneratorNext(fn) { | ||
module.exports = _skipFirstGeneratorNext; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ var arrayWithHoles = require("./arrayWithHoles.js"); | ||
module.exports = _slicedToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ var arrayWithHoles = require("./arrayWithHoles.js"); | ||
module.exports = _slicedToArrayLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _slicedToArrayLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -12,3 +12,2 @@ var getPrototypeOf = require("./getPrototypeOf.js"); | ||
module.exports = _superPropBase; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -17,3 +17,2 @@ var _Object$freeze = require("@babel/runtime-corejs2/core-js/object/freeze"); | ||
module.exports = _taggedTemplateLiteral; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -10,3 +10,2 @@ function _taggedTemplateLiteralLoose(strings, raw) { | ||
module.exports = _taggedTemplateLiteralLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _tdzError(name) { | ||
module.exports = _tdzError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ var temporalUndefined = require("./temporalUndefined.js"); | ||
module.exports = _temporalRef; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _temporalUndefined() {} | ||
module.exports = _temporalUndefined; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ var arrayWithHoles = require("./arrayWithHoles.js"); | ||
module.exports = _toArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -13,3 +13,2 @@ var arrayWithoutHoles = require("./arrayWithoutHoles.js"); | ||
module.exports = _toConsumableArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -18,3 +18,2 @@ var _Symbol$toPrimitive = require("@babel/runtime-corejs2/core-js/symbol/to-primitive"); | ||
module.exports = _toPrimitive; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -10,3 +10,2 @@ var _typeof = require("@babel/runtime-corejs2/helpers/typeof")["default"]; | ||
module.exports = _toPropertyKey; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,20 +8,9 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { | ||
module.exports = _typeof = function _typeof(obj) { | ||
return typeof obj; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
} else { | ||
module.exports = _typeof = function _typeof(obj) { | ||
return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
} | ||
return _typeof(obj); | ||
return (module.exports = _typeof = "function" == typeof _Symbol && "symbol" == typeof _Symbol$iterator ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && "function" == typeof _Symbol && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | ||
} | ||
module.exports = _typeof; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -14,3 +14,2 @@ var _Array$from = require("@babel/runtime-corejs2/core-js/array/from"); | ||
module.exports = _unsupportedIterableToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ var AsyncGenerator = require("./AsyncGenerator.js"); | ||
module.exports = _wrapAsyncGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -42,9 +42,6 @@ var _Map = require("@babel/runtime-corejs2/core-js/map"); | ||
return setPrototypeOf(Wrapper, Class); | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _wrapNativeSuper(Class); | ||
} | ||
module.exports = _wrapNativeSuper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,4 +5,2 @@ var _typeof = require("@babel/runtime-corejs2/helpers/typeof")["default"]; | ||
var _Symbol$replace = require("@babel/runtime-corejs2/core-js/symbol/replace"); | ||
var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys"); | ||
@@ -12,2 +10,4 @@ | ||
var _Symbol$replace = require("@babel/runtime-corejs2/core-js/symbol/replace"); | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
@@ -19,29 +19,28 @@ | ||
module.exports = _wrapRegExp = function _wrapRegExp(re, groups) { | ||
return new BabelRegExp(re, undefined, groups); | ||
}; | ||
return new BabelRegExp(re, void 0, groups); | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
var _super = RegExp.prototype; | ||
var _super = RegExp.prototype, | ||
_groups = new _WeakMap(); | ||
var _groups = new _WeakMap(); | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = new RegExp(re, flags); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
return _groups.set(_this, groups || _groups.get(re)), setPrototypeOf(_this, BabelRegExp.prototype); | ||
} | ||
return setPrototypeOf(_this, BabelRegExp.prototype); | ||
function buildGroups(result, re) { | ||
var g = _groups.get(re); | ||
return _Object$keys(g).reduce(function (groups, name) { | ||
return groups[name] = result[g[name]], groups; | ||
}, _Object$create(null)); | ||
} | ||
inherits(BabelRegExp, RegExp); | ||
BabelRegExp.prototype.exec = function (str) { | ||
return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { | ||
var result = _super.exec.call(this, str); | ||
if (result) result.groups = buildGroups(result, this); | ||
return result; | ||
}; | ||
BabelRegExp.prototype[_Symbol$replace] = function (str, substitution) { | ||
if (typeof substitution === "string") { | ||
return result && (result.groups = buildGroups(result, this)), result; | ||
}, BabelRegExp.prototype[_Symbol$replace] = function (str, substitution) { | ||
if ("string" == typeof substitution) { | ||
var groups = _groups.get(this); | ||
@@ -52,3 +51,5 @@ | ||
})); | ||
} else if (typeof substitution === "function") { | ||
} | ||
if ("function" == typeof substitution) { | ||
var _this = this; | ||
@@ -58,28 +59,10 @@ | ||
var args = arguments; | ||
if (_typeof(args[args.length - 1]) !== "object") { | ||
args = [].slice.call(args); | ||
args.push(buildGroups(args, _this)); | ||
} | ||
return substitution.apply(this, args); | ||
return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); | ||
}); | ||
} else { | ||
return _super[_Symbol$replace].call(this, str, substitution); | ||
} | ||
}; | ||
function buildGroups(result, re) { | ||
var g = _groups.get(re); | ||
return _Object$keys(g).reduce(function (groups, name) { | ||
groups[name] = result[g[name]]; | ||
return groups; | ||
}, _Object$create(null)); | ||
} | ||
return _wrapRegExp.apply(this, arguments); | ||
return _super[_Symbol$replace].call(this, str, substitution); | ||
}, _wrapRegExp.apply(this, arguments); | ||
} | ||
module.exports = _wrapRegExp; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _writeOnlyError(name) { | ||
module.exports = _writeOnlyError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
{ | ||
"name": "@babel/runtime-corejs2", | ||
"version": "7.16.3", | ||
"version": "7.16.5", | ||
"description": "babel's modular runtime helpers with core-js@2 polyfilling", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -12,3 +12,3 @@ # @babel/runtime-corejs2 | ||
```sh | ||
npm install --save-dev @babel/runtime-corejs2 | ||
npm install --save @babel/runtime-corejs2 | ||
``` | ||
@@ -19,3 +19,3 @@ | ||
```sh | ||
yarn add @babel/runtime-corejs2 --dev | ||
yarn add @babel/runtime-corejs2 | ||
``` |
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
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
174742
2930