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

@babel/runtime-corejs2

Package Overview
Dependencies
Maintainers
4
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.20.1 to 7.20.5

helpers/checkInRHS.js

3

helpers/createClass.js
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
var toPropertyKey = require("./toPropertyKey.js");
function _defineProperties(target, props) {

@@ -8,3 +9,3 @@ for (var i = 0; i < props.length; i++) {

if ("value" in descriptor) descriptor.writable = true;
_Object$defineProperty(target, descriptor.key, descriptor);
_Object$defineProperty(target, toPropertyKey(descriptor.key), descriptor);
}

@@ -11,0 +12,0 @@ }

var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
var toPropertyKey = require("./toPropertyKey.js");
function _defineProperty(obj, key, value) {
key = toPropertyKey(key);
if (key in obj) {

@@ -4,0 +6,0 @@ _Object$defineProperty(obj, key, {

import _Object$defineProperty from "@babel/runtime-corejs2/core-js/object/define-property";
import toPropertyKey from "./toPropertyKey.js";
function _defineProperties(target, props) {

@@ -8,3 +9,3 @@ for (var i = 0; i < props.length; i++) {

if ("value" in descriptor) descriptor.writable = true;
_Object$defineProperty(target, descriptor.key, descriptor);
_Object$defineProperty(target, toPropertyKey(descriptor.key), descriptor);
}

@@ -11,0 +12,0 @@ }

import _Object$defineProperty from "@babel/runtime-corejs2/core-js/object/define-property";
import toPropertyKey from "./toPropertyKey.js";
export default function _defineProperty(obj, key, value) {
key = toPropertyKey(key);
if (key in obj) {

@@ -4,0 +6,0 @@ _Object$defineProperty(obj, key, {

import _Symbol from "@babel/runtime-corejs2/core-js/symbol";
import _Symbol$iterator from "@babel/runtime-corejs2/core-js/symbol/iterator";
export default function _iterableToArrayLimit(arr, i) {
var _i = arr == null ? null : typeof _Symbol !== "undefined" && arr[_Symbol$iterator] || arr["@@iterator"];
if (_i == null) return;
var _arr = [];
var _n = true;
var _d = false;
var _s, _e;
try {
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
var _i = null == arr ? null : "undefined" != typeof _Symbol && arr[_Symbol$iterator] || arr["@@iterator"];
if (null != _i) {
var _s,
_e,
_x,
_r,
_arr = [],
_n = !0,
_d = !1;
try {
if (!_n && _i["return"] != null) _i["return"]();
if (_x = (_i = _i.call(arr)).next, 0 === i) {
if (Object(_i) !== _i) return;
_n = !1;
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
;
}
} catch (err) {
_d = !0, _e = err;
} finally {
if (_d) throw _e;
try {
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
} finally {
if (_d) throw _e;
}
}
return _arr;
}
return _arr;
}
import _Symbol from "@babel/runtime-corejs2/core-js/symbol";
import _Symbol$iterator from "@babel/runtime-corejs2/core-js/symbol/iterator";
export default function _iterableToArrayLimitLoose(arr, i) {
var _i = arr && (typeof _Symbol !== "undefined" && arr[_Symbol$iterator] || arr["@@iterator"]);
if (_i == null) return;
var _arr = [];
for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
_arr.push(_step.value);
if (i && _arr.length === i) break;
var _i = arr && ("undefined" != typeof _Symbol && arr[_Symbol$iterator] || arr["@@iterator"]);
if (null != _i) {
var _s,
_arr = [];
for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) {
_arr.push(_s.value);
}
return _arr;
}
return _arr;
}

@@ -144,10 +144,5 @@ import _typeof from "./typeof.js";

function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (undefined === method) {
if (context.delegate = null, "throw" === context.method) {
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var methodName = context.method,
method = delegate.iterator[methodName];
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
var record = tryCatch(method, delegate.iterator, context.arg);

@@ -154,0 +149,0 @@ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;

var _Symbol = require("@babel/runtime-corejs2/core-js/symbol");
var _Symbol$iterator = require("@babel/runtime-corejs2/core-js/symbol/iterator");
function _iterableToArrayLimit(arr, i) {
var _i = arr == null ? null : typeof _Symbol !== "undefined" && arr[_Symbol$iterator] || arr["@@iterator"];
if (_i == null) return;
var _arr = [];
var _n = true;
var _d = false;
var _s, _e;
try {
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
var _i = null == arr ? null : "undefined" != typeof _Symbol && arr[_Symbol$iterator] || arr["@@iterator"];
if (null != _i) {
var _s,
_e,
_x,
_r,
_arr = [],
_n = !0,
_d = !1;
try {
if (!_n && _i["return"] != null) _i["return"]();
if (_x = (_i = _i.call(arr)).next, 0 === i) {
if (Object(_i) !== _i) return;
_n = !1;
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
;
}
} catch (err) {
_d = !0, _e = err;
} finally {
if (_d) throw _e;
try {
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
} finally {
if (_d) throw _e;
}
}
return _arr;
}
return _arr;
}
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
var _Symbol = require("@babel/runtime-corejs2/core-js/symbol");
var _Symbol$iterator = require("@babel/runtime-corejs2/core-js/symbol/iterator");
function _iterableToArrayLimitLoose(arr, i) {
var _i = arr && (typeof _Symbol !== "undefined" && arr[_Symbol$iterator] || arr["@@iterator"]);
if (_i == null) return;
var _arr = [];
for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
_arr.push(_step.value);
if (i && _arr.length === i) break;
var _i = arr && ("undefined" != typeof _Symbol && arr[_Symbol$iterator] || arr["@@iterator"]);
if (null != _i) {
var _s,
_arr = [];
for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) {
_arr.push(_s.value);
}
return _arr;
}
return _arr;
}
module.exports = _iterableToArrayLimitLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;

@@ -144,10 +144,5 @@ var _typeof = require("./typeof.js")["default"];

function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (undefined === method) {
if (context.delegate = null, "throw" === context.method) {
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var methodName = context.method,
method = delegate.iterator[methodName];
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
var record = tryCatch(method, delegate.iterator, context.arg);

@@ -154,0 +149,0 @@ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;

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

@@ -18,3 +18,3 @@ "license": "MIT",

"core-js": "^2.6.12",
"regenerator-runtime": "^0.13.10"
"regenerator-runtime": "^0.13.11"
},

@@ -85,2 +85,29 @@ "exports": {

"./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js",
"./helpers/checkInRHS": [
{
"node": "./helpers/checkInRHS.js",
"import": "./helpers/esm/checkInRHS.js",
"default": "./helpers/checkInRHS.js"
},
"./helpers/checkInRHS.js"
],
"./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js",
"./helpers/iterableToArrayLimit": [
{
"node": "./helpers/iterableToArrayLimit.js",
"import": "./helpers/esm/iterableToArrayLimit.js",
"default": "./helpers/iterableToArrayLimit.js"
},
"./helpers/iterableToArrayLimit.js"
],
"./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js",
"./helpers/iterableToArrayLimitLoose": [
{
"node": "./helpers/iterableToArrayLimitLoose.js",
"import": "./helpers/esm/iterableToArrayLimitLoose.js",
"default": "./helpers/iterableToArrayLimitLoose.js"
},
"./helpers/iterableToArrayLimitLoose.js"
],
"./helpers/esm/iterableToArrayLimitLoose": "./helpers/esm/iterableToArrayLimitLoose.js",
"./helpers/jsx": [

@@ -554,20 +581,2 @@ {

"./helpers/esm/iterableToArray": "./helpers/esm/iterableToArray.js",
"./helpers/iterableToArrayLimit": [
{
"node": "./helpers/iterableToArrayLimit.js",
"import": "./helpers/esm/iterableToArrayLimit.js",
"default": "./helpers/iterableToArrayLimit.js"
},
"./helpers/iterableToArrayLimit.js"
],
"./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js",
"./helpers/iterableToArrayLimitLoose": [
{
"node": "./helpers/iterableToArrayLimitLoose.js",
"import": "./helpers/esm/iterableToArrayLimitLoose.js",
"default": "./helpers/iterableToArrayLimitLoose.js"
},
"./helpers/iterableToArrayLimitLoose.js"
],
"./helpers/esm/iterableToArrayLimitLoose": "./helpers/esm/iterableToArrayLimitLoose.js",
"./helpers/unsupportedIterableToArray": [

@@ -574,0 +583,0 @@ {

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