@babel/runtime-corejs2
Advanced tools
Comparing version 7.5.5 to 7.6.0
@@ -6,2 +6,6 @@ function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { | ||
if (descriptor.get) { | ||
return descriptor.get.call(receiver); | ||
} | ||
return descriptor.value; | ||
@@ -8,0 +12,0 @@ } |
@@ -6,7 +6,12 @@ function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { | ||
if (!descriptor.writable) { | ||
throw new TypeError("attempted to set read only private field"); | ||
if (descriptor.set) { | ||
descriptor.set.call(receiver, value); | ||
} else { | ||
if (!descriptor.writable) { | ||
throw new TypeError("attempted to set read only private field"); | ||
} | ||
descriptor.value = value; | ||
} | ||
descriptor.value = value; | ||
return value; | ||
@@ -13,0 +18,0 @@ } |
@@ -6,3 +6,7 @@ export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { | ||
if (descriptor.get) { | ||
return descriptor.get.call(receiver); | ||
} | ||
return descriptor.value; | ||
} |
@@ -6,8 +6,13 @@ export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { | ||
if (!descriptor.writable) { | ||
throw new TypeError("attempted to set read only private field"); | ||
if (descriptor.set) { | ||
descriptor.set.call(receiver, value); | ||
} else { | ||
if (!descriptor.writable) { | ||
throw new TypeError("attempted to set read only private field"); | ||
} | ||
descriptor.value = value; | ||
} | ||
descriptor.value = value; | ||
return value; | ||
} |
import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor"; | ||
import _Object$defineProperty from "../../core-js/object/define-property"; | ||
import _WeakMap from "../../core-js/weak-map"; | ||
function _getRequireWildcardCache() { | ||
if (typeof _WeakMap !== "function") return null; | ||
var cache = new _WeakMap(); | ||
_getRequireWildcardCache = function _getRequireWildcardCache() { | ||
return cache; | ||
}; | ||
return cache; | ||
} | ||
export default function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
return obj; | ||
} else { | ||
var newObj = {}; | ||
} | ||
if (obj != null) { | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = _Object$defineProperty && _Object$getOwnPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : {}; | ||
var cache = _getRequireWildcardCache(); | ||
if (desc.get || desc.set) { | ||
_Object$defineProperty(newObj, key, desc); | ||
} else { | ||
newObj[key] = obj[key]; | ||
} | ||
if (cache && cache.has(obj)) { | ||
return cache.get(obj); | ||
} | ||
var newObj = {}; | ||
if (obj != null) { | ||
var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; | ||
if (desc && (desc.get || desc.set)) { | ||
_Object$defineProperty(newObj, key, desc); | ||
} else { | ||
newObj[key] = obj[key]; | ||
} | ||
} | ||
} | ||
} | ||
newObj["default"] = obj; | ||
return newObj; | ||
newObj["default"] = obj; | ||
if (cache) { | ||
cache.set(obj, newObj); | ||
} | ||
return newObj; | ||
} |
import _getIterator from "../../core-js/get-iterator"; | ||
import _isIterable from "../../core-js/is-iterable"; | ||
export default function _iterableToArrayLimit(arr, i) { | ||
if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) { | ||
return; | ||
} | ||
var _arr = []; | ||
@@ -4,0 +9,0 @@ var _n = true; |
import _getIterator from "../../core-js/get-iterator"; | ||
import _isIterable from "../../core-js/is-iterable"; | ||
export default function _iterableToArrayLimitLoose(arr, i) { | ||
if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) { | ||
return; | ||
} | ||
var _arr = []; | ||
@@ -4,0 +9,0 @@ |
@@ -0,1 +1,2 @@ | ||
import _Symbol$for from "../../core-js/symbol/for"; | ||
import _Symbol from "../../core-js/symbol"; | ||
@@ -5,3 +6,3 @@ var REACT_ELEMENT_TYPE; | ||
if (!REACT_ELEMENT_TYPE) { | ||
REACT_ELEMENT_TYPE = typeof _Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7; | ||
REACT_ELEMENT_TYPE = typeof _Symbol === "function" && _Symbol$for && _Symbol$for("react.element") || 0xeac7; | ||
} | ||
@@ -18,12 +19,2 @@ | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
if (childrenLength === 1) { | ||
@@ -41,2 +32,12 @@ props.children = children; | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
return { | ||
@@ -43,0 +44,0 @@ $$typeof: REACT_ELEMENT_TYPE, |
import undef from "./temporalUndefined"; | ||
import err from "./tdz"; | ||
export default function _temporalRef(val, name) { | ||
if (val === undef) { | ||
throw new ReferenceError(name + " is not defined - temporal dead zone"); | ||
} else { | ||
return val; | ||
} | ||
return val === undef ? err(name) : val; | ||
} |
@@ -1,1 +0,1 @@ | ||
export default {}; | ||
export default function _temporalUndefined() {} |
@@ -12,3 +12,3 @@ import _Object$create from "../../core-js/object/create"; | ||
_wrapRegExp = function _wrapRegExp(re, groups) { | ||
return new BabelRegExp(re, groups); | ||
return new BabelRegExp(re, undefined, groups); | ||
}; | ||
@@ -22,6 +22,6 @@ | ||
function BabelRegExp(re, groups) { | ||
var _this = _RegExp.call(this, re); | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = _RegExp.call(this, re, flags); | ||
_groups.set(_this, groups); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
@@ -28,0 +28,0 @@ return _this; |
@@ -5,27 +5,53 @@ var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor"); | ||
var _WeakMap = require("../core-js/weak-map"); | ||
function _getRequireWildcardCache() { | ||
if (typeof _WeakMap !== "function") return null; | ||
var cache = new _WeakMap(); | ||
_getRequireWildcardCache = function _getRequireWildcardCache() { | ||
return cache; | ||
}; | ||
return cache; | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
return obj; | ||
} else { | ||
var newObj = {}; | ||
} | ||
if (obj != null) { | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = _Object$defineProperty && _Object$getOwnPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : {}; | ||
var cache = _getRequireWildcardCache(); | ||
if (desc.get || desc.set) { | ||
_Object$defineProperty(newObj, key, desc); | ||
} else { | ||
newObj[key] = obj[key]; | ||
} | ||
if (cache && cache.has(obj)) { | ||
return cache.get(obj); | ||
} | ||
var newObj = {}; | ||
if (obj != null) { | ||
var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; | ||
if (desc && (desc.get || desc.set)) { | ||
_Object$defineProperty(newObj, key, desc); | ||
} else { | ||
newObj[key] = obj[key]; | ||
} | ||
} | ||
} | ||
} | ||
newObj["default"] = obj; | ||
return newObj; | ||
newObj["default"] = obj; | ||
if (cache) { | ||
cache.set(obj, newObj); | ||
} | ||
return newObj; | ||
} | ||
module.exports = _interopRequireWildcard; |
var _getIterator = require("../core-js/get-iterator"); | ||
var _isIterable = require("../core-js/is-iterable"); | ||
function _iterableToArrayLimit(arr, i) { | ||
if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) { | ||
return; | ||
} | ||
var _arr = []; | ||
@@ -5,0 +11,0 @@ var _n = true; |
var _getIterator = require("../core-js/get-iterator"); | ||
var _isIterable = require("../core-js/is-iterable"); | ||
function _iterableToArrayLimitLoose(arr, i) { | ||
if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) { | ||
return; | ||
} | ||
var _arr = []; | ||
@@ -5,0 +11,0 @@ |
@@ -0,1 +1,3 @@ | ||
var _Symbol$for = require("../core-js/symbol/for"); | ||
var _Symbol = require("../core-js/symbol"); | ||
@@ -7,3 +9,3 @@ | ||
if (!REACT_ELEMENT_TYPE) { | ||
REACT_ELEMENT_TYPE = typeof _Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7; | ||
REACT_ELEMENT_TYPE = typeof _Symbol === "function" && _Symbol$for && _Symbol$for("react.element") || 0xeac7; | ||
} | ||
@@ -20,12 +22,2 @@ | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
if (childrenLength === 1) { | ||
@@ -43,2 +35,12 @@ props.children = children; | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
return { | ||
@@ -45,0 +47,0 @@ $$typeof: REACT_ELEMENT_TYPE, |
var temporalUndefined = require("./temporalUndefined"); | ||
var tdz = require("./tdz"); | ||
function _temporalRef(val, name) { | ||
if (val === temporalUndefined) { | ||
throw new ReferenceError(name + " is not defined - temporal dead zone"); | ||
} else { | ||
return val; | ||
} | ||
return val === temporalUndefined ? tdz(name) : val; | ||
} | ||
module.exports = _temporalRef; |
@@ -1,1 +0,3 @@ | ||
module.exports = {}; | ||
function _temporalUndefined() {} | ||
module.exports = _temporalUndefined; |
@@ -21,3 +21,3 @@ var _Object$create = require("../core-js/object/create"); | ||
module.exports = _wrapRegExp = function _wrapRegExp(re, groups) { | ||
return new BabelRegExp(re, groups); | ||
return new BabelRegExp(re, undefined, groups); | ||
}; | ||
@@ -31,6 +31,6 @@ | ||
function BabelRegExp(re, groups) { | ||
var _this = _RegExp.call(this, re); | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = _RegExp.call(this, re, flags); | ||
_groups.set(_this, groups); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
@@ -37,0 +37,0 @@ return _this; |
{ | ||
"name": "@babel/runtime-corejs2", | ||
"version": "7.5.5", | ||
"version": "7.6.0", | ||
"description": "babel's modular runtime helpers with core-js@2 polyfilling", | ||
@@ -16,5 +16,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/helpers": "^7.5.5" | ||
"@babel/helpers": "^7.6.0" | ||
}, | ||
"gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43" | ||
"gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d" | ||
} |
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
106559
243
2612