Comparing version 3.0.0-beta.2 to 3.0.0-beta.3
@@ -0,1 +1,12 @@ | ||
## [3.0.0-beta.3](https://github.com/kelektiv/node-cron/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2023-08-15) | ||
### β Breaking changes | ||
* return empty array from nextDates when called without argument (#519) | ||
### π Bug Fixes | ||
* return empty array from nextDates when called without argument ([#519](https://github.com/kelektiv/node-cron/issues/519)) ([e65c3dc](https://github.com/kelektiv/node-cron/commit/e65c3dc6c334b8d4df0da317b75494d78cd5d52b)) | ||
## [3.0.0-beta.2](https://github.com/kelektiv/node-cron/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2023-08-15) | ||
@@ -2,0 +13,0 @@ |
@@ -109,3 +109,3 @@ function CronJob(CronTime, spawn) { | ||
CJ.prototype.nextDates = function (i) { | ||
return this.cronTime.sendAt(i); | ||
return this.cronTime.sendAt(i || 0); | ||
}; | ||
@@ -112,0 +112,0 @@ |
{ | ||
"name": "cron", | ||
"description": "Cron jobs for your node", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0-beta.3", | ||
"author": "Nick Campbell <nicholas.j.campbell@gmail.com> (https://github.com/ncb000gt)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -55,3 +55,3 @@ <p align="center"> | ||
'* * * * * *', | ||
function() { | ||
function () { | ||
console.log('You will see this message every second'); | ||
@@ -129,2 +129,3 @@ }, | ||
- `lastDate` - Tells you the last execution date. | ||
- `nextDate` - Provides the next date that will trigger an `onTick`. | ||
- `nextDates` - Provides an array of the next set of dates that will trigger an `onTick`. | ||
@@ -131,0 +132,0 @@ - `fireOnTick` - Allows you to override the `onTick` calling behavior. This matters so only do this if you have a really good reason to do so. |
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
62108
159