cron-time-generator
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -68,9 +68,13 @@ // @ts-check | ||
/** | ||
* Every nth Days | ||
* Every nth Days after | ||
* @param $hoursOfDay | ||
* @param $minutesOfDay | ||
*/ | ||
days() { | ||
const day = Helpers.day(); | ||
days($hoursOfDay = 0, $minutesOfDay = 0) { | ||
const day = Helpers.day($hoursOfDay, $minutesOfDay); | ||
if (this.config["at"]) { | ||
this.config["at"] = false; | ||
return Helpers.spliceIntoPosition(2, this.config.at, day); | ||
@@ -88,2 +92,3 @@ } | ||
if (typeof this.interval === "number" && this.interval > 1) { | ||
@@ -97,2 +102,4 @@ return Helpers.spliceIntoPosition(2, "*/" + this.interval, day); | ||
} | ||
} | ||
@@ -103,2 +110,2 @@ | ||
module.exports = EveryTime; | ||
module.exports = EveryTime; |
{ | ||
"name": "cron-time-generator", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Cron Time Expression Generator", | ||
"main": "index.js", | ||
"repository": "https://github.com/trapcodeio/cron-time.git", | ||
"author": "trapcode", | ||
"author": "trapcodeio", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "private": false, |
@@ -102,2 +102,6 @@ # Cron-Time | ||
cronTime.every(7).days(9, 5); | ||
// Every 7 days at 9:05 | ||
cronTime.every('even').hours(); | ||
@@ -104,0 +108,0 @@ // Every Even Hours |
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
16150
417
187