Socket
Socket
Sign inDemoInstall

react-search-autocomplete

Package Overview
Dependencies
83
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.2.2 to 8.0.0

3

dist/components/ReactSearchAutocomplete.js

@@ -70,2 +70,4 @@ "use strict";

setSearchString(inputSearchString);
var timeoutId = setTimeout(function () { return setResults(fuseResults(inputSearchString)); }, 0);
return function () { return clearTimeout(timeoutId); };
}, [inputSearchString]);

@@ -158,2 +160,3 @@ (0, react_1.useEffect)(function () {

if (results.length > 0) {
event.preventDefault();
onSelect(results[highlightedItem]);

@@ -160,0 +163,0 @@ setSearchString(results[highlightedItem][resultStringKeyName]);

6

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "7.2.2",
"version": "8.0.0",
"description": "A search box for React",

@@ -59,4 +59,4 @@ "main": "dist/index.js",

"peerDependencies": {
"react": "^17.0.2 || ^16.0.2",
"react-dom": "^17.0.2 || ^16.0.2"
"react": "^17.0.2 || ^16.0.2 || ^18.0.0",
"react-dom": "^17.0.2 || ^16.0.2 || ^18.0.0"
},

@@ -63,0 +63,0 @@ "devDependencies": {

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