ansi-to-react
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -8,2 +8,3 @@ 'use strict'; | ||
var React = require('react'); | ||
var PropTypes = require('prop-types'); | ||
var Anser = require('anser'); | ||
@@ -75,3 +76,3 @@ var escapeCarriageReturn = require('escape-carriage'); | ||
Ansi.propTypes = { | ||
children: React.PropTypes.string | ||
children: PropTypes.string | ||
}; | ||
@@ -78,0 +79,0 @@ |
{ | ||
"name": "ansi-to-react", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "ANSI to React Elements", | ||
@@ -37,3 +37,4 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0-0" | ||
"prop-types": "^15.5.9", | ||
"react": "^15.0.0-0" | ||
}, | ||
@@ -40,0 +41,0 @@ "devDependencies": { |
const React = require('react'); | ||
const PropTypes = require('prop-types'); | ||
const Anser = require('anser'); | ||
@@ -74,3 +75,3 @@ const escapeCarriageReturn = require('escape-carriage'); | ||
{}, | ||
props.linkify | ||
props.linkify | ||
? ansiToInlineStyle(props.children) | ||
@@ -84,5 +85,5 @@ .map(linkifyBundle) | ||
Ansi.propTypes = { | ||
children: React.PropTypes.string, | ||
children: PropTypes.string, | ||
}; | ||
module.exports = Ansi; |
Sorry, the diff of this file is not supported yet
13307
193
4