babel-plugin-react-docgen
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -140,2 +140,16 @@ 'use strict'; | ||
} | ||
// Detect module.exports = className; | ||
} else if (path.node.type === 'ExpressionStatement') { | ||
var expr = path.node.expression; | ||
if (t.isAssignmentExpression(expr)) { | ||
var left = expr.left; | ||
var right = expr.right; | ||
var leftIsModuleExports = t.isMemberExpression(left) && t.isIdentifier(left.object) && t.isIdentifier(left.property) && left.object.name === 'module' && left.property.name === 'exports'; | ||
var rightIsIdentifierClass = t.isIdentifier(right) && right.name === className; | ||
return leftIsModuleExports && rightIsIdentifierClass; | ||
} | ||
} | ||
@@ -142,0 +156,0 @@ return false; |
{ | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"name": "babel-plugin-react-docgen", | ||
@@ -4,0 +4,0 @@ "description": "Babel plugin to add react-docgen info into your code", |
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
149453
45
1936
0