Socket
Socket
Sign inDemoInstall

cron

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

9

lib/cron.js

@@ -354,3 +354,3 @@ var exports,

context = cronTime.context;
startNow = cronTime.start;
startNow = cronTime.start || cronTime.startNow;
timeZone = cronTime.timeZone;

@@ -372,5 +372,6 @@ cronTime = cronTime.cronTime;

CronJob.prototype.addCallback = addCallback = function(callback) {
var addCallback = function(callback) {
if (typeof callback == 'function') this._callbacks.push(callback);
}
CronJob.prototype.addCallback = addCallback;

@@ -387,3 +388,3 @@ CronJob.prototype.setTime = function(time) {

CronJob.prototype.start = start = function() {
var start = function() {
if (this.running) return;

@@ -448,2 +449,4 @@

CronJob.prototype.start = start;
/**

@@ -450,0 +453,0 @@ * Stop the cronjob.

{
"name": "cron",
"description": "Cron jobs for your node",
"version": "1.0.7",
"version": "1.0.8",
"author": "Nick Campbell <nicholas.j.campbell@gmail.com> (http://github.com/ncb000gt)",

@@ -6,0 +6,0 @@ "bugs" : {

@@ -39,2 +39,2 @@ var CronJob = require('./lib/cron').CronJob;

console.log('tick: ' + Date.now());
}).start();
}, null, true);
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