cron-parser
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -5,3 +5,3 @@ { | ||
"description": "Node.js library for parsing crontab instructions", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"keywords": ["cron", "crontab", "parser"], | ||
@@ -8,0 +8,0 @@ "dependencies": {}, |
@@ -217,5 +217,3 @@ 'use strict'; | ||
if (result > max) { | ||
stack.push(result); | ||
} | ||
stack.push(result); | ||
} | ||
@@ -226,2 +224,9 @@ } | ||
if (atoms.length > 1) { | ||
if (field !== 'dayOfWeek') { | ||
var pattern = /\D/g; | ||
atoms.sort(function (a, b) { | ||
return parseInt(a.replace(pattern, ''), 10) - parseInt(b.replace(pattern, ''), 10); | ||
}); | ||
} | ||
for (var i = 0, c = atoms.length; i < c; i++) { | ||
@@ -615,3 +620,3 @@ handleResult(parseRepeat(atoms[i])); | ||
if (!options.currentDate) { | ||
if (typeof options.currentDate === 'undefined') { | ||
options.currentDate = new CronDate(undefined, self._tz); | ||
@@ -618,0 +623,0 @@ } |
{ | ||
"name": "cron-parser", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Node.js library for parsing crontab instructions", | ||
@@ -5,0 +5,0 @@ "main": "lib/parser.js", |
Sorry, the diff of this file is not supported yet
98080
1720