Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

react-docgen

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-docgen - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

7

dist/handlers/componentDocblockHandler.js

@@ -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 @@ }

4

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc