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.16.1

7

lib/__tests__/parser.js

@@ -401,2 +401,9 @@ "use strict";

});
it('should parse jsdocs with the @default tag and no description', function () {
testUtils_1.check('StatelessWithDefaultOnlyJsDoc', {
StatelessWithDefaultOnlyJsDoc: {
myProp: { defaultValue: 'hello', description: '', type: 'string' }
}
});
});
it('should parse functional component component defined as function', function () {

@@ -403,0 +410,0 @@ testUtils_1.check('FunctionDeclaration', {

4

lib/parser.js

@@ -340,3 +340,3 @@ "use strict";

var comment = this.getFullJsDocComment(symbol);
if (comment.fullComment) {
if (comment.fullComment || comment.tags.default) {
return comment;

@@ -348,3 +348,3 @@ }

.map(function (x) { return _this.getFullJsDocComment(x); })
.filter(function (x) { return !!x.fullComment; });
.filter(function (x) { return !!x.fullComment || !!comment.tags.default; });
if (commentsOnRootSymbols.length) {

@@ -351,0 +351,0 @@ return commentsOnRootSymbols[0];

{
"name": "react-docgen-typescript",
"version": "1.16.0",
"version": "1.16.1",
"description": "",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/styleguidist/react-docgen-typescript/",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet