croner 5.7.0-dev.0 → 5.7.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,9 +13,9 @@ Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No d
|
|
|
13
13
|
* Pause, resume, or stop execution after a task is scheduled.
|
|
14
14
|
* Works in Node.js >=7.6 (both require and import), Deno >=1.16 and Bun >=0.2.2.
|
|
15
15
|
* Works in browsers as standalone, UMD or ES-module.
|
|
16
|
-
* Schedule using specific target [time zones](
|
|
17
|
-
* [Over-run protection](
|
|
18
|
-
* Built in [error handling](
|
|
16
|
+
* Schedule using specific target [time zones](docs/EXAMPLES.md#time-zone).
|
|
17
|
+
* [Over-run protection](docs/EXAMPLES.md#over-run-protection) with callback
|
|
18
|
+
* Built in [error handling](docs/EXAMPLES.md#error-handling) with callback
|
|
19
19
|
* Includes [TypeScript](https://www.typescriptlang.org/) typings.
|
|
20
20
|
|
|
21
21
|
Quick examples:
|
|
@@ -108,7 +108,7 @@ Because the existing ones are not good enough. They have serious bugs, use bloat
|
|
|
108
108
|
|
|
109
109
|
## Installation
|
|
110
110
|
|
|
111
|
-
If you are migrating from a different library such as `cron` or `node-cron`, or upgrading from a older version of croner, see [MIGRATION.md](MIGRATION.md).
|
|
111
|
+
If you are migrating from a different library such as `cron` or `node-cron`, or upgrading from a older version of croner, see [MIGRATION.md](docs/MIGRATION.md).
|
|
112
112
|
|
|
113
113
|
### Node.js
|
|
114
114
|
|
|
@@ -186,7 +186,7 @@ To use as a [UMD](https://github.com/umdjs/umd)-module (stand alone, [RequireJS]
|
|
|
186
186
|
<script src="https://cdn.jsdelivr.net/npm/croner@5/dist/croner.min.js"></script>
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
To use as an [ES-module](https://developer.mozilla.org/en-
|
|
189
|
+
To use as an [ES-module](https://developer.mozilla.org/en-USdocs/Web/JavaScript/Guide/Modules)
|
|
190
190
|
|
|
191
191
|
```html
|
|
192
192
|
<script type="module">
|
|
@@ -246,7 +246,7 @@ job.stop();
|
|
|
246
246
|
| legacyMode | true | boolean | Combine day-of-month and day-of-week using true = OR, false = AND |
|
|
247
247
|
| unref | false | boolean | Setting this to true unrefs the internal timer, which allows the process to exit even if a cron job is running. |
|
|
248
248
|
| utcOffset | undefined | number | Schedule using a specific utc offset in minutes. This does not take care of daylight savings time, you probably want to use option `timezone` instead. |
|
|
249
|
-
| protect | undefined | boolean\|Function | Enabled over-run protection. Will block new triggers as long as an old trigger is in
|
|
249
|
+
| protect | undefined | boolean\|Function | Enabled over-run protection. Will block new triggers as long as an old trigger is in progress. Pass either `true` or a callback function to enable |
|
|
250
250
|
|
|
251
251
|
> **Warning**
|
|
252
252
|
> Unreferencing timers (option `unref`) is only supported by Node.js and Deno.
|
|
@@ -315,7 +315,7 @@ All development happen in the dev branch, you can install latest development ver
|
|
|
315
315
|
npm install croner@dev
|
|
316
316
|
```
|
|
317
317
|
|
|
318
|
-
See [Contribution Guide](/CONTRIBUTING.md)
|
|
318
|
+
See [Contribution Guide](docs/CONTRIBUTING.md)
|
|
319
319
|
|
|
320
320
|
... or ...
|
|
321
321
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "croner",
|
|
3
|
-
"version": "5.7.0-dev.
|
|
3
|
+
"version": "5.7.0-dev.1",
|
|
4
4
|
"description": "Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.",
|
|
5
5
|
"author": "Hexagon <github.com/hexagon>",
|
|
6
6
|
"homepage": "https://hexagon.github.io/croner",
|