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

react-select-search

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-search - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

6

dist/cjs/useSelect.js

@@ -50,3 +50,2 @@ "use strict";

var ref = (0, _react.useRef)(null);
var valueRef = (0, _react.useRef)(undefined);

@@ -135,7 +134,2 @@ var _useState = (0, _react.useState)(null),

(0, _react.useEffect)(function () {
if (valueRef.current === defaultValue) {
return;
}
valueRef.current = defaultValue;
setValue((0, _getOptions["default"])(defaultValue, null, options, multiple));

@@ -142,0 +136,0 @@ }, [defaultValue, multiple, options]);

@@ -25,3 +25,2 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

const ref = useRef(null);
const valueRef = useRef(undefined);
const [value, setValue] = useState(null);

@@ -89,7 +88,2 @@ const [search, setSearch] = useState('');

useEffect(() => {
if (valueRef.current === defaultValue) {
return;
}
valueRef.current = defaultValue;
setValue(getOptions(defaultValue, null, options, multiple));

@@ -96,0 +90,0 @@ }, [defaultValue, multiple, options]);

4

package.json
{
"name": "react-select-search",
"version": "3.0.8",
"version": "3.0.9",
"description": "Lightweight select component for React",
"main": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",

@@ -7,0 +7,0 @@ "types": "src/index.d.ts",

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