Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-highlight-words

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-highlight-words - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

4

dist/main.js

@@ -93,2 +93,3 @@ module.exports =

autoEscape: _react.PropTypes.bool,
className: _react.PropTypes.string,
highlightClassName: _react.PropTypes.string,

@@ -113,2 +114,3 @@ highlightTag: _react.PropTypes.string,

var autoEscape = _ref.autoEscape;
var className = _ref.className;
var _ref$highlightClassName = _ref.highlightClassName;

@@ -136,3 +138,3 @@ var highlightClassName = _ref$highlightClassName === undefined ? '' : _ref$highlightClassName;

'span',
null,
{ className: className },
chunks.map(function (chunk, index) {

@@ -139,0 +141,0 @@ var text = textToHighlight.substr(chunk.start, chunk.end - chunk.start);

{
"name": "react-highlight-words",
"version": "0.6.0",
"version": "0.7.0",
"description": "React component to highlight words within a larger body of text",

@@ -5,0 +5,0 @@ "main": "dist/main.js",

@@ -30,2 +30,3 @@ <img src="https://cloud.githubusercontent.com/assets/29597/11913937/0d2dcd78-a629-11e5-83e7-6a17b6d765a5.png" width="260" height="260">

| activeIndex | String | | Specify the match index that should be actively highlighted. Use along with `activeClassName` |
| className | String | | CSS class name applied to the outer/wrapper `<span>` |
| highlightClassName | String | | CSS class name applied to highlighted text |

@@ -32,0 +33,0 @@ | highlightStyle | Object | | Inline styles applied to highlighted text |

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc