You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-docgen-typescript

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-docgen-typescript - npm Package Compare versions

Comparing version

to
1.12.1

19

lib/parser.js

@@ -89,3 +89,7 @@ "use strict";

exp = type.symbol;
if (exp.getName() === 'StatelessComponent') {
var expName = exp.getName();
if (expName === 'StatelessComponent' ||
expName === 'Stateless' ||
expName === 'StyledComponentClass' ||
expName === 'FunctionComponent') {
commentSource = this.checker.getAliasedSymbol(commentSource);

@@ -216,6 +220,8 @@ }

params: params,
returns: returnDescription ? {
description: returnDescription,
type: returnType
} : null
returns: returnDescription
? {
description: returnDescription,
type: returnType
}
: null
});

@@ -551,2 +557,5 @@ });

exportName === '__function' ||
exportName === 'Stateless' ||
exportName === 'StyledComponentClass' ||
exportName === 'FunctionComponent' ||
exportName === 'StatelessComponent') {

@@ -553,0 +562,0 @@ return getDefaultExportForFile(source);

{
"name": "react-docgen-typescript",
"version": "1.12.0",
"version": "1.12.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet