Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-for-of

Package Overview
Dependencies
54
Maintainers
5
Versions
85
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.2.0 to 7.4.0

10

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc