vue-hotel-datepicker
Advanced tools
Comparing version 4.4.3 to 4.5.0
{ | ||
"name": "vue-hotel-datepicker", | ||
"version": "4.4.3", | ||
"version": "4.5.0", | ||
"description": "A responsive date range picker for Vue.js that displays the number of nights selected and allow several useful options like custom check-in/check-out rules, localization support and more", | ||
@@ -27,9 +27,2 @@ "author": "krystalcampioni <hello@krystalcampioni.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build --target lib --name vueHotelDatepicker ./src/index.js", | ||
"build-package": "vue-cli-service build --target lib --name vueHotelDatepicker ./src/index.js", | ||
"test:unit": "vue-cli-service test:unit", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"files": [ | ||
@@ -65,3 +58,10 @@ "dist/*", | ||
"vue-template-compiler": "^2.6.14" | ||
}, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build --target lib --name vueHotelDatepicker ./src/index.js", | ||
"build-package": "vue-cli-service build --target lib --name vueHotelDatepicker ./src/index.js", | ||
"test:unit": "vue-cli-service test:unit", | ||
"lint": "vue-cli-service lint" | ||
} | ||
} | ||
} |
@@ -102,2 +102,13 @@ /* eslint-disable vars-on-top */ | ||
}, | ||
getPreviousMonth(date) { | ||
let prevMonth | ||
if (date.getMonth() === 0) { | ||
prevMonth = new Date(date.getFullYear() - 1, 11, 1) | ||
} else { | ||
prevMonth = new Date(date.getFullYear(), date.getMonth() - 1, 1) | ||
} | ||
return prevMonth | ||
}, | ||
handleTouchStart(evt) { | ||
@@ -104,0 +115,0 @@ this.isTouchMove = false |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2130221
38
16394