node-schedule
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -145,3 +145,3 @@ /* | ||
success = self.trackInvocation(inv); | ||
} else if (typeof(spec == 'object')) { | ||
} else if (typeof(spec) == 'object') { | ||
if (!(spec instanceof RecurrenceRule)) { | ||
@@ -148,0 +148,0 @@ var r = new RecurrenceRule(); |
{ | ||
"name": "node-schedule", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "A cron-like and not-cron-like job scheduler for Node.", | ||
@@ -5,0 +5,0 @@ "keywords": ["schedule", "task", "job", "cron"], |
@@ -39,3 +39,17 @@ node-schedule | ||
To use current data in the future you can use binding: | ||
```js | ||
var schedule = require('node-schedule'); | ||
var date = new Date(2012, 12, 21, 5, 30, 0); | ||
var x = 'Tada!'; | ||
var j = schedule.scheduleJob(date, function(y){ | ||
console.log(y); | ||
}.bind(null,x)); | ||
x = 'Changing Data'; | ||
``` | ||
This will log 'Tada!' when the scheduled Job runs, rather than 'Changing Data', which x changes to immediately after scheduling. | ||
Recurrence Rule Scheduling | ||
@@ -42,0 +56,0 @@ -------------------------- |
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
45380
167
0