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.2 to 1.0.3

README.md

7

index.js

@@ -69,2 +69,4 @@ const MONTH_LIST = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];

return isValidateMonthNo(multiDayOfMonthArr, 1, 12);
} else if(typeof dayOfMonth === 'string' && dayOfWeek === '?' && (dayOfMonth.toLowerCase() === 'l' || dayOfMonth.toLowerCase() === 'lw')) {
return true;
} else if(typeof dayOfMonth === 'string' && dayOfWeek === '?') {

@@ -163,2 +165,5 @@ return parseInt(dayOfMonth) >=1 && parseInt(dayOfMonth) <= 31;

})
}
}
console.log(module.exports.isValidCronExpression('4/5 8-4 8/2 LW 1 ? 2015'));

2

package.json
{
"name": "cron-expression-validator",
"version": "1.0.2",
"version": "1.0.3",
"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