File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 34
34
"escape-carriage" : " ^1.0.1"
35
35
},
36
36
"peerDependencies" : {
37
- "react" : " ^0.14.0 || ^15.0.0-0"
37
+ "prop-types" : " ^15.5.9" ,
38
+ "react" : " ^15.0.0-0"
38
39
},
39
40
"devDependencies" : {
40
41
"babel-cli" : " ^6.8.0" ,
Original file line number Diff line number Diff line change 1
1
const React = require ( 'react' ) ;
2
+ const PropTypes = require ( 'prop-types' ) ;
2
3
const Anser = require ( 'anser' ) ;
3
4
const escapeCarriageReturn = require ( 'escape-carriage' ) ;
4
5
@@ -71,7 +72,7 @@ function Ansi(props) {
71
72
return React . createElement (
72
73
'code' ,
73
74
{ } ,
74
- props . linkify
75
+ props . linkify
75
76
? ansiToInlineStyle ( props . children )
76
77
. map ( linkifyBundle )
77
78
. map ( inlineBundleToReact )
@@ -80,7 +81,7 @@ function Ansi(props) {
80
81
}
81
82
82
83
Ansi . propTypes = {
83
- children : React . PropTypes . string ,
84
+ children : PropTypes . string ,
84
85
} ;
85
86
86
87
module . exports = Ansi ;
You can’t perform that action at this time.
0 commit comments