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 2.2.3 to 2.2.4

2

dist/cjs/lib/getDisplayValue.js

@@ -10,3 +10,3 @@ "use strict";

return value.map(function (singleOption) {
return singleOption.name;
return singleOption && singleOption.name;
}).join(', ');

@@ -13,0 +13,0 @@ }

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

_react["default"].createElement("button", _extends({
type: "button",
className: className

@@ -215,0 +216,0 @@ }, domProps), option.name)

export default function getDisplayValue(value) {
if (value && typeof value === 'object') {
if (Array.isArray(value)) {
return value.map(singleOption => singleOption.name).join(', ');
return value.map(singleOption => singleOption && singleOption.name).join(', ');
}

@@ -6,0 +6,0 @@

@@ -189,2 +189,3 @@ 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); }

React.createElement("button", _extends({
type: "button",
className: className

@@ -191,0 +192,0 @@ }, domProps), option.name),

{
"name": "react-select-search",
"version": "2.2.3",
"version": "2.2.4",
"description": "Lightweight select component for React",

@@ -5,0 +5,0 @@ "main": "dist/esm/index.js",

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