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

cron-parser

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-parser - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

2

component.json

@@ -5,3 +5,3 @@ {

"description": "Node.js library for parsing crontab instructions",
"version": "2.1.2",
"version": "2.2.0",
"keywords": ["cron", "crontab", "parser"],

@@ -8,0 +8,0 @@ "dependencies": {},

@@ -217,5 +217,3 @@ 'use strict';

if (result > max) {
stack.push(result);
}
stack.push(result);
}

@@ -226,2 +224,9 @@ }

if (atoms.length > 1) {
if (field !== 'dayOfWeek') {
var pattern = /\D/g;
atoms.sort(function (a, b) {
return parseInt(a.replace(pattern, ''), 10) - parseInt(b.replace(pattern, ''), 10);
});
}
for (var i = 0, c = atoms.length; i < c; i++) {

@@ -615,3 +620,3 @@ handleResult(parseRepeat(atoms[i]));

if (!options.currentDate) {
if (typeof options.currentDate === 'undefined') {
options.currentDate = new CronDate(undefined, self._tz);

@@ -618,0 +623,0 @@ }

{
"name": "cron-parser",
"version": "2.1.2",
"version": "2.2.0",
"description": "Node.js library for parsing crontab instructions",

@@ -5,0 +5,0 @@ "main": "lib/parser.js",

Sorry, the diff of this file is not supported yet

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