highlight-words-core
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -105,2 +105,4 @@ module.exports = | ||
caseSensitive = _ref$caseSensitive === undefined ? false : _ref$caseSensitive, | ||
_ref$findChunks = _ref.findChunks, | ||
findChunks = _ref$findChunks === undefined ? defaultFindChunks : _ref$findChunks, | ||
sanitize = _ref.sanitize, | ||
@@ -159,3 +161,3 @@ searchWords = _ref.searchWords, | ||
*/ | ||
var findChunks = exports.findChunks = function findChunks(_ref3) { | ||
var defaultFindChunks = function defaultFindChunks(_ref3) { | ||
var autoEscape = _ref3.autoEscape, | ||
@@ -201,2 +203,5 @@ caseSensitive = _ref3.caseSensitive, | ||
}; | ||
// Allow the findChunks to be overridden in findAll, | ||
// but for backwards compatibility we export as the old name | ||
exports.findChunks = defaultFindChunks; | ||
@@ -210,2 +215,3 @@ /** | ||
*/ | ||
var fillInChunks = exports.fillInChunks = function fillInChunks(_ref4) { | ||
@@ -212,0 +218,0 @@ var chunksToHighlight = _ref4.chunksToHighlight, |
{ | ||
"name": "highlight-words-core", | ||
"description": "Utility functions shared by react-highlight-words and react-native-highlight-words", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"author": "Brian Vaughn <brian.david.vaughn@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132072
223