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.6 to 7.20.7

helpers/defineAccessor.js

12

helpers/applyDecs.js

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

initializer = function initializer(instance, init) {
for (var value = init, i = 0; i < ownInitializers.length; i++) {
value = ownInitializers[i].call(instance, value);
}
for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
return value;

@@ -216,5 +214,3 @@ };

initializers && ret.push(function (instance) {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(instance);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
return instance;

@@ -242,5 +238,3 @@ });

ret.push(newClass, function () {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(newClass);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
});

@@ -247,0 +241,0 @@ }

@@ -116,5 +116,3 @@ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");

init = function init(instance, _init2) {
for (var value = _init2, i = 0; i < ownInitializers.length; i++) {
value = ownInitializers[i].call(instance, value);
}
for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
return value;

@@ -161,5 +159,3 @@ };

initializers && ret.push(function (instance) {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(instance);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
return instance;

@@ -186,5 +182,3 @@ });

ret.push(newClass, function () {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(newClass);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
});

@@ -191,0 +185,0 @@ }

function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
function _classNameTDZError(name) {
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys.");
}
module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports;

@@ -170,5 +170,3 @@ import _typeof from "./typeof.js";

initializer = function initializer(instance, init) {
for (var value = init, i = 0; i < ownInitializers.length; i++) {
value = ownInitializers[i].call(instance, value);
}
for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
return value;

@@ -216,5 +214,3 @@ };

initializers && ret.push(function (instance) {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(instance);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
return instance;

@@ -242,5 +238,3 @@ });

ret.push(newClass, function () {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(newClass);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
});

@@ -247,0 +241,0 @@ }

@@ -116,5 +116,3 @@ import _typeof from "./typeof.js";

init = function init(instance, _init2) {
for (var value = _init2, i = 0; i < ownInitializers.length; i++) {
value = ownInitializers[i].call(instance, value);
}
for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
return value;

@@ -161,5 +159,3 @@ };

initializers && ret.push(function (instance) {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(instance);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
return instance;

@@ -186,5 +182,3 @@ });

ret.push(newClass, function () {
for (var i = 0; i < initializers.length; i++) {
initializers[i].call(newClass);
}
for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
});

@@ -191,0 +185,0 @@ }

export default function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
export default function _classNameTDZError(name) {
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys.");
}

@@ -17,5 +17,3 @@ import _Symbol from "@babel/runtime-corejs2/core-js/symbol";

_n = !1;
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
;
}
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
} catch (err) {

@@ -22,0 +20,0 @@ _d = !0, _e = err;

@@ -8,7 +8,5 @@ import _Symbol from "@babel/runtime-corejs2/core-js/symbol";

_arr = [];
for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) {
_arr.push(_s.value);
}
for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value);
return _arr;
}
}

@@ -11,10 +11,6 @@ import _Symbol from "@babel/runtime-corejs2/core-js/symbol";

}), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) {
childArray[i] = arguments[i + 3];
}
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
props.children = childArray;
}
if (props && defaultProps) for (var propName in defaultProps) {
void 0 === props[propName] && (props[propName] = defaultProps[propName]);
} else props || (props = defaultProps || {});
if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {});
return {

@@ -21,0 +17,0 @@ $$typeof: REACT_ELEMENT_TYPE,

@@ -175,5 +175,3 @@ import _typeof from "./typeof.js";

next = function next() {
for (; ++i < iterable.length;) {
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
}
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
return next.value = undefined, next.done = !0, next;

@@ -224,5 +222,3 @@ };

keys = [];
for (var key in object) {
keys.push(key);
}
for (var key in object) keys.push(key);
return keys.reverse(), function next() {

@@ -238,5 +234,3 @@ for (; keys.length;) {

reset: function reset(skipTempReset) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
}
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
},

@@ -243,0 +237,0 @@ stop: function stop() {

@@ -40,5 +40,5 @@ import _Reflect$set from "@babel/runtime-corejs2/core-js/reflect/set";

if (!s && isStrict) {
throw new Error('failed to set property');
throw new TypeError('failed to set property');
}
return value;
}

@@ -24,5 +24,3 @@ import _typeof from "./typeof.js";

if ("number" == typeof i) groups[name] = result[i];else {
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) {
k++;
}
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
groups[name] = result[i[k]];

@@ -29,0 +27,0 @@ }

@@ -17,5 +17,3 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol");

_n = !1;
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
;
}
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
} catch (err) {

@@ -22,0 +20,0 @@ _d = !0, _e = err;

@@ -8,5 +8,3 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol");

_arr = [];
for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) {
_arr.push(_s.value);
}
for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value);
return _arr;

@@ -13,0 +11,0 @@ }

@@ -11,10 +11,6 @@ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol");

}), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) {
childArray[i] = arguments[i + 3];
}
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
props.children = childArray;
}
if (props && defaultProps) for (var propName in defaultProps) {
void 0 === props[propName] && (props[propName] = defaultProps[propName]);
} else props || (props = defaultProps || {});
if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {});
return {

@@ -21,0 +17,0 @@ $$typeof: REACT_ELEMENT_TYPE,

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

next = function next() {
for (; ++i < iterable.length;) {
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
}
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
return next.value = undefined, next.done = !0, next;

@@ -224,5 +222,3 @@ };

keys = [];
for (var key in object) {
keys.push(key);
}
for (var key in object) keys.push(key);
return keys.reverse(), function next() {

@@ -238,5 +234,3 @@ for (; keys.length;) {

reset: function reset(skipTempReset) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
}
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
},

@@ -243,0 +237,0 @@ stop: function stop() {

@@ -40,3 +40,3 @@ var _Reflect$set = require("@babel/runtime-corejs2/core-js/reflect/set");

if (!s && isStrict) {
throw new Error('failed to set property');
throw new TypeError('failed to set property');
}

@@ -43,0 +43,0 @@ return value;

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

if ("number" == typeof i) groups[name] = result[i];else {
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) {
k++;
}
for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
groups[name] = result[i[k]];

@@ -29,0 +27,0 @@ }

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

@@ -93,2 +93,11 @@ "license": "MIT",

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

@@ -95,0 +104,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