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

@p4d/cron

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@p4d/cron - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

16

actions.js

@@ -8,4 +8,4 @@ const os = require('os')

console.log('Checking installed cron jobs for user %s.', user)
cron.load(function(err, crontab) {
cron.load(function (err, crontab) {
if (err) console.log(err)
let jobList = crontab.jobs()

@@ -21,3 +21,3 @@ console.log('Found %s cron jobs', jobList.length)

console.log('Adding cron job for user %s.', user)
cron.load(function(err, crontab) {
cron.load(function (err, crontab) {
if (err) console.log(err)

@@ -34,3 +34,3 @@

} else {
crontab.save(function(err, crontab) {
crontab.save(function (err, crontab) {
if (err) console.log(err)

@@ -46,3 +46,3 @@ else console.log('Job created successfully.')

console.log('Removing cron job for user %s.', user)
cron.load(function(err, crontab) {
cron.load(function (err, crontab) {
if (err) console.log(err)

@@ -52,3 +52,3 @@

if (job == null || job.length != 1) {
if (job == null || job.length !== 1) {
console.log('No job to remove.')

@@ -58,3 +58,3 @@ } else {

crontab.save(function(err, crontab) {
crontab.save(function (err, crontab) {
if (err) console.log(err)

@@ -64,7 +64,5 @@ else console.log('Job removed successfully.')

}
})
}
module.exports = {

@@ -71,0 +69,0 @@ list: list,

{
"name": "@p4d/cron",
"version": "1.1.0",
"version": "1.1.1",
"description": "P4D command line tool to manage cron jobs ",

@@ -5,0 +5,0 @@ "preferGlobal": true,

@@ -7,3 +7,3 @@ #!/usr/bin/env node

program
.version('1.0.0')
.version('1.1.1')
.description('P4D command line tool to manage cron jobs.')

@@ -10,0 +10,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