@babel/runtime-corejs2
Advanced tools
Comparing version 7.13.17 to 7.14.0
@@ -6,15 +6,13 @@ import _typeof from "@babel/runtime-corejs2/helpers/typeof"; | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof _WeakMap !== "function") return null; | ||
var cache = new _WeakMap(); | ||
_getRequireWildcardCache = function _getRequireWildcardCache() { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new _WeakMap(); | ||
var cacheNodeInterop = new _WeakMap(); | ||
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
export default function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
export default function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -29,3 +27,3 @@ } | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
@@ -40,3 +38,3 @@ if (cache && cache.has(obj)) { | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; | ||
@@ -43,0 +41,0 @@ |
@@ -43,3 +43,3 @@ import _Symbol from "@babel/runtime-corejs2/core-js/symbol"; | ||
type: type, | ||
key: key === undefined ? null : '' + key, | ||
key: key === undefined ? null : "" + key, | ||
ref: null, | ||
@@ -46,0 +46,0 @@ props: props, |
@@ -15,5 +15,8 @@ import _Object$keys from "@babel/runtime-corejs2/core-js/object/keys"; | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
@@ -20,0 +23,0 @@ } |
@@ -6,7 +6,5 @@ import _typeof from "@babel/runtime-corejs2/helpers/typeof"; | ||
import _Object$create from "@babel/runtime-corejs2/core-js/object/create"; | ||
import wrapNativeSuper from "./wrapNativeSuper.js"; | ||
import getPrototypeOf from "./getPrototypeOf.js"; | ||
import possibleConstructorReturn from "./possibleConstructorReturn.js"; | ||
import setPrototypeOf from "./setPrototypeOf.js"; | ||
import inherits from "./inherits.js"; | ||
export default function _wrapRegExp(re, groups) { | ||
export default function _wrapRegExp() { | ||
_wrapRegExp = function _wrapRegExp(re, groups) { | ||
@@ -16,4 +14,2 @@ return new BabelRegExp(re, undefined, groups); | ||
var _RegExp = wrapNativeSuper(RegExp); | ||
var _super = RegExp.prototype; | ||
@@ -24,10 +20,10 @@ | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = _RegExp.call(this, re, flags); | ||
var _this = new RegExp(re, flags); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
return _this; | ||
return setPrototypeOf(_this, BabelRegExp.prototype); | ||
} | ||
inherits(BabelRegExp, _RegExp); | ||
inherits(BabelRegExp, RegExp); | ||
@@ -52,6 +48,6 @@ BabelRegExp.prototype.exec = function (str) { | ||
return _super[_Symbol$replace].call(this, str, function () { | ||
var args = []; | ||
args.push.apply(args, arguments); | ||
var args = arguments; | ||
if (_typeof(args[args.length - 1]) !== "object") { | ||
args = [].slice.call(args); | ||
args.push(buildGroups(args, _this)); | ||
@@ -58,0 +54,0 @@ } |
@@ -9,15 +9,13 @@ var _typeof = require("@babel/runtime-corejs2/helpers/typeof")["default"]; | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof _WeakMap !== "function") return null; | ||
var cache = new _WeakMap(); | ||
_getRequireWildcardCache = function _getRequireWildcardCache() { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new _WeakMap(); | ||
var cacheNodeInterop = new _WeakMap(); | ||
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -32,3 +30,3 @@ } | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
@@ -43,3 +41,3 @@ if (cache && cache.has(obj)) { | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; | ||
@@ -46,0 +44,0 @@ |
@@ -46,3 +46,3 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol"); | ||
type: type, | ||
key: key === undefined ? null : '' + key, | ||
key: key === undefined ? null : "" + key, | ||
ref: null, | ||
@@ -49,0 +49,0 @@ props: props, |
@@ -21,5 +21,8 @@ var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys"); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
@@ -26,0 +29,0 @@ } |
@@ -11,11 +11,7 @@ var _typeof = require("@babel/runtime-corejs2/helpers/typeof")["default"]; | ||
var wrapNativeSuper = require("./wrapNativeSuper.js"); | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
var getPrototypeOf = require("./getPrototypeOf.js"); | ||
var possibleConstructorReturn = require("./possibleConstructorReturn.js"); | ||
var inherits = require("./inherits.js"); | ||
function _wrapRegExp(re, groups) { | ||
function _wrapRegExp() { | ||
module.exports = _wrapRegExp = function _wrapRegExp(re, groups) { | ||
@@ -26,5 +22,2 @@ return new BabelRegExp(re, undefined, groups); | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
var _RegExp = wrapNativeSuper(RegExp); | ||
var _super = RegExp.prototype; | ||
@@ -35,10 +28,10 @@ | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = _RegExp.call(this, re, flags); | ||
var _this = new RegExp(re, flags); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
return _this; | ||
return setPrototypeOf(_this, BabelRegExp.prototype); | ||
} | ||
inherits(BabelRegExp, _RegExp); | ||
inherits(BabelRegExp, RegExp); | ||
@@ -63,6 +56,6 @@ BabelRegExp.prototype.exec = function (str) { | ||
return _super[_Symbol$replace].call(this, str, function () { | ||
var args = []; | ||
args.push.apply(args, arguments); | ||
var args = arguments; | ||
if (_typeof(args[args.length - 1]) !== "object") { | ||
args = [].slice.call(args); | ||
args.push(buildGroups(args, _this)); | ||
@@ -69,0 +62,0 @@ } |
{ | ||
"name": "@babel/runtime-corejs2", | ||
"version": "7.13.17", | ||
"version": "7.14.0", | ||
"description": "babel's modular runtime helpers with core-js@2 polyfilling", | ||
@@ -21,2 +21,20 @@ "license": "MIT", | ||
"exports": { | ||
"./helpers/jsx": [ | ||
{ | ||
"node": "./helpers/jsx.js", | ||
"import": "./helpers/esm/jsx.js", | ||
"default": "./helpers/jsx.js" | ||
}, | ||
"./helpers/jsx.js" | ||
], | ||
"./helpers/esm/jsx": "./helpers/esm/jsx.js", | ||
"./helpers/objectSpread2": [ | ||
{ | ||
"node": "./helpers/objectSpread2.js", | ||
"import": "./helpers/esm/objectSpread2.js", | ||
"default": "./helpers/objectSpread2.js" | ||
}, | ||
"./helpers/objectSpread2.js" | ||
], | ||
"./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js", | ||
"./helpers/typeof": [ | ||
@@ -31,11 +49,11 @@ { | ||
"./helpers/esm/typeof": "./helpers/esm/typeof.js", | ||
"./helpers/jsx": [ | ||
"./helpers/wrapRegExp": [ | ||
{ | ||
"node": "./helpers/jsx.js", | ||
"import": "./helpers/esm/jsx.js", | ||
"default": "./helpers/jsx.js" | ||
"node": "./helpers/wrapRegExp.js", | ||
"import": "./helpers/esm/wrapRegExp.js", | ||
"default": "./helpers/wrapRegExp.js" | ||
}, | ||
"./helpers/jsx.js" | ||
"./helpers/wrapRegExp.js" | ||
], | ||
"./helpers/esm/jsx": "./helpers/esm/jsx.js", | ||
"./helpers/esm/wrapRegExp": "./helpers/esm/wrapRegExp.js", | ||
"./helpers/asyncIterator": [ | ||
@@ -167,11 +185,2 @@ { | ||
"./helpers/esm/objectSpread": "./helpers/esm/objectSpread.js", | ||
"./helpers/objectSpread2": [ | ||
{ | ||
"node": "./helpers/objectSpread2.js", | ||
"import": "./helpers/esm/objectSpread2.js", | ||
"default": "./helpers/objectSpread2.js" | ||
}, | ||
"./helpers/objectSpread2.js" | ||
], | ||
"./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js", | ||
"./helpers/inherits": [ | ||
@@ -807,11 +816,2 @@ { | ||
"./helpers/esm/classPrivateMethodSet": "./helpers/esm/classPrivateMethodSet.js", | ||
"./helpers/wrapRegExp": [ | ||
{ | ||
"node": "./helpers/wrapRegExp.js", | ||
"import": "./helpers/esm/wrapRegExp.js", | ||
"default": "./helpers/wrapRegExp.js" | ||
}, | ||
"./helpers/wrapRegExp.js" | ||
], | ||
"./helpers/esm/wrapRegExp": "./helpers/esm/wrapRegExp.js", | ||
"./package": "./package.json", | ||
@@ -818,0 +818,0 @@ "./package.json": "./package.json", |
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
169572
2992