react-docgen
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -47,9 +47,4 @@ /* | ||
if (searchPath) { | ||
// Class declarations are statements but can be part of default | ||
// export declarations | ||
if (types.ClassDeclaration.check(searchPath.node) && types.ExportDefaultDeclaration.check(searchPath.parentPath.node)) { | ||
searchPath = searchPath.parentPath; | ||
} | ||
// If the parent is an export statement, we have to traverse one more up | ||
if (types.ExportNamedDeclaration.check(searchPath.parentPath.node)) { | ||
if (types.ExportNamedDeclaration.check(searchPath.parentPath.node) || types.ExportDefaultDeclaration.check(searchPath.parentPath.node)) { | ||
searchPath = searchPath.parentPath; | ||
@@ -56,0 +51,0 @@ } |
{ | ||
"name": "react-docgen", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "A CLI and toolkit to extract information from React components for documentation generation.", | ||
@@ -16,3 +16,3 @@ "repository": { | ||
"watch": "babel src/ --out-dir dist/ --watch", | ||
"build": "rm -rf dist/ && babel src/ --out-dir dist/", | ||
"build": "rm -rf dist/ && babel src/ --out-dir dist/ --ignore __tests__,__mocks__", | ||
"prepublish": "npm run build", | ||
@@ -19,0 +19,0 @@ "test": "jest" |
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
113510
2603