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.2 to 1.0.3

7

lib/DayPicker.js

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

var _reactMomentProptypes = require('react-moment-proptypes');
var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes);
var _classnames = require('classnames');

@@ -256,6 +260,5 @@

DayPicker.propTypes = {
active: _react2.default.PropTypes.object,
active: _reactMomentProptypes2.default.momentObj,
onDayClick: _react2.default.PropTypes.func.isRequired
};
exports.default = DayPicker;
{
"name": "react-daypicker",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple datepicker inspired by Pikaday.",

@@ -32,9 +32,12 @@ "main": "lib/DayPicker.js",

"homepage": "https://github.com/cymen/react-daypicker",
"bugs": {
"url": "https://github.com/cymen/react-daypicker/issues"
},
"bugs": {
"url": "https://github.com/cymen/react-daypicker/issues"
},
"scripts": {
"build": "babel src -d lib && ./node_modules/node-sass/bin/node-sass src/DayPicker.scss > lib/DayPicker.css",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"react-moment-proptypes": "^1.2.0"
}
}

@@ -60,4 +60,8 @@ # react-daypicker

No direct dependencies. Peer dependencies:
### Direct
* react-moment-proptypes
### Peer
* React

@@ -64,0 +68,0 @@ * Moment.js

import React from 'react';
import moment from 'moment';
import momentPropTypes from 'react-moment-proptypes';
import classNames from 'classnames';
class DayPicker extends React.Component {
export default class DayPicker extends React.Component {
static propTypes = {
active: momentPropTypes.momentObj,
onDayClick: React.PropTypes.func.isRequired,
};
constructor(props) {

@@ -155,8 +161,1 @@ super(props);

}
DayPicker.propTypes = {
active: React.PropTypes.object,
onDayClick: React.PropTypes.func.isRequired,
};
export default DayPicker;

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