react-docgen
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -58,3 +58,5 @@ import { visitors } from '@babel/traverse'; | ||
const property = memberPath.get('property'); | ||
if ((!memberPath.node.computed || property.isLiteral()) && | ||
if ((!memberPath.node.computed || | ||
property.isStringLiteral() || | ||
property.isNumericLiteral()) && | ||
getNameOrValue(property) === state.memberName && | ||
@@ -61,0 +63,0 @@ toString(memberPath.get('object')) === state.localName) { |
{ | ||
"name": "react-docgen", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "A library to extract information from React components for documentation generation.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
229793
5770