Comparing version
@@ -17,3 +17,2 @@ "use strict"; | ||
function schedule(expression, func, options) { | ||
options = Object.assign({ scheduled: true }, options); | ||
const taskOptions = { | ||
@@ -31,3 +30,6 @@ name: options?.name, | ||
const taskOptions = { | ||
timezone: options?.timezone | ||
name: options?.name, | ||
timezone: options?.timezone, | ||
noOverlap: options?.noOverlap, | ||
maxExecutions: options?.maxExecutions, | ||
}; | ||
@@ -34,0 +36,0 @@ let task; |
@@ -17,3 +17,2 @@ "use strict"; | ||
function schedule(expression, func, options) { | ||
options = Object.assign({ scheduled: true }, options); | ||
const taskOptions = { | ||
@@ -31,3 +30,6 @@ name: options?.name, | ||
const taskOptions = { | ||
timezone: options?.timezone | ||
name: options?.name, | ||
timezone: options?.timezone, | ||
noOverlap: options?.noOverlap, | ||
maxExecutions: options?.maxExecutions, | ||
}; | ||
@@ -34,0 +36,0 @@ let task; |
{ | ||
"name": "node-cron", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"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
216038
0.06%3145
0.13%