moment-holiday
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "moment-holiday", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A Moment.js plugin for handling holidays.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,2 +9,7 @@ # Changelog | ||
## 1.1.1 - 2017-07-17 | ||
## Changed | ||
- `previousHoliday` and `nextHoliday` functions will return a single moment object if `count` is set to `1`. | ||
## 1.1.0 - 2017-07-17 | ||
@@ -27,2 +32,3 @@ ### Added | ||
[Unreleased]: https://github.com/kodie/moment-holiday/compare/v1.0.0...HEAD | ||
[1.1.1]: https://github.com/kodie/moment-holiday/compare/v1.1.0...v1.1.1 | ||
[1.1.0]: https://github.com/kodie/moment-holiday/compare/v1.0.0...v1.1.0 |
@@ -239,2 +239,3 @@ //! moment-holiday.js | ||
if (!w.length) { return false; } | ||
if (w.length === 1) { return w[0]; } | ||
@@ -241,0 +242,0 @@ return w; |
{ | ||
"name": "moment-holiday", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A Moment.js plugin for handling holidays.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -113,3 +113,3 @@ # moment-holiday [![npm version](https://badge.fury.io/js/moment-holiday.svg)](https://badge.fury.io/js/moment-holiday) [![Build Status](https://travis-ci.org/kodie/moment-holiday.svg?branch=master)](https://travis-ci.org/kodie/moment-holiday) | ||
Returns an array containing the previous holidays before the given date. | ||
Returns an array (or a moment object if `count` is set to `1`) containing the previous holidays before the given date. | ||
@@ -130,3 +130,3 @@ #### Use | ||
moment().previousHoliday(); | ||
//[ moment("2017-07-04T00:00:00.000") ] | ||
//moment("2017-07-04T00:00:00.000") | ||
@@ -151,3 +151,3 @@ moment('2001-02-14').previousHolidays(5); | ||
Returns an array containing the next holidays after the given date. | ||
Returns an array (or a moment object if `count` is set to `1`) containing the next holidays after the given date. | ||
@@ -168,3 +168,3 @@ #### Use | ||
moment().nextHoliday(); | ||
//[ moment("2017-09-04T00:00:00.000") ] | ||
//moment("2017-09-04T00:00:00.000") | ||
@@ -171,0 +171,0 @@ moment('2010-05-23').nextHolidays(5); |
25781
463