@babel/plugin-transform-for-of
Advanced tools
Comparing version 7.2.0 to 7.4.0
@@ -134,10 +134,6 @@ "use strict"; | ||
} = path; | ||
const nodes = []; | ||
let right = node.right; | ||
const uid = scope.generateUid("arr"); | ||
const nodes = [_core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.identifier(uid), node.right)])]; | ||
if (!_core().types.isIdentifier(right) || !scope.hasBinding(right.name)) { | ||
const uid = scope.generateUid("arr"); | ||
nodes.push(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.identifier(uid), right)])); | ||
right = _core().types.identifier(uid); | ||
} | ||
const right = _core().types.identifier(uid); | ||
@@ -144,0 +140,0 @@ const iterationKey = scope.generateUidIdentifier("i"); |
{ | ||
"name": "@babel/plugin-transform-for-of", | ||
"version": "7.2.0", | ||
"version": "7.4.0", | ||
"description": "Compile ES2015 for...of to ES5", | ||
@@ -21,5 +21,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-for-of", | ||
"devDependencies": { | ||
"@babel/core": "^7.2.0", | ||
"@babel/core": "^7.4.0", | ||
"@babel/helper-plugin-test-runner": "^7.0.0" | ||
} | ||
}, | ||
"gitHead": "f1328fb913b5a93d54dfc6e3728b1f56c8f4a804" | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
11450
260