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 0.4.1 to 0.4.2

5

package.json
{
"name": "cron-parser",
"version": "0.4.1",
"version": "0.4.2",
"description": "Node.js library for parsing crontab instructions",

@@ -27,3 +27,4 @@ "main": "lib/parser.js",

"Mike Kusold <hello@mikekusold.com>",
"Alex Kit <alex.kit@atmajs.com>"
"Alex Kit <alex.kit@atmajs.com>",
"Santiago Gimeno <santiago.gimeno@gmail.com>"
],

@@ -30,0 +31,0 @@ "license": "MIT",

16

test/expression.js

@@ -143,3 +143,3 @@ var util = require('util');

t.equal(next.getMonth(), 7, 'Month matches');
t.equal(next.getDate(), 3, 'Day of month matches');
t.equal(next.getDate(), 2, 'Day of month matches');
t.equal(next.getHours(), 2, 'Hour matches');

@@ -220,3 +220,3 @@ t.equal(next.getMinutes(), 10, 'Minute matches');

t.equal(next.getMonth(), 7, 'Month matches');
t.equal(next.getDate(), 3, 'Day of month matches');
t.equal(next.getDate(), 2, 'Day of month matches');
t.equal(next.getHours(), 2, 'Hour matches');

@@ -244,3 +244,3 @@ t.equal(next.getMinutes(), 10 + i, 'Minute matches');

t.equal(next.getMonth(), 7, 'Month matches');
t.equal(next.getDate(), 3, 'Day of month matches');
t.equal(next.getDate(), 2, 'Day of month matches');
t.equal(next.getHours(), 2, 'Hour matches');

@@ -381,3 +381,3 @@ t.equal(next.getMinutes(), 10 + (i * 2), 'Minute matches');

t.equal(next.getMonth(), 7, 'Month matches');
t.equal(next.getDate(), 3, 'Day of month matches');
t.equal(next.getDate(), 2, 'Day of month matches');

@@ -389,3 +389,3 @@ next = interval.next();

t.equal(next.getMonth(), 7, 'Month matches');
t.equal(next.getDate(), 10, 'Day of month matches');
t.equal(next.getDate(), 9, 'Day of month matches');

@@ -395,3 +395,3 @@ next = interval.next();

t.ok(next, 'Found next scheduled interval');
t.equal(next.getDay(), 2, 'Day matches');
t.equal(next.getDay(), 3, 'Day matches');
t.equal(next.getMonth(), 7, 'Month matches');

@@ -405,6 +405,6 @@ t.equal(next.getDate(), 12, 'Day of month matches');

t.equal(next.getMonth(), 7, 'Month matches');
t.equal(next.getDate(), 17, 'Day of month matches');
t.equal(next.getDate(), 16, 'Day of month matches');
t.end();
});
});
});
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