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

react-datetime-picker

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-datetime-picker - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

6

dist/DateTimeInput.js

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

return {
hour: value ? (0, _dates.convert12to24)(parseInt(value, 10), prevState.amPm) : null
hour: value ? (0, _dates.convert12to24)(parseInt(value, 10), prevState.amPm).toString() : ''
};

@@ -312,3 +312,3 @@ }, _this.onChangeExternal);

_this.setState({
hour: value ? parseInt(value, 10) : null
hour: value
}, _this.onChangeExternal);

@@ -321,3 +321,3 @@

{
_this.setState(_defineProperty({}, name, value ? parseInt(value, 10) : null), _this.onChangeExternal);
_this.setState(_defineProperty({}, name, value), _this.onChangeExternal);
}

@@ -324,0 +324,0 @@ }

{
"name": "react-datetime-picker",
"version": "3.2.0",
"version": "3.2.1",
"description": "A date range picker for your React app.",

@@ -65,3 +65,3 @@ "main": "dist/entry.js",

"@babel/preset-react": "^7.9.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.3.1",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.0",
"babel-eslint": "^10.0.0",

@@ -72,3 +72,3 @@ "enzyme": "^3.10.0",

"jest": "^26.6.0",
"less": "^3.8.1",
"less": "^4.0.0",
"react": "^17.0.0",

@@ -82,2 +82,6 @@ "react-dom": "^17.0.0",

},
"resolutions": {
"rimraf@2.6.3": "^2.6.3",
"semver@7.0.0": "^7.0.0"
},
"files": [

@@ -84,0 +88,0 @@ "LICENSE",

@@ -153,5 +153,5 @@ [![npm](https://img.shields.io/npm/v/react-datetime-picker.svg)](https://www.npmjs.com/package/react-datetime-picker) ![downloads](https://img.shields.io/npm/dt/react-datetime-picker.svg) [![CI](https://github.com/wojtekmaj/react-datetime-picker/workflows/CI/badge.svg)](https://github.com/wojtekmaj/react-datetime-picker/actions) ![dependencies](https://img.shields.io/david/wojtekmaj/react-datetime-picker.svg

<a href="mailto:kontakt@wojtekmaj.pl">kontakt@wojtekmaj.pl</a><br />
<a href="http://wojtekmaj.pl">http://wojtekmaj.pl</a>
<a href="https://wojtekmaj.pl">https://wojtekmaj.pl</a>
</td>
</tr>
</table>

@@ -444,3 +444,3 @@ import React, { PureComponent } from 'react';

(prevState) => ({
hour: value ? convert12to24(parseInt(value, 10), prevState.amPm) : null,
hour: value ? convert12to24(parseInt(value, 10), prevState.amPm).toString() : '',
}),

@@ -453,3 +453,3 @@ this.onChangeExternal,

this.setState(
{ hour: value ? parseInt(value, 10) : null },
{ hour: value },
this.onChangeExternal,

@@ -461,3 +461,3 @@ );

this.setState(
{ [name]: value ? parseInt(value, 10) : null },
{ [name]: value },
this.onChangeExternal,

@@ -464,0 +464,0 @@ );

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