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.1.1 to 1.2.0

dist/EveryTime.d.ts

2

dist/index.js

@@ -156,3 +156,3 @@ "use strict";

static onSpecificDays(days) {
if (!Array.isArray(days) || days.length) {
if (!Array.isArray(days) || days.length === 0) {
throw new Error("onSpecificDays requires days to be an array of days string.");

@@ -159,0 +159,0 @@ }

@@ -175,3 +175,3 @@ import Helpers from './helpers';

static onSpecificDays(days: (string | number)[]) {
if (!Array.isArray(days) || days.length) {
if (!Array.isArray(days) || days.length === 0) {
throw new Error("onSpecificDays requires days to be an array of days string.");

@@ -178,0 +178,0 @@ }

{
"name": "cron-time-generator",
"version": "1.1.1",
"version": "1.2.0",
"description": "Cron Time Expression Generator",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

# Cron-Time
Cron Time Expression Generator/Builder written in typescript.
Cron Time Expression Generator/Builder written in Typescript.

@@ -5,0 +5,0 @@ Tested on [CronTab.Guru](https://crontab.guru)

@@ -20,3 +20,3 @@ {

/* Generates corresponding '.d.ts' file. */
"declarationDir": "dist/types",
"declarationDir": "dist",
/* Generates corresponding '.d.ts' file. */

@@ -23,0 +23,0 @@ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */

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