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

@babel/runtime-corejs2

Package Overview
Dependencies
Maintainers
5
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/runtime-corejs2 - npm Package Compare versions

Comparing version 7.0.0-rc.3 to 7.0.0-rc.4

core-js/array/is-array.js

4

helpers/arrayWithHoles.js

@@ -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",

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