Comparing version 3.0.47 to 3.0.48
{ | ||
"name": "croner", | ||
"version": "3.0.47", | ||
"version": "3.0.48", | ||
"description": "Isomorphic JavaScript cron parser and scheduler.", | ||
@@ -5,0 +5,0 @@ "author": "Hexagon <github.com/hexagon>", |
@@ -77,6 +77,14 @@ /* ------------------------------------------------------------------------------------ | ||
* @constructor | ||
* | ||
* @signature | ||
* @param {string} pattern - Input pattern | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [fn] - Function to be run each iteration of pattern | ||
* @returns {Cron | CronJob} | ||
* @returns {Cron} | ||
* | ||
* @signature | ||
* @param {string} pattern - Input pattern | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [fn] - Function to be run each iteration of pattern | ||
* @returns {CronJob} | ||
*/ | ||
@@ -128,3 +136,3 @@ function Cron (pattern, options, fn) { | ||
* | ||
* @param {Date} prev - Input pattern | ||
* @param {Date} [prev] - Input pattern | ||
* @returns {Date | null} - Next run time | ||
@@ -213,5 +221,7 @@ */ | ||
* | ||
* @signature | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [func] - Function to be run each iteration of pattern | ||
* @returns {CronJob} | ||
* | ||
*/ | ||
@@ -218,0 +228,0 @@ Cron.prototype.schedule = function (opts, func) { |
@@ -60,8 +60,16 @@ export default Cron; | ||
* @constructor | ||
* | ||
* @signature | ||
* @param {string} pattern - Input pattern | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [fn] - Function to be run each iteration of pattern | ||
* @returns {Cron | CronJob} | ||
* @returns {Cron} | ||
* | ||
* @signature | ||
* @param {string} pattern - Input pattern | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [fn] - Function to be run each iteration of pattern | ||
* @returns {CronJob} | ||
*/ | ||
export function Cron(pattern: string, options?: CronOptions | Function, fn?: Function): Cron | CronJob; | ||
export function Cron(pattern: string, options?: CronOptions | Function, fn?: Function): Cron; | ||
export class Cron { | ||
@@ -72,6 +80,14 @@ /** | ||
* @constructor | ||
* | ||
* @signature | ||
* @param {string} pattern - Input pattern | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [fn] - Function to be run each iteration of pattern | ||
* @returns {Cron | CronJob} | ||
* @returns {Cron} | ||
* | ||
* @signature | ||
* @param {string} pattern - Input pattern | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [fn] - Function to be run each iteration of pattern | ||
* @returns {CronJob} | ||
*/ | ||
@@ -91,6 +107,6 @@ constructor(pattern: string, options?: CronOptions | Function, fn?: Function); | ||
* | ||
* @param {Date} prev - Input pattern | ||
* @param {Date} [prev] - Input pattern | ||
* @returns {Date | null} - Next run time | ||
*/ | ||
next(prev: Date): Date | null; | ||
next(prev?: Date): Date | null; | ||
/** | ||
@@ -120,5 +136,7 @@ * Return previous run time | ||
* | ||
* @signature | ||
* @param {CronOptions | Function} [options] - Options | ||
* @param {Function} [func] - Function to be run each iteration of pattern | ||
* @returns {CronJob} | ||
* | ||
*/ | ||
@@ -125,0 +143,0 @@ schedule(opts: any, func?: Function): CronJob; |
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
77155
1484