Comparing version 2.2.0 to 2.2.8
@@ -86,3 +86,3 @@ /*! | ||
allWeeks: byweekday.filter(function (weekday) { | ||
return !Boolean(weekday.n) | ||
return !weekday.n | ||
}), | ||
@@ -123,2 +123,3 @@ someWeeks: byweekday.filter(function (weekday) { | ||
ToText.IMPLEMENTED[RRule.HOURLY] = common | ||
ToText.IMPLEMENTED[RRule.MINUTELY] = common | ||
ToText.IMPLEMENTED[RRule.DAILY] = ['byhour'].concat(common) | ||
@@ -198,2 +199,11 @@ ToText.IMPLEMENTED[RRule.WEEKLY] = common | ||
MINUTELY: function () { | ||
var gettext = this.gettext | ||
if (this.options.interval !== 1) this.add(this.options.interval) | ||
this.add(this.plural(this.options.interval) | ||
? gettext('minutes') : gettext('minutes')) | ||
}, | ||
DAILY: function () { | ||
@@ -330,3 +340,3 @@ var gettext = this.gettext | ||
} | ||
// this.add(gettext('DAY')) | ||
// this.add(gettext('DAY')) | ||
}, | ||
@@ -409,2 +419,5 @@ | ||
list: function (arr, callback, finalDelim, delim) { | ||
if (!(arr instanceof Array)) { | ||
arr = [arr] | ||
} | ||
var delimJoin = function (array, delimiter, finalDelimiter) { | ||
@@ -575,2 +588,10 @@ var list = '' | ||
case 'minute(s)': | ||
options.freq = RRule.MINUTELY | ||
if (ttr.nextSymbol()) { | ||
ON() | ||
F() | ||
} | ||
break | ||
case 'month(s)': | ||
@@ -944,2 +965,3 @@ options.freq = RRule.MONTHLY | ||
'hour(s)': /^hours?/i, | ||
'minute(s)': /^minutes?/i, | ||
'month(s)': /^months?/i, | ||
@@ -994,2 +1016,2 @@ 'year(s)': /^years?/i, | ||
} | ||
})) | ||
})); // eslint-disable-line |
{ | ||
"name": "rrule", | ||
"version": "2.2.0", | ||
"version": "2.2.8", | ||
"description": "JavaScript library for working with recurrence rules for calendar dates.", | ||
@@ -23,4 +23,4 @@ "homepage": "http://jakubroztocil.github.io/rrule/", | ||
"devDependencies": { | ||
"mocha": "^2.3.4", | ||
"standard": "^5.4.1" | ||
"mocha": "^3.2.0", | ||
"standard": "^8.6.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "standard": { |
@@ -10,2 +10,3 @@ rrule.js | ||
[![Downloads][downloads-image]][downloads-url] | ||
[![Gitter][gitter-image]][gitter-url] | ||
@@ -244,3 +245,3 @@ rrule.js supports recurrence rules as defined in the [iCalendar | ||
frequency, and a byweekday of (<code>RRule.MO</code>, <code>RRule.TU</code>, | ||
<code>RRule.WE</code>, <code>RRule.TH</code>, <code>FR</code>), will result in | ||
<code>RRule.WE</code>, <code>RRule.TH</code>, <code>RRule.FR</code>), will result in | ||
the last | ||
@@ -657,3 +658,4 @@ work day of every month. | ||
### Changelog | ||
* 2.2.0-dev | ||
* 2.2.0 (2017-03-11) | ||
* Added support `RRuleSet`, which allows more complex recurrence setups, | ||
@@ -724,1 +726,4 @@ mixing multiple rules, dates, exclusion rules, and exclusion dates. | ||
[js-standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat | ||
[gitter-url]: https://gitter.im/rrule-js/Lobby | ||
[gitter-image]: https://img.shields.io/gitter/room/nwjs/nw.js.svg |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
124941
2922
726