cron-time-generator
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -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. */ |
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
48624
13
1300