Comparing version 1.0.7 to 1.0.8
@@ -354,3 +354,3 @@ var exports, | ||
context = cronTime.context; | ||
startNow = cronTime.start; | ||
startNow = cronTime.start || cronTime.startNow; | ||
timeZone = cronTime.timeZone; | ||
@@ -372,5 +372,6 @@ cronTime = cronTime.cronTime; | ||
CronJob.prototype.addCallback = addCallback = function(callback) { | ||
var addCallback = function(callback) { | ||
if (typeof callback == 'function') this._callbacks.push(callback); | ||
} | ||
CronJob.prototype.addCallback = addCallback; | ||
@@ -387,3 +388,3 @@ CronJob.prototype.setTime = function(time) { | ||
CronJob.prototype.start = start = function() { | ||
var start = function() { | ||
if (this.running) return; | ||
@@ -448,2 +449,4 @@ | ||
CronJob.prototype.start = start; | ||
/** | ||
@@ -450,0 +453,0 @@ * Stop the cronjob. |
{ | ||
"name": "cron", | ||
"description": "Cron jobs for your node", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"author": "Nick Campbell <nicholas.j.campbell@gmail.com> (http://github.com/ncb000gt)", | ||
@@ -6,0 +6,0 @@ "bugs" : { |
@@ -39,2 +39,2 @@ var CronJob = require('./lib/cron').CronJob; | ||
console.log('tick: ' + Date.now()); | ||
}).start(); | ||
}, null, true); |
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
37201
997