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.9.6 to 7.10.0

helpers/esm/maybeArrayLike.js

10

helpers/createForOfIteratorHelper.js

@@ -11,5 +11,8 @@ var _getIterator = require("../core-js/get-iterator");

function _createForOfIteratorHelper(o) {
function _createForOfIteratorHelper(o, allowArrayLike) {
var it;
if (typeof _Symbol === "undefined" || o[_Symbol$iterator] == null) {
if (_Array$isArray(o) || (o = unsupportedIterableToArray(o))) {
if (_Array$isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;

@@ -40,4 +43,3 @@

var it,
normalCompletion = true,
var normalCompletion = true,
didErr = false,

@@ -44,0 +46,0 @@ err;

29

helpers/createForOfIteratorHelperLoose.js

@@ -11,22 +11,27 @@ var _getIterator = require("../core-js/get-iterator");

function _createForOfIteratorHelperLoose(o) {
var i = 0;
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it;
if (typeof _Symbol === "undefined" || o[_Symbol$iterator] == null) {
if (_Array$isArray(o) || (o = unsupportedIterableToArray(o))) return function () {
if (i >= o.length) return {
done: true
if (_Array$isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function () {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
};
return {
done: false,
value: o[i++]
};
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
i = _getIterator(o);
return i.next.bind(i);
it = _getIterator(o);
return it.next.bind(it);
}
module.exports = _createForOfIteratorHelperLoose;

@@ -11,3 +11,3 @@ var _Reflect$construct = require("../core-js/reflect/construct");

var hasNativeReflectConstruct = isNativeReflectConstruct();
return function () {
return function _createSuperInternal() {
var Super = getPrototypeOf(Derived),

@@ -14,0 +14,0 @@ result;

@@ -6,5 +6,8 @@ import _getIterator from "../../core-js/get-iterator";

import unsupportedIterableToArray from "./unsupportedIterableToArray";
export default function _createForOfIteratorHelper(o) {
export default function _createForOfIteratorHelper(o, allowArrayLike) {
var it;
if (typeof _Symbol === "undefined" || o[_Symbol$iterator] == null) {
if (_Array$isArray(o) || (o = unsupportedIterableToArray(o))) {
if (_Array$isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;

@@ -35,4 +38,3 @@

var it,
normalCompletion = true,
var normalCompletion = true,
didErr = false,

@@ -39,0 +41,0 @@ err;

@@ -6,20 +6,25 @@ import _getIterator from "../../core-js/get-iterator";

import unsupportedIterableToArray from "./unsupportedIterableToArray";
export default function _createForOfIteratorHelperLoose(o) {
var i = 0;
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it;
if (typeof _Symbol === "undefined" || o[_Symbol$iterator] == null) {
if (_Array$isArray(o) || (o = unsupportedIterableToArray(o))) return function () {
if (i >= o.length) return {
done: true
if (_Array$isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
return function () {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
};
return {
done: false,
value: o[i++]
};
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
i = _getIterator(o);
return i.next.bind(i);
it = _getIterator(o);
return it.next.bind(it);
}

@@ -7,3 +7,3 @@ import _Reflect$construct from "../../core-js/reflect/construct";

var hasNativeReflectConstruct = isNativeReflectConstruct();
return function () {
return function _createSuperInternal() {
var Super = getPrototypeOf(Derived),

@@ -10,0 +10,0 @@ result;

{
"name": "@babel/runtime-corejs2",
"version": "7.9.6",
"version": "7.10.0",
"description": "babel's modular runtime helpers with core-js@2 polyfilling",

@@ -16,5 +16,5 @@ "license": "MIT",

"devDependencies": {
"@babel/helpers": "^7.9.6"
"@babel/helpers": "^7.10.0"
},
"gitHead": "9c2846bcacc75aa931ea9d556950c2113765d43d"
"gitHead": "5da2440adff6f25579fb6e9a018062291c89416f"
}
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