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

croner

Package Overview
Dependencies
Maintainers
1
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

croner - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

31

lib/croner.js

@@ -54,3 +54,3 @@

// Steps 1-2.
if (this == null) {
if (this === null) {
throw new TypeError('this is null or not defined');

@@ -194,11 +194,4 @@ }

hasDaysOfWeek,
hasDates,
hasDates;
seconds,
minutes,
hours,
days,
months,
daysOfWeek;
// Validite number of configuration entries

@@ -281,5 +274,5 @@ if (parts.length !== 6) {

date = date || safeDate();
var self = this,
date = date || safeDate(),
temp,

@@ -301,8 +294,10 @@ collection = {

hasDays = !(days.filter(Boolean).length==31),
hasMonths = !(months.filter(Boolean).length==12);
hasDays = days.filter(Boolean).length!==31,
hasMonths = months.filter(Boolean).length!==12,
dayChanged;
function goUp (what, who, current, increment, valueIndexOffset) {
var i, found = false, dayChanged;
var i, found = false;

@@ -363,7 +358,7 @@ if (what[who[current] + valueIndexOffset]) return true;

return new Date(collection.cYear, collection.cMon, collection.cDate, collection.cHour, collection.cMins, collection.cSecs, 0);
}
};
Cron.prototype.msToNext = function (prev) {
return (this.next(prev) - safeDate().getTime());
}
};

@@ -452,5 +447,5 @@ Cron.prototype.schedule = function (opts, func, recurse) {

}
};
}
}
};

@@ -457,0 +452,0 @@ // Expose

{
"name": "croner",
"version": "1.0.11",
"version": "1.0.12",
"description": "Isomorphic JavaScript cron parser and scheduler.",

@@ -5,0 +5,0 @@ "author": "Hexagon <github.com/hexagon>",

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