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

cron-validate

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-validate - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.3.1](https://github.com/Airfooox/cron-validate/compare/v1.3.0...v1.3.1) (2020-08-21)
### Bug Fixes
* fix wrong wildcard ('*') check with lower-/upperLimit ([df8b6f2](https://github.com/Airfooox/cron-validate/commit/df8b6f2be19a803d8927e6b25dd71875b5bc262a))
# [1.3.0](https://github.com/Airfooox/cron-validate/compare/v1.2.0...v1.3.0) (2020-08-14)

@@ -2,0 +9,0 @@

4

lib/helper.js

@@ -11,5 +11,5 @@ "use strict";

return (options[cronFieldType].lowerLimit ===
options.preset[cronFieldType].lowerLimit &&
options.preset[cronFieldType].minValue &&
options[cronFieldType].upperLimit ===
options.preset[cronFieldType].upperLimit);
options.preset[cronFieldType].maxValue);
};

@@ -16,0 +16,0 @@ const checkSingleElementWithinLimits = (element, cronFieldType, options) => {

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

exports.validateOptions = (inputOptions) => {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
try {

@@ -194,28 +194,28 @@ // load default presets

seconds: {
lowerLimit: preset.seconds.lowerLimit,
upperLimit: preset.seconds.upperLimit,
lowerLimit: (_g = preset.seconds.lowerLimit) !== null && _g !== void 0 ? _g : preset.seconds.minValue,
upperLimit: (_h = preset.seconds.upperLimit) !== null && _h !== void 0 ? _h : preset.seconds.maxValue,
},
minutes: {
lowerLimit: preset.minutes.lowerLimit,
upperLimit: preset.minutes.upperLimit,
lowerLimit: (_j = preset.minutes.lowerLimit) !== null && _j !== void 0 ? _j : preset.minutes.minValue,
upperLimit: (_k = preset.minutes.upperLimit) !== null && _k !== void 0 ? _k : preset.minutes.maxValue,
},
hours: {
lowerLimit: preset.hours.lowerLimit,
upperLimit: preset.hours.upperLimit,
lowerLimit: (_l = preset.hours.lowerLimit) !== null && _l !== void 0 ? _l : preset.hours.minValue,
upperLimit: (_m = preset.hours.upperLimit) !== null && _m !== void 0 ? _m : preset.hours.maxValue,
},
daysOfMonth: {
lowerLimit: preset.daysOfMonth.lowerLimit,
upperLimit: preset.daysOfMonth.upperLimit,
lowerLimit: (_o = preset.daysOfMonth.lowerLimit) !== null && _o !== void 0 ? _o : preset.daysOfMonth.minValue,
upperLimit: (_p = preset.daysOfMonth.upperLimit) !== null && _p !== void 0 ? _p : preset.daysOfMonth.maxValue,
},
months: {
lowerLimit: preset.months.lowerLimit,
upperLimit: preset.months.upperLimit,
lowerLimit: (_q = preset.months.lowerLimit) !== null && _q !== void 0 ? _q : preset.months.minValue,
upperLimit: (_r = preset.months.upperLimit) !== null && _r !== void 0 ? _r : preset.months.maxValue,
},
daysOfWeek: {
lowerLimit: preset.daysOfWeek.lowerLimit,
upperLimit: preset.daysOfWeek.upperLimit,
lowerLimit: (_s = preset.daysOfWeek.lowerLimit) !== null && _s !== void 0 ? _s : preset.daysOfWeek.minValue,
upperLimit: (_t = preset.daysOfWeek.upperLimit) !== null && _t !== void 0 ? _t : preset.daysOfWeek.maxValue,
},
years: {
lowerLimit: preset.years.lowerLimit,
upperLimit: preset.years.upperLimit,
lowerLimit: (_u = preset.years.lowerLimit) !== null && _u !== void 0 ? _u : preset.years.minValue,
upperLimit: (_v = preset.years.upperLimit) !== null && _v !== void 0 ? _v : preset.years.maxValue,
},

@@ -222,0 +222,0 @@ }), inputOptions.override);

{
"name": "cron-validate",
"version": "1.3.0",
"version": "1.3.1",
"description": "cron-validate is a cron-expression validator written in TypeScript.",

@@ -83,13 +83,13 @@ "scripts": {

"@semantic-release/git": "9.0.0",
"@types/jest": "26.0.9",
"@types/jest": "26.0.10",
"@types/node": "13.13.15",
"@types/yup": "0.29.4",
"@typescript-eslint/eslint-plugin": "3.9.0",
"@typescript-eslint/parser": "3.9.0",
"@types/yup": "0.29.6",
"@typescript-eslint/eslint-plugin": "3.9.1",
"@typescript-eslint/parser": "3.9.1",
"env-cmd": "10.1.0",
"eslint": "7.6.0",
"eslint": "7.7.0",
"eslint-config-airbnb-base": "14.2.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-import": "2.22.0",
"jest": "26.4.0",
"jest": "26.4.1",
"nodemon": "2.0.4",

@@ -96,0 +96,0 @@ "prettier": "2.0.5",

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