node-schedule
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -53,7 +53,12 @@ /* | ||
{ | ||
m = 0; | ||
this.setMonth(0); | ||
this.addYear(); | ||
} | ||
this.setMonth(m); | ||
else | ||
{ | ||
var spec = daySpec(this.getFullYear()); | ||
if (this.getDate() > spec[m]) | ||
this.setDate(spec[m]); | ||
this.setMonth(m); | ||
} | ||
}; | ||
@@ -66,7 +71,7 @@ | ||
{ | ||
d = 1; | ||
this.setDate(1) | ||
this.addMonth(); | ||
} | ||
this.setDate(d); | ||
else | ||
this.setDate(d); | ||
}; | ||
@@ -78,7 +83,7 @@ | ||
{ | ||
h = 0; | ||
this.setHours(0); | ||
this.addDay(); | ||
} | ||
this.setHours(h); | ||
else | ||
this.setHours(h); | ||
}; | ||
@@ -90,7 +95,7 @@ | ||
{ | ||
m = 0; | ||
this.setMinutes(0); | ||
this.addHour(); | ||
} | ||
this.setMinutes(m); | ||
else | ||
this.setMinutes(m); | ||
}; | ||
@@ -102,7 +107,7 @@ | ||
{ | ||
s = 0; | ||
this.setSeconds(0); | ||
this.addMinute(); | ||
} | ||
this.setSeconds(s); | ||
else | ||
this.setSeconds(s); | ||
}; |
{ | ||
"name": "node-schedule", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A cron-like and not-cron-like job scheduler for Node.", | ||
@@ -5,0 +5,0 @@ "keywords": ["schedule", "task", "job", "cron"], |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
23007
621
0