Socket
Socket
Sign inDemoInstall

react-bootstrap-daterangepicker

Package Overview
Dependencies
6
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 2.0.0

.babelrc

14

gulpfile.js

@@ -17,4 +17,10 @@ var gulp = require('gulp');

gulp.task('css-copy', function () {
gulp.src('./node_modules/bootstrap-daterangepicker/daterangepicker.css')
// this task downloads the lastest .js and .css from the 'parent'
// library that we are wrapping for react
gulp.task('download', function () {
// download the .js file
download('https://raw.githubusercontent.com/dangrossman/bootstrap-daterangepicker/master/daterangepicker.js')
.pipe(gulp.dest('./lib/'));
// download the .css files
download('https://raw.githubusercontent.com/dangrossman/bootstrap-daterangepicker/master/daterangepicker.css')
.pipe(gulp.dest('./css/'));

@@ -25,3 +31,3 @@ });

var downloadedOptions = require('./lib/get-options')(),
options = fs.readFileSync('./node_modules/bootstrap-daterangepicker/daterangepicker.js', 'utf-8')
options = fs.readFileSync('./lib/daterangepicker.js', 'utf-8')
.toString().split(' ').filter(function (item) {

@@ -146,3 +152,3 @@ return item.indexOf('options.') === 0;

gulp.task('update', ['css-copy', 'get-options']);
gulp.task('update', ['download', 'get-options']);
gulp.task('build', ['lint', 'fonts', 'app-content', 'demo']);

@@ -149,0 +155,0 @@ gulp.task('default', ['build', 'server', 'watch']);

@@ -6,2 +6,3 @@ "use strict";

"<input>",
"alwaysShowCalendars",
"applyClass",

@@ -34,2 +35,2 @@ "autoApply",

];
};
};

@@ -6,3 +6,3 @@ 'use strict';

* A slightly modified version of bootstrap-daterangepicker.js for use in react and npm.
* Original copyright in: ./node_modules/bootstrap-daterangepicker/
* Original copyright in: ./lib/daterangepicker.js
*/

@@ -51,2 +51,11 @@ var React = require('react');

componentDidMount: function () {
this.initializeDateRangePicker();
},
componentWillUnmount: function () {
this.removeDateRangePicker();
},
removeDateRangePicker: function() {
this.$picker.data('daterangepicker').remove();
},
initializeDateRangePicker: function() {
var $this = this;

@@ -63,5 +72,2 @@ $ = (window.jQuery && window.jQuery.fn.daterangepicker)? window.jQuery : $;

},
componentWillUnmount: function () {
this.$picker.data('daterangepicker').remove();
},
render: function () {

@@ -68,0 +74,0 @@ this.setOptionsFromProps();

{
"name": "react-bootstrap-daterangepicker",
"version": "1.0.6",
"version": "2.0.0",
"description": "A date/time picker for react (using bootstrap). This is a react port of: https://github.com/dangrossman/bootstrap-daterangepicker",

@@ -20,29 +20,32 @@ "main": "./lib/index.js",

"dependencies": {
"bootstrap-daterangepicker": "^2.1.13"
"bootstrap-daterangepicker": "^2.1.19"
},
"peerDependencies": {
"jquery": "^1.11.3",
"react": "^0.14.0"
"jquery": ">=1.11.3||>=2.0.0",
"react": ">=0.14.0||>=15.0.0"
},
"devDependencies": {
"babelify": "^6.3.0",
"bootstrap": "^3.3.5",
"cheerio": "^0.19.0",
"gulp": "^3.9.0",
"gulp-babel": "^5.3.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"babelify": "^7.2.0",
"bootstrap": "^3.3.6",
"cheerio": "^0.20.0",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-browserify": "^0.5.1",
"gulp-connect": "^2.2.0",
"gulp-connect": "^3.1.0",
"gulp-cssmin": "^0.1.7",
"gulp-download": "0.0.1",
"gulp-less": "^3.0.3",
"gulp-nodemon": "^2.0.4",
"gulp-less": "^3.0.5",
"gulp-nodemon": "^2.0.6",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.4.2",
"gulp-uglify": "^1.5.3",
"jsxhint": "^0.15.1",
"request": "^2.65.0",
"wordwrap": "^1.0.0",
"react": "^0.14.0",
"react-dom": "^0.14.0",
"react-bootstrap": "^0.27.2",
"moment": "^2.10.6"
"moment": "^2.12.0",
"react": "^0.14.7",
"react-bootstrap": "^0.28.3",
"react-dom": "^0.14.7",
"request": "^2.69.0",
"wordwrap": "^1.0.0"
},

@@ -49,0 +52,0 @@ "keywords": [

@@ -49,7 +49,7 @@ # react-bootstrap-daterangepicker

- **&lt;input&gt;, applyClass, autoApply, autoUpdateInput, buttonClasses,
cancelClass, dateLimit, drops, endDate, isInvalidDate, linkedCalendars,
locale, maxDate, minDate, opens, parentEl, ranges, showDropdowns,
showWeekNumbers, singleDatePicker, startDate, template, timePicker,
timePicker24Hour, timePickerIncrement, timePickerSeconds, timeZone**
- **&lt;input&gt;, alwaysShowCalendars, applyClass, autoApply, autoUpdateInput,
buttonClasses, cancelClass, dateLimit, drops, endDate, isInvalidDate,
linkedCalendars, locale, maxDate, minDate, opens, parentEl, ranges,
showDropdowns, showWeekNumbers, singleDatePicker, startDate, template,
timePicker, timePicker24Hour, timePickerIncrement, timePickerSeconds, timeZone**

@@ -56,0 +56,0 @@ You can listen to the following 7 events:

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc