Socket
Socket
Sign inDemoInstall

cron

Package Overview
Dependencies
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron - npm Package Compare versions

Comparing version 3.0.0-beta.2 to 3.0.0-beta.3

11

CHANGELOG.md

@@ -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 @@

2

lib/job.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc