Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@babel/plugin-transform-regenerator

Package Overview
Dependencies
Maintainers
4
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-regenerator - npm Package Compare versions

Comparing version
7.28.1
to
7.28.3
+7
-4
lib/regenerator/emit.js

@@ -480,6 +480,9 @@ "use strict";

let newArgs;
const hasLeapingArgs = argsPath.some(argPath => meta.containsLeap(argPath.node));
let lastLeapingArgIndex = argsPath.length - 1;
while (lastLeapingArgIndex >= 0 && !meta.containsLeap(argsPath[lastLeapingArgIndex].node)) {
lastLeapingArgIndex--;
}
let injectFirstArg = null;
if (_core.types.isMemberExpression(calleePath.node)) {
if (hasLeapingArgs) {
if (lastLeapingArgIndex !== -1) {
const newObject = self.explodeViaTempVar(self.makeTempVar(), calleePath.get("object"), hasLeapingChildren);

@@ -498,4 +501,4 @@ const newProperty = calleePath.node.computed ? self.explodeViaTempVar(null, calleePath.get("property"), hasLeapingChildren) : calleePath.node.property;

}
if (hasLeapingArgs) {
newArgs = argsPath.map(argPath => self.explodeViaTempVar(null, argPath, hasLeapingChildren));
if (lastLeapingArgIndex !== -1) {
newArgs = argsPath.map((argPath, index) => index >= lastLeapingArgIndex ? self.explodeExpression(argPath) : self.explodeViaTempVar(null, argPath, hasLeapingChildren));
if (injectFirstArg) newArgs.unshift(injectFirstArg);

@@ -502,0 +505,0 @@ newArgs = newArgs.map(arg => _core.types.cloneNode(arg));

@@ -5,3 +5,3 @@ {

"description": "Explode async and generator functions into a state machine.",
"version": "7.28.1",
"version": "7.28.3",
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-regenerator",

@@ -25,3 +25,3 @@ "repository": {

"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/core": "^7.28.3",
"@babel/helper-check-duplicate-nodes": "^7.27.1",

@@ -32,7 +32,7 @@ "@babel/helper-plugin-test-runner": "^7.27.1",

"@babel/plugin-transform-block-scoping": "^7.28.0",
"@babel/plugin-transform-classes": "^7.28.0",
"@babel/plugin-transform-classes": "^7.28.3",
"@babel/plugin-transform-for-of": "^7.27.1",
"@babel/plugin-transform-modules-commonjs": "^7.27.1",
"@babel/plugin-transform-parameters": "^7.27.7",
"@babel/plugin-transform-runtime": "^7.28.0",
"@babel/plugin-transform-runtime": "^7.28.3",
"babel-plugin-polyfill-regenerator": "^0.6.5",

@@ -39,0 +39,0 @@ "mocha": "^10.0.0",

Sorry, the diff of this file is too big to display