@babel/runtime-corejs2
Advanced tools
Comparing version 7.0.0-rc.3 to 7.0.0-rc.4
@@ -0,5 +1,7 @@ | ||
var _Array$isArray = require("../core-js/array/is-array"); | ||
function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
if (_Array$isArray(arr)) return arr; | ||
} | ||
module.exports = _arrayWithHoles; |
@@ -0,3 +1,5 @@ | ||
var _Array$isArray = require("../core-js/array/is-array"); | ||
function _arrayWithoutHoles(arr) { | ||
if (Array.isArray(arr)) { | ||
if (_Array$isArray(arr)) { | ||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { | ||
@@ -4,0 +6,0 @@ arr2[i] = arr[i]; |
@@ -0,1 +1,3 @@ | ||
var _Symbol$asyncIterator = require("../core-js/symbol/async-iterator"); | ||
var _Symbol = require("../core-js/symbol"); | ||
@@ -87,4 +89,4 @@ | ||
if (typeof _Symbol === "function" && _Symbol.asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol.asyncIterator] = function () { | ||
if (typeof _Symbol === "function" && _Symbol$asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol$asyncIterator] = function () { | ||
return this; | ||
@@ -91,0 +93,0 @@ }; |
var _Symbol$iterator = require("../core-js/symbol/iterator"); | ||
var _Symbol$asyncIterator = require("../core-js/symbol/async-iterator"); | ||
var _Symbol = require("../core-js/symbol"); | ||
@@ -9,4 +11,4 @@ | ||
if (typeof _Symbol === "function") { | ||
if (_Symbol.asyncIterator) { | ||
method = iterable[_Symbol.asyncIterator]; | ||
if (_Symbol$asyncIterator) { | ||
method = iterable[_Symbol$asyncIterator]; | ||
if (method != null) return method.call(iterable); | ||
@@ -13,0 +15,0 @@ } |
@@ -0,3 +1,4 @@ | ||
import _Array$isArray from "../../core-js/array/is-array"; | ||
export default function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
if (_Array$isArray(arr)) return arr; | ||
} |
@@ -0,3 +1,4 @@ | ||
import _Array$isArray from "../../core-js/array/is-array"; | ||
export default function _arrayWithoutHoles(arr) { | ||
if (Array.isArray(arr)) { | ||
if (_Array$isArray(arr)) { | ||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { | ||
@@ -4,0 +5,0 @@ arr2[i] = arr[i]; |
@@ -0,1 +1,2 @@ | ||
import _Symbol$asyncIterator from "../../core-js/symbol/async-iterator"; | ||
import _Symbol from "../../core-js/symbol"; | ||
@@ -84,4 +85,4 @@ import _Promise from "../../core-js/promise"; | ||
if (typeof _Symbol === "function" && _Symbol.asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol.asyncIterator] = function () { | ||
if (typeof _Symbol === "function" && _Symbol$asyncIterator) { | ||
AsyncGenerator.prototype[_Symbol$asyncIterator] = function () { | ||
return this; | ||
@@ -88,0 +89,0 @@ }; |
import _Symbol$iterator from "../../core-js/symbol/iterator"; | ||
import _Symbol$asyncIterator from "../../core-js/symbol/async-iterator"; | ||
import _Symbol from "../../core-js/symbol"; | ||
@@ -7,4 +8,4 @@ export default function _asyncIterator(iterable) { | ||
if (typeof _Symbol === "function") { | ||
if (_Symbol.asyncIterator) { | ||
method = iterable[_Symbol.asyncIterator]; | ||
if (_Symbol$asyncIterator) { | ||
method = iterable[_Symbol$asyncIterator]; | ||
if (method != null) return method.call(iterable); | ||
@@ -11,0 +12,0 @@ } |
{ | ||
"name": "@babel/runtime-corejs2", | ||
"version": "7.0.0-rc.3", | ||
"version": "7.0.0-rc.4", | ||
"description": "babel's modular runtime helpers with core-js@2 polyfilling", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
1547
63300
202