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

cron-async

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-async - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

13

dist/index.js

@@ -1,2 +0,1 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -11,5 +10,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Cron = exports.Job = void 0;
const cron_schedule_1 = require("cron-schedule");
import { parseCronExpression } from 'cron-schedule';
/**

@@ -50,3 +47,3 @@ * Logger that prepends a tag to all log messages.

}
class Job {
export class Job {
/**

@@ -66,3 +63,3 @@ * Constructor.

this.config = config;
this.cron = (0, cron_schedule_1.parseCronExpression)(config.cron);
this.cron = parseCronExpression(config.cron);
this.started = !config.dontAutoRun;

@@ -141,7 +138,6 @@ this.log = new JobLogger(config.log || console, name);

}
exports.Job = Job;
/**
* A cron instance.
*/
class Cron {
export class Cron {
constructor() {

@@ -231,3 +227,2 @@ this.jobs = new Map();

}
exports.Cron = Cron;
//# sourceMappingURL=index.js.map
{
"name": "cron-async",
"version": "1.0.3",
"version": "1.0.4",
"description": "Execute something on a schedule, using cron syntax, with async/await support.",
"exports": {
".": {
"import": {
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
}
}
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "Ramesh Nair <ram@hiddentao.com>",

@@ -14,0 +9,0 @@ "homepage": "https://hiddentao.github.io/cron-async",

Sorry, the diff of this file is not supported yet

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