@babel/plugin-transform-for-of
Advanced tools
Comparing version 7.0.0-beta.47 to 7.0.0-beta.48
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
262
12725
+ Added@babel/code-frame@7.0.0-beta.48(transitive)
+ Added@babel/core@7.0.0-beta.48(transitive)
+ Added@babel/generator@7.0.0-beta.48(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.48(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.48(transitive)
+ Added@babel/helper-plugin-utils@7.0.0-beta.48(transitive)
+ Added@babel/helper-split-export-declaration@7.0.0-beta.48(transitive)
+ Added@babel/helpers@7.0.0-beta.48(transitive)
+ Added@babel/highlight@7.0.0-beta.48(transitive)
+ Added@babel/parser@7.0.0-beta.48(transitive)
+ Added@babel/template@7.0.0-beta.48(transitive)
+ Added@babel/traverse@7.0.0-beta.48(transitive)
+ Added@babel/types@7.0.0-beta.48(transitive)
- Removed@babel/code-frame@7.0.0-beta.47(transitive)
- Removed@babel/core@7.0.0-beta.47(transitive)
- Removed@babel/generator@7.0.0-beta.47(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.47(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.47(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-beta.47(transitive)
- Removed@babel/helper-split-export-declaration@7.0.0-beta.47(transitive)
- Removed@babel/helpers@7.0.0-beta.47(transitive)
- Removed@babel/highlight@7.0.0-beta.47(transitive)
- Removed@babel/template@7.0.0-beta.47(transitive)
- Removed@babel/traverse@7.0.0-beta.47(transitive)
- Removed@babel/types@7.0.0-beta.47(transitive)
- Removedbabylon@7.0.0-beta.47(transitive)