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

hit-highlighter

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hit-highlighter - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

dist/hit-highlighter.1.0.2.js

14

index.js

@@ -26,2 +26,16 @@ // Default hightlight code object

// const defaultProperties = {
// highlightStart: '<span class="">',
// highlightEnd: '</span>',
// itemMaxWords: '0'
// }
// const newHighlight = function (query, item, properties) {
// properties = {
// ...defaultProperties,
// ...properties
// }
// }
module.exports = highlight
// module.exports = newHighlight

12

package.json
{
"name": "hit-highlighter",
"version": "1.0.1",
"version": "1.0.3",
"description": "Small and simple hit highlighter for search engines running in the browser and Node.js",

@@ -21,7 +21,7 @@ "main": "index.js",

"devDependencies": {
"standard": "^13.0.2",
"webpack": "^4.36.1",
"webpack-cli": "^3.3.6",
"tape": "^4.11.0",
"tape-run": "^6.0.0"
"standard": "^14.3.1",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11",
"tape": "^4.13.2",
"tape-run": "^6.0.1"
},

@@ -28,0 +28,0 @@ "author": "Espen Klem",

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