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

croner

Package Overview
Dependencies
Maintainers
1
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

croner - npm Package Compare versions

Comparing version 3.0.47 to 3.0.48

2

package.json
{
"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;

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