Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-for-of

Package Overview
Dependencies
Maintainers
5
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-for-of - npm Package Compare versions

Comparing version 7.0.0-beta.47 to 7.0.0-beta.48

53

lib/index.js

@@ -11,3 +11,3 @@ "use strict";

_helperPluginUtils = function _helperPluginUtils() {
_helperPluginUtils = function () {
return data;

@@ -22,3 +22,3 @@ };

_core = function _core() {
_core = function () {
return data;

@@ -32,4 +32,6 @@ };

api.assertVersion(7);
const loose = options.loose,
assumeArray = options.assumeArray;
const {
loose,
assumeArray
} = options;

@@ -44,7 +46,10 @@ if (loose === true && assumeArray === true) {

ForOfStatement(path) {
const scope = path.scope;
const _path$node = path.node,
left = _path$node.left,
right = _path$node.right,
body = _path$node.body;
const {
scope
} = path;
const {
left,
right,
body
} = path.node;
const i = scope.generateUidIdentifier("i");

@@ -128,4 +133,6 @@ let array = scope.maybeGenerateMemoised(right, true);

function _ForOfStatementArray(path) {
const node = path.node,
scope = path.scope;
const {
node,
scope
} = path;
const nodes = [];

@@ -188,3 +195,5 @@ let right = node.right;

const node = path.node;
const {
node
} = path;
const build = pushComputedProps(path, state);

@@ -218,6 +227,10 @@ const declar = build.declar;

function pushComputedPropsLoose(path, file) {
const node = path.node,
scope = path.scope,
parent = path.parent;
const left = node.left;
const {
node,
scope,
parent
} = path;
const {
left
} = node;
let declar, id, intermediate;

@@ -264,5 +277,7 @@

function pushComputedPropsSpec(path, file) {
const node = path.node,
scope = path.scope,
parent = path.parent;
const {
node,
scope,
parent
} = path;
const left = node.left;

@@ -269,0 +284,0 @@ let declar;

{
"name": "@babel/plugin-transform-for-of",
"version": "7.0.0-beta.47",
"version": "7.0.0-beta.48",
"description": "Compile ES2015 for...of to ES5",

@@ -12,11 +12,11 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-for-of",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.47"
"@babel/helper-plugin-utils": "7.0.0-beta.48"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"@babel/helper-plugin-test-runner": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48",
"@babel/helper-plugin-test-runner": "7.0.0-beta.48"
}
}
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