You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-cron

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-cron - npm Package Compare versions

Comparing version

to
4.0.2

4

dist/cjs/scheduler/runner.js

@@ -162,5 +162,9 @@ "use strict";

function getDelay(timeMatcher, currentDate) {
const maxDelay = 86400000;
const nextRun = timeMatcher.getNextMatch(currentDate);
const now = new Date();
const delay = nextRun.getTime() - now.getTime();
if (delay > maxDelay) {
return maxDelay;
}
return Math.max(0, delay);

@@ -167,0 +171,0 @@ }

@@ -162,5 +162,9 @@ "use strict";

function getDelay(timeMatcher, currentDate) {
const maxDelay = 86400000;
const nextRun = timeMatcher.getNextMatch(currentDate);
const now = new Date();
const delay = nextRun.getTime() - now.getTime();
if (delay > maxDelay) {
return maxDelay;
}
return Math.max(0, delay);

@@ -167,0 +171,0 @@ }

2

package.json
{
"name": "node-cron",
"version": "4.0.1",
"version": "4.0.2",
"description": "A Lightweight Task Scheduler for Node.js",

@@ -5,0 +5,0 @@ "author": "Lucas Merencia",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet