babel-plugin-aexpr-source-transformation
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -160,3 +160,3 @@ "use strict"; | ||
// TODO: is there a general way to exclude non-variables? | ||
!t.isObjectProperty(path.parent) && !t.isClassDeclaration(path.parent) && !t.isClassMethod(path.parent) && !t.isImportSpecifier(path.parent) && !t.isMemberExpression(path.parent) && !t.isObjectMethod(path.parent) && !t.isVariableDeclarator(path.parent) && !t.isFunctionDeclaration(path.parent) && !t.isRestElement(path.parent) && (!t.isAssignmentExpression(path.parent) || !(path.parentKey === 'left'))) { | ||
!t.isObjectProperty(path.parent) && !t.isClassDeclaration(path.parent) && !t.isClassMethod(path.parent) && !t.isImportSpecifier(path.parent) && !t.isMemberExpression(path.parent) && !t.isObjectMethod(path.parent) && !t.isVariableDeclarator(path.parent) && !t.isFunctionDeclaration(path.parent) && !(t.isArrowFunctionExpression(path.parent) && path.parentKey === 'params') && !(t.isFunctionExpression(path.parent) && path.parentKey === 'params') && !t.isRestElement(path.parent) && (!t.isAssignmentExpression(path.parent) || !(path.parentKey === 'left'))) { | ||
if (path.scope.hasBinding(path.node.name)) { | ||
@@ -163,0 +163,0 @@ //logIdentifier('get local var', path) |
@@ -198,2 +198,4 @@ const AEXPR_IDENTIFIER_NAME = "aexpr"; | ||
!t.isFunctionDeclaration(path.parent) && | ||
!(t.isArrowFunctionExpression(path.parent) && path.parentKey === 'params') && | ||
!(t.isFunctionExpression(path.parent) && path.parentKey === 'params') && | ||
!t.isRestElement(path.parent) && | ||
@@ -200,0 +202,0 @@ (!t.isAssignmentExpression(path.parent) || !(path.parentKey === 'left')) |
{ | ||
"name": "babel-plugin-aexpr-source-transformation", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "3rd implementation strategy of active expressions, via a babel transformation", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
47852
910
0