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

react-mobile-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mobile-datepicker - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

6

CHANGELOG.md

@@ -0,1 +1,7 @@

v2.0.3 - Tue, 12 Jul 2016 09:15:00 GMT
--------------------------------------
-
v2.0.2 - Tue, 05 Jul 2016 00:48:26 GMT

@@ -2,0 +8,0 @@ --------------------------------------

15

lib/DatePicker.js

@@ -17,3 +17,2 @@ /**

this.state = {
angle: 0,
date: this._productDate(props.date),

@@ -28,3 +27,17 @@ minDate: this._productDate(props.minDate),

componentWillReceiveProps(nextProps) {
this.setState({
date: this._productDate(nextProps.date),
minDate: this._productDate(nextProps.minDate),
maxDate: this._productDate(nextProps.maxDate),
});
}
shouldComponentUpdate(nextProps, nextState) {
return nextState.date.timestamp !== this.state.date.timestamp ||
nextProps.date !== this.props.date ||
nextProps.minDate !== this.props.minDate ||
nextProps.maxDate !== this.props.maxDate;
}
_productDate(date) {

@@ -31,0 +44,0 @@ const nDate = nextDate(date, 0);

6

package.json
{
"name": "react-mobile-datepicker",
"version": "2.0.2",
"version": "2.0.3",
"description": "一个移动端时间选择器react组件",

@@ -62,5 +62,3 @@ "main": "./dist/mobile-datepicker.js",

"webpack-dev-server": "^1.14.1",
"webpack-merge": "^0.12.0"
},
"dependencies": {
"webpack-merge": "^0.12.0",
"react": "^15.2.0",

@@ -67,0 +65,0 @@ "react-dom": "^15.2.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