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

react-daypicker

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-daypicker - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

12

lib/DayPicker.js

@@ -13,2 +13,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _moment = require('moment');

@@ -34,4 +38,4 @@

var DayPicker = function (_React$Component) {
_inherits(DayPicker, _React$Component);
var DayPicker = function (_Component) {
_inherits(DayPicker, _Component);

@@ -258,8 +262,8 @@ function DayPicker(props) {

return DayPicker;
}(_react2.default.Component);
}(_react.Component);
DayPicker.propTypes = {
active: _reactMomentProptypes2.default.momentObj,
onDayClick: _react2.default.PropTypes.func.isRequired
onDayClick: _propTypes2.default.func.isRequired
};
exports.default = DayPicker;
{
"name": "react-daypicker",
"version": "1.0.5",
"version": "1.1.0",
"description": "A simple datepicker inspired by Pikaday.",

@@ -18,3 +18,4 @@ "main": "lib/DayPicker.js",

"moment": "2.10 - 2.14 || ^2.15.1",
"react": ">=0.14"
"react": ">=0.15",
"prop-types": ">=15.6"
},

@@ -21,0 +22,0 @@ "devDependencies": {

@@ -1,2 +0,3 @@

import React from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';

@@ -6,6 +7,6 @@ import momentPropTypes from 'react-moment-proptypes';

export default class DayPicker extends React.Component {
export default class DayPicker extends Component {
static propTypes = {
active: momentPropTypes.momentObj,
onDayClick: React.PropTypes.func.isRequired,
onDayClick: PropTypes.func.isRequired,
};

@@ -12,0 +13,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