cron-parser
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -5,3 +5,3 @@ { | ||
"description": "Node.js library for parsing crontab instructions", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"keywords": ["cron", "crontab", "parser"], | ||
@@ -8,0 +8,0 @@ "dependencies": {}, |
@@ -18,3 +18,3 @@ 'use strict'; | ||
CronDate.prototype.addHour = function() { | ||
const prev = this.getTime(); | ||
var prev = this.getTime(); | ||
this._date.add(1, 'hour').startOf('hour'); | ||
@@ -27,3 +27,3 @@ if (this.getTime() <= prev) { | ||
CronDate.prototype.addMinute = function() { | ||
const prev = this.getTime(); | ||
var prev = this.getTime(); | ||
this._date.add(1, 'minute').startOf('minute'); | ||
@@ -36,3 +36,3 @@ if (this.getTime() < prev) { | ||
CronDate.prototype.addSecond = function() { | ||
const prev = this.getTime(); | ||
var prev = this.getTime(); | ||
this._date.add(1, 'second').startOf('second'); | ||
@@ -39,0 +39,0 @@ if (this.getTime() < prev) { |
@@ -550,3 +550,3 @@ 'use strict'; | ||
var current = this._currentDate; | ||
var hasIterated = this._hasIterated; | ||
try { | ||
@@ -559,2 +559,3 @@ this._findSchedule(); | ||
this._currentDate = current; | ||
this._hasIterated = hasIterated; | ||
} | ||
@@ -561,0 +562,0 @@ }; |
{ | ||
"name": "cron-parser", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Node.js library for parsing crontab instructions", | ||
@@ -5,0 +5,0 @@ "main": "lib/parser.js", |
@@ -45,3 +45,2 @@ cron-parser | ||
console.log('Date: ', interval.next().toString()); // Sat Dec 29 2012 00:44:00 GMT+0200 (EET) | ||
console.log('Date: ', interval.next().toUTC().toString()); // Sat Dec 28 2012 22:46:00 GMT+0200 (EET) | ||
} catch (err) { | ||
@@ -48,0 +47,0 @@ console.log('Error: ' + err.message); |
Sorry, the diff of this file is not supported yet
100778
1765
127