Comparing version 1.0.3 to 1.0.4
@@ -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
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
Yes
21515
357