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

cron-expression-validator

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-expression-validator - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

8

index.js

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

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