Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cron-time-generator

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-time-generator - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

15

EveryTime.js

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

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