Socket
Socket
Sign inDemoInstall

react-flatpickr

Package Overview
Dependencies
Maintainers
2
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 3.6.1 to 3.6.2

12

build/index.js

@@ -45,7 +45,7 @@ 'use strict';

_createClass(DateTimePicker, [{
key: 'componentDidReceiveProps',
value: function componentDidReceiveProps(props, prevProps) {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(props) {
var options = props.options;
var prevOptions = prevProps.options;
var prevOptions = this.props.options;

@@ -65,4 +65,4 @@ // Add prop hooks to options

// Add prev ones too so we can compare against them later
if (prevProps.hasOwnProperty(hook)) {
prevOptions[hook] = prevProps[hook];
if (this.props.hasOwnProperty(hook)) {
prevOptions[hook] = this.props[hook];
}

@@ -101,3 +101,3 @@ }

if (props.hasOwnProperty('value') && props.value !== prevProps.value) {
if (props.hasOwnProperty('value') && props.value !== this.props.value) {
this.flatpickr.setDate(props.value, false);

@@ -104,0 +104,0 @@ }

@@ -42,5 +42,5 @@

componentDidReceiveProps(props, prevProps) {
componentWillReceiveProps(props) {
const { options } = props
const prevOptions = prevProps.options
const prevOptions = this.props.options

@@ -53,4 +53,4 @@ // Add prop hooks to options

// Add prev ones too so we can compare against them later
if (prevProps.hasOwnProperty(hook)) {
prevOptions[hook] = prevProps[hook]
if (this.props.hasOwnProperty(hook)) {
prevOptions[hook] = this.props[hook]
}

@@ -75,3 +75,3 @@ }

if (props.hasOwnProperty('value') && props.value !== prevProps.value) {
if (props.hasOwnProperty('value') && props.value !== this.props.value) {
this.flatpickr.setDate(props.value, false)

@@ -78,0 +78,0 @@ }

{
"name": "react-flatpickr",
"version": "3.6.1",
"version": "3.6.2",
"description": "flatpickr for React",

@@ -5,0 +5,0 @@ "main": "build/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