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

node-schedule

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-schedule - npm Package Compare versions

Comparing version 0.1.15 to 0.1.16

2

lib/schedule.js

@@ -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 @@ --------------------------

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