react-highlight-words
Advanced tools
Comparing version 0.13.0 to 0.14.0
{ | ||
"name": "react-highlight-words", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "React component to highlight words within a larger body of text", | ||
@@ -9,3 +9,3 @@ "main": "dist/main.js", | ||
"build:website": "npm run clean:website && cross-env NODE_ENV=production webpack --config webpack.config.website.js -p --bail", | ||
"build:dist": "npm run clean:dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.js --bail", | ||
"build:dist": "npm run clean:dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.cjs.js --bail && cross-env NODE_ENV=production webpack --config webpack.config.dist.umd.js --bail", | ||
"clean": "npm run clean:website && npm run clean:dist", | ||
@@ -84,2 +84,3 @@ "clean:website": "rimraf build", | ||
"latinize": "^0.2.0", | ||
"lodash": "^4.17.10", | ||
"mocha": "^2.3.4", | ||
@@ -86,0 +87,0 @@ "phantomjs2": "^2.0.2", |
@@ -48,3 +48,3 @@ <img src="https://cloud.githubusercontent.com/assets/29597/11913937/0d2dcd78-a629-11e5-83e7-6a17b6d765a5.png" width="260" height="260"> | ||
| sanitize | Function | | Process each search word and text to highlight before comparing (eg remove accents); signature `(text: string): string` | | ||
| searchWords | Array<String> | ✓ | Array of search words. The search terms are treated as RegExps unless `autoEscape` is set. | | ||
| searchWords | Array<String | RegExp> | ✓ | Array of search words. String search terms are automatically cast to RegExps unless `autoEscape` is true. | | ||
| textToHighlight | String | ✓ | Text to highlight matches in | | ||
@@ -51,0 +51,0 @@ | unhighlightClassName | String | | CSS class name applied to unhighlighted text | |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
3149646
13
3872
35
29