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

@types/cron

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cron - npm Package Compare versions

Comparing version 1.7.2 to 1.7.3

14

cron/index.d.ts

@@ -13,3 +13,3 @@ // Type definitions for cron 1.7

export declare type CronCommand = (() => void) | string | { command: string, args?: ReadonlyArray<string>, options?: SpawnOptions};
export declare type CronCommand = (() => void) | string | { command: string, args?: ReadonlyArray<string> | undefined, options?: SpawnOptions | undefined};

@@ -53,11 +53,11 @@ export declare class CronTime {

*/
onComplete?: CronCommand | null;
onComplete?: CronCommand | null | undefined;
/**
* Specifies whether to start the job just before exiting the constructor. By default this is set to false. If left at default you will need to call ```job.start()``` in order to start the job (assuming ```job``` is the variable you set the cronjob to). This does not immediately fire your ```onTick``` function, it just gives you more control over the behavior of your jobs.
*/
start?: boolean;
start?: boolean | undefined;
/**
* Specify the timezone for the execution. This will modify the actual time relative to your timezone. If the timezone is invalid, an error is thrown. You can check all timezones available at [Moment Timezone Website](http://momentjs.com/timezone/). Probably don't use both ```timeZone``` and ```utcOffset``` together or weird things may happen.
*/
timeZone?: string;
timeZone?: string | undefined;
/**

@@ -70,11 +70,11 @@ * The context within which to execute the onTick method. This defaults to the cronjob itself allowing you to call ```this.stop()```. However, if you change this you'll have access to the functions and values within your context object.

*/
runOnInit?: boolean;
runOnInit?: boolean | undefined;
/**
* This allows you to specify the offset of your timezone rather than using the ```timeZone``` param. Probably don't use both ```timeZone``` and ```utcOffset``` together or weird things may happen.
*/
utcOffset?: string | number;
utcOffset?: string | number | undefined;
/**
* If you have code that keeps the event loop running and want to stop the node process when that finishes regardless of the state of your cronjob, you can do so making use of this parameter. This is off by default and cron will run as if it needs to control the event loop. For more information take a look at [timers#timers_timeout_unref](https://nodejs.org/api/timers.html#timers_timeout_unref) from the NodeJS docs.
*/
unrefTimeout?: boolean;
unrefTimeout?: boolean | undefined;
}

@@ -81,0 +81,0 @@

{
"name": "@types/cron",
"version": "1.7.2",
"version": "1.7.3",
"description": "TypeScript definitions for cron",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cron",
"license": "MIT",

@@ -35,4 +36,4 @@ "contributors": [

},
"typesPublisherContentHash": "6a74ce4b1e223914efdccea1932c0753c89880f6defa02fa993cacfa97da94a3",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "615fac5282118fb0aa30ddf948474b0ab5c0d6cd1c7aaa1f62d13bf658219438",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 25 Feb 2020 19:08:55 GMT
* Last updated: Tue, 06 Jul 2021 20:32:31 GMT
* Dependencies: [@types/moment](https://npmjs.com/package/@types/moment), [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

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