@stacksjs/scheduler 0.58.56 → 0.58.58

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/dist/index.js CHANGED
@@ -520,6 +520,10 @@ class Schedule {
520
520
  this.cronPattern = "0 * * * * *";
521
521
  return this;
522
522
  }
523
+ everyTwoMinutes() {
524
+ this.cronPattern = "*/2 * * * * *";
525
+ return this;
526
+ }
523
527
  everyFiveMinutes() {
524
528
  this.cronPattern = "*/5 * * * *";
525
529
  return this;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.58.56",
4
+ "version": "0.58.58",
5
5
  "description": "The Stacks scheduler.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -13,6 +13,7 @@ export type {
13
13
  Ranges,
14
14
  TimeUnit,
15
15
  } from './types/cron'
16
+ export * from './types/utils'
16
17
 
17
18
  export * from './schedule'
18
19
 
package/src/schedule.ts CHANGED
@@ -23,6 +23,11 @@ export class Schedule {
23
23
  return this
24
24
  }
25
25
 
26
+ everyTwoMinutes() {
27
+ this.cronPattern = '*/2 * * * * *'
28
+ return this
29
+ }
30
+
26
31
  everyFiveMinutes() {
27
32
  this.cronPattern = '*/5 * * * *'
28
33
  return this