Socket
Socket
Sign inDemoInstall

react-highlight-words

Package Overview
Dependencies
8
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.19.0 to 0.20.0

7

dist/main.js

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

textToHighlight: _propTypes2['default'].string.isRequired,
unhighlightTag: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func, _propTypes2['default'].string]),
unhighlightClassName: _propTypes2['default'].string,

@@ -143,2 +144,4 @@ unhighlightStyle: _propTypes2['default'].object

var textToHighlight = _ref.textToHighlight;
var _ref$unhighlightTag = _ref.unhighlightTag;
var unhighlightTag = _ref$unhighlightTag === undefined ? 'span' : _ref$unhighlightTag;
var _ref$unhighlightClassName = _ref.unhighlightClassName;

@@ -148,3 +151,3 @@ var unhighlightClassName = _ref$unhighlightClassName === undefined ? '' : _ref$unhighlightClassName;

var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightClassName', 'unhighlightStyle']);
var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightTag', 'unhighlightClassName', 'unhighlightStyle']);

@@ -214,3 +217,3 @@ var chunks = (0, _highlightWordsCore.findAll)({

} else {
return (0, _react.createElement)('span', {
return (0, _react.createElement)(unhighlightTag, {
children: text,

@@ -217,0 +220,0 @@ className: unhighlightClassName,

@@ -122,2 +122,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

textToHighlight: _propTypes2['default'].string.isRequired,
unhighlightTag: _propTypes2['default'].oneOfType([_propTypes2['default'].node, _propTypes2['default'].func, _propTypes2['default'].string]),
unhighlightClassName: _propTypes2['default'].string,

@@ -152,2 +153,4 @@ unhighlightStyle: _propTypes2['default'].object

var textToHighlight = _ref.textToHighlight;
var _ref$unhighlightTag = _ref.unhighlightTag;
var unhighlightTag = _ref$unhighlightTag === undefined ? 'span' : _ref$unhighlightTag;
var _ref$unhighlightClassName = _ref.unhighlightClassName;

@@ -157,3 +160,3 @@ var unhighlightClassName = _ref$unhighlightClassName === undefined ? '' : _ref$unhighlightClassName;

var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightClassName', 'unhighlightStyle']);
var rest = _objectWithoutProperties(_ref, ['activeClassName', 'activeIndex', 'activeStyle', 'autoEscape', 'caseSensitive', 'className', 'findChunks', 'highlightClassName', 'highlightStyle', 'highlightTag', 'sanitize', 'searchWords', 'textToHighlight', 'unhighlightTag', 'unhighlightClassName', 'unhighlightStyle']);

@@ -223,3 +226,3 @@ var chunks = (0, _highlightWordsCore.findAll)({

} else {
return (0, _react.createElement)('span', {
return (0, _react.createElement)(unhighlightTag, {
children: text,

@@ -226,0 +229,0 @@ className: unhighlightClassName,

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

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc