node-schedule
Advanced tools
+20
-15
@@ -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); | ||
| }; |
+1
-1
| { | ||
| "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"], |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
23007
1.06%621
1.64%0
-100%