New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cron-parser

Package Overview
Dependencies
Maintainers
1
Versions
101
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.3.0 to 2.3.1

2

component.json

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

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

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

@@ -18,3 +18,3 @@ 'use strict';

CronDate.prototype.addHour = function() {
const prev = this.getTime();
var prev = this.getTime();
this._date.add(1, 'hour').startOf('hour');

@@ -27,3 +27,3 @@ if (this.getTime() <= prev) {

CronDate.prototype.addMinute = function() {
const prev = this.getTime();
var prev = this.getTime();
this._date.add(1, 'minute').startOf('minute');

@@ -36,3 +36,3 @@ if (this.getTime() < prev) {

CronDate.prototype.addSecond = function() {
const prev = this.getTime();
var prev = this.getTime();
this._date.add(1, 'second').startOf('second');

@@ -39,0 +39,0 @@ if (this.getTime() < prev) {

@@ -550,3 +550,3 @@ 'use strict';

var current = this._currentDate;
var hasIterated = this._hasIterated;
try {

@@ -559,2 +559,3 @@ this._findSchedule();

this._currentDate = current;
this._hasIterated = hasIterated;
}

@@ -561,0 +562,0 @@ };

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

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

@@ -45,3 +45,2 @@ cron-parser

console.log('Date: ', interval.next().toString()); // Sat Dec 29 2012 00:44:00 GMT+0200 (EET)
console.log('Date: ', interval.next().toUTC().toString()); // Sat Dec 28 2012 22:46:00 GMT+0200 (EET)
} catch (err) {

@@ -48,0 +47,0 @@ console.log('Error: ' + err.message);

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