@babel/helper-simple-access
Advanced tools
Comparing version 7.0.0-beta.38 to 7.0.0-beta.39
@@ -35,5 +35,5 @@ "use strict"; | ||
} else { | ||
var varName = path.scope.generateDeclaredUidIdentifier("old"); | ||
var assignment = t.binaryExpression(path.node.operator.slice(0, 1), varName, t.numericLiteral(1)); | ||
path.replaceWith(t.sequenceExpression([t.assignmentExpression("=", varName, arg.node), t.assignmentExpression("=", arg.node, assignment), varName])); | ||
var varName = path.scope.generateDeclaredUidIdentifier("old").name; | ||
var binary = t.binaryExpression(path.node.operator.slice(0, 1), t.identifier(varName), t.numericLiteral(1)); | ||
path.replaceWith(t.sequenceExpression([t.assignmentExpression("=", t.identifier(varName), arg.node), t.assignmentExpression("=", t.cloneNode(arg.node), binary), t.identifier(varName)])); | ||
} | ||
@@ -59,3 +59,3 @@ } | ||
path.node.right = t.binaryExpression(path.node.operator.slice(0, -1), path.node.left, path.node.right); | ||
path.node.right = t.binaryExpression(path.node.operator.slice(0, -1), t.cloneNode(path.node.left), path.node.right); | ||
path.node.operator = "="; | ||
@@ -62,0 +62,0 @@ } |
{ | ||
"name": "@babel/helper-simple-access", | ||
"version": "7.0.0-beta.38", | ||
"version": "7.0.0-beta.39", | ||
"description": "Babel helper for ensuring that access to a given value is performed through simple accesses", | ||
@@ -11,6 +11,6 @@ "author": "Logan Smyth <loganfsmyth@gmail.com>", | ||
"dependencies": { | ||
"@babel/template": "7.0.0-beta.38", | ||
"@babel/types": "7.0.0-beta.38", | ||
"@babel/template": "7.0.0-beta.39", | ||
"@babel/types": "7.0.0-beta.39", | ||
"lodash": "^4.2.0" | ||
} | ||
} |
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
3615
+ Added@babel/code-frame@7.0.0-beta.39(transitive)
+ Added@babel/template@7.0.0-beta.39(transitive)
+ Added@babel/types@7.0.0-beta.39(transitive)
+ Addedbabylon@7.0.0-beta.39(transitive)
- Removed@babel/code-frame@7.0.0-beta.38(transitive)
- Removed@babel/template@7.0.0-beta.38(transitive)
- Removed@babel/types@7.0.0-beta.38(transitive)
- Removedbabylon@7.0.0-beta.38(transitive)
Updated@babel/types@7.0.0-beta.39