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

react-flatpickr

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flatpickr - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

10

build/index.js

@@ -21,2 +21,4 @@ 'use strict';

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -72,6 +74,10 @@

value: function render() {
var _props = this.props,
onChange = _props.onChange,
props = _objectWithoutProperties(_props, ['onChange']);
var id = this.state.id;
// ignore onChange
return _react2.default.createElement('input', _extends({}, this.props, { id: id }));
return _react2.default.createElement('input', _extends({}, props, { id: id }));
}

@@ -78,0 +84,0 @@ }]);

@@ -34,6 +34,7 @@

render() {
const { onChange, ...props } = this.props
const { id } = this.state
// ignore onChange
return (
<input {...this.props} id={id} />
<input {...props} id={id} />
)

@@ -40,0 +41,0 @@ }

4

package.json
{
"name": "react-flatpickr",
"version": "1.1.0",
"version": "1.1.1",
"description": "flatpickr for React",

@@ -25,3 +25,3 @@ "main": "build/index.js",

"dependencies": {
"flatpickr": "^2.0.5"
"flatpickr": "^2.1.1"
},

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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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