Comparing version 1.0.11 to 1.0.12
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23862
551