cron-expression-validator
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -209,3 +209,3 @@ const CONSTANTS = require('./constants'); | ||
const isValidateMonthNo = function(monthArr, val, endVal) { | ||
return monthArr.every(month => { | ||
return monthArr.every(function (month) { | ||
return parseInt(month) >= val && parseInt(month) <= endVal; | ||
@@ -216,3 +216,3 @@ }) | ||
const isValidateMonthStr = function(monthArr, dataArr) { | ||
return monthArr.every(month => { | ||
return monthArr.every(function (month) { | ||
return dataArr.includes(month.toLowerCase()); | ||
@@ -279,3 +279,3 @@ }) | ||
const isValidateYear = function(yearArr) { | ||
return yearArr.every(year => { | ||
return yearArr.every(function (year) { | ||
return parseInt(year) >= MIN_YEAR && parseInt(year) <= MAX_YEAR; | ||
@@ -364,5 +364,5 @@ }) | ||
const isValidateTime = function(dataArray, value) { | ||
return dataArray.every(element => { | ||
return dataArray.every(function (element) { | ||
return element >= 0 && element <= value; | ||
}) | ||
} |
{ | ||
"name": "cron-expression-validator", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Validate cron expressions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
23461