File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "releases" : [{ "name" : " extract-react-types" , "type" : " minor" }],
3
+ "dependents" : [
4
+ {
5
+ "name" : " extract-react-types-loader" ,
6
+ "type" : " patch" ,
7
+ "dependencies" : [" extract-react-types" ]
8
+ },
9
+ { "name" : " kind2string" , "type" : " patch" , "dependencies" : [" extract-react-types" ] },
10
+ {
11
+ "name" : " pretty-proptypes" ,
12
+ "type" : " patch" ,
13
+ "dependencies" : [" kind2string" , " extract-react-types" ]
14
+ }
15
+ ]
16
+ }
Original file line number Diff line number Diff line change
1
+ - Add name to function components like class components
Original file line number Diff line number Diff line change @@ -772,6 +772,7 @@ exports[`flow arrow function component 1`] = `
772
772
Object {
773
773
" component" : Object {
774
774
" kind" : " generic" ,
775
+ " name" : " Component" ,
775
776
" value" : Object {
776
777
" kind" : " object" ,
777
778
" members" : Array [
@@ -825,6 +826,7 @@ exports[`flow class with this expression 1`] = `
825
826
Object {
826
827
" component" : Object {
827
828
" kind" : " generic" ,
829
+ " name" : " Field" ,
828
830
" value" : Object {
829
831
" kind" : " object" ,
830
832
" members" : Array [
@@ -1016,6 +1018,7 @@ exports[`flow function component 1`] = `
1016
1018
Object {
1017
1019
" component" : Object {
1018
1020
" kind" : " generic" ,
1021
+ " name" : " Component" ,
1019
1022
" value" : Object {
1020
1023
" kind" : " object" ,
1021
1024
" members" : Array [
@@ -1042,6 +1045,7 @@ exports[`flow function component with default including spread 1`] = `
1042
1045
Object {
1043
1046
" component" : Object {
1044
1047
" kind" : " generic" ,
1048
+ " name" : " Component" ,
1045
1049
" value" : Object {
1046
1050
" kind" : " object" ,
1047
1051
" members" : Array [
@@ -1087,6 +1091,7 @@ exports[`flow function component with default props 1`] = `
1087
1091
Object {
1088
1092
" component" : Object {
1089
1093
" kind" : " generic" ,
1094
+ " name" : " Component" ,
1090
1095
" value" : Object {
1091
1096
" kind" : " object" ,
1092
1097
" members" : Array [
@@ -1331,6 +1336,7 @@ exports[`flow function with defaults not arrow 1`] = `
1331
1336
Object {
1332
1337
" component" : Object {
1333
1338
" kind" : " generic" ,
1339
+ " name" : " Component" ,
1334
1340
" value" : Object {
1335
1341
" kind" : " object" ,
1336
1342
" members" : Array [
@@ -1510,6 +1516,7 @@ exports[`flow inline function component 1`] = `
1510
1516
Object {
1511
1517
" component" : Object {
1512
1518
" kind" : " generic" ,
1519
+ " name" : " Component" ,
1513
1520
" value" : Object {
1514
1521
" kind" : " object" ,
1515
1522
" members" : Array [
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ function convertReactComponentFunction(path, context) {
223
223
}
224
224
}
225
225
} ) ;
226
+ functionProperties . name = name ;
226
227
}
227
228
228
229
return addDefaultProps ( functionProperties , defaultProps ) ;
You can’t perform that action at this time.
0 commit comments