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

rmc-picker

Package Overview
Dependencies
Maintainers
4
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-picker - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

10

es/Picker.js

@@ -123,3 +123,4 @@ import _defineProperty from 'babel-runtime/helpers/defineProperty';

_props$indicatorClass = props.indicatorClassName,
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass;
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass,
children = props.children;
var selectedValue = this.state.selectedValue;

@@ -129,4 +130,3 @@

var selectedItemClassName = itemClassName + ' ' + prefixCls + '-item-selected';
// compatibility for preact
var items = [].concat(props.children).map(function (item) {
var map = function map(item) {
var _item$props = item.props,

@@ -143,3 +143,5 @@ _item$props$className = _item$props.className,

);
});
};
// compatibility for preact
var items = React.Children ? React.Children.map(children, map) : [].concat(children).map(map);
var pickerCls = (_pickerCls = {}, _defineProperty(_pickerCls, props.className, !!props.className), _defineProperty(_pickerCls, prefixCls, true), _pickerCls);

@@ -146,0 +148,0 @@ return React.createElement(

@@ -152,3 +152,4 @@ 'use strict';

_props$indicatorClass = props.indicatorClassName,
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass;
indicatorClassName = _props$indicatorClass === undefined ? '' : _props$indicatorClass,
children = props.children;
var selectedValue = this.state.selectedValue;

@@ -158,4 +159,3 @@

var selectedItemClassName = itemClassName + ' ' + prefixCls + '-item-selected';
// compatibility for preact
var items = [].concat(props.children).map(function (item) {
var map = function map(item) {
var _item$props = item.props,

@@ -172,3 +172,5 @@ _item$props$className = _item$props.className,

);
});
};
// compatibility for preact
var items = _react2['default'].Children ? _react2['default'].Children.map(children, map) : [].concat(children).map(map);
var pickerCls = (_pickerCls = {}, (0, _defineProperty3['default'])(_pickerCls, props.className, !!props.className), (0, _defineProperty3['default'])(_pickerCls, prefixCls, true), _pickerCls);

@@ -175,0 +177,0 @@ return _react2['default'].createElement(

2

package.json
{
"name": "rmc-picker",
"version": "4.0.3",
"version": "4.0.4",
"description": "React Mobile Picker Component(web and react-native)",

@@ -5,0 +5,0 @@ "keywords": [

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