@babel/helper-simple-access
Advanced tools
Comparing version 7.0.0-beta.40 to 7.0.0-beta.41
@@ -33,3 +33,4 @@ "use strict"; | ||
if (path.node.prefix || path.parentPath.isExpressionStatement() && !path.isCompletionRecord()) { | ||
path.replaceWith(t.assignmentExpression("+=", arg.node, t.numericLiteral(1))); | ||
var operator = path.node.operator == "++" ? "+=" : "-="; | ||
path.replaceWith(t.assignmentExpression(operator, arg.node, t.numericLiteral(1))); | ||
} else { | ||
@@ -36,0 +37,0 @@ var varName = path.scope.generateDeclaredUidIdentifier("old").name; |
{ | ||
"name": "@babel/helper-simple-access", | ||
"version": "7.0.0-beta.40", | ||
"version": "7.0.0-beta.41", | ||
"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.40", | ||
"@babel/types": "7.0.0-beta.40", | ||
"@babel/template": "7.0.0-beta.41", | ||
"@babel/types": "7.0.0-beta.41", | ||
"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
3684
54
+ Added@babel/code-frame@7.0.0-beta.41(transitive)
+ Added@babel/highlight@7.0.0-beta.41(transitive)
+ Added@babel/template@7.0.0-beta.41(transitive)
+ Added@babel/types@7.0.0-beta.41(transitive)
+ Addedbabylon@7.0.0-beta.41(transitive)
- Removed@babel/code-frame@7.0.0-beta.40(transitive)
- Removed@babel/highlight@7.0.0-beta.40(transitive)
- Removed@babel/template@7.0.0-beta.40(transitive)
- Removed@babel/types@7.0.0-beta.40(transitive)
- Removedbabylon@7.0.0-beta.40(transitive)
Updated@babel/types@7.0.0-beta.41