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

7

lib/__tests__/parser.js

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

});
it('should parse react stateless component with generic intersection props', function () {
testUtils_1.check('StatelessIntersectionGenericProps', {
StatelessIntersectionGenericProps: {
myProp: { type: 'string' }
}
});
});
it('should parse react stateful component with intersection props', function () {

@@ -303,0 +310,0 @@ testUtils_1.check('StatefulIntersectionProps', {

3

lib/parser.js

@@ -311,2 +311,5 @@ "use strict";

var propertiesOfProps = propsType.getProperties();
if (!propertiesOfProps.length && propsType.isUnionOrIntersection()) {
propertiesOfProps = propsType.types.reduce(function (acc, type) { return acc.concat(type.getProperties()); }, []);
}
var result = {};

@@ -313,0 +316,0 @@ propertiesOfProps.forEach(function (prop) {

2

package.json
{
"name": "react-docgen-typescript",
"version": "1.16.2",
"version": "1.16.3",
"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