@stacksjs/scheduler 0.56.34 → 0.57.2

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- interface Scheduler {
1
+ export interface Scheduler {
2
2
  everySecond: () => void;
3
3
  everySeconds: (seconds: number) => void;
4
4
  everyMinute: () => void;
@@ -27,8 +27,7 @@ interface Scheduler {
27
27
  cron: (interval: string, timezone?: string) => void;
28
28
  }
29
29
  declare function run(callback: ((now: Date | 'manual' | 'init') => void) | string): Scheduler;
30
- declare function useScheduler(): {
30
+ export declare function useScheduler(): {
31
31
  run: typeof run;
32
32
  };
33
-
34
- export { Scheduler, useScheduler };
33
+ export {};
package/dist/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import cron from 'node-cron';
2
-
1
+ import cron from "node-cron";
3
2
  function run(callback) {
4
3
  return {
5
4
  everySecond: () => {
@@ -82,10 +81,8 @@ function run(callback) {
82
81
  }
83
82
  };
84
83
  }
85
- function useScheduler() {
84
+ export function useScheduler() {
86
85
  return {
87
86
  run
88
87
  };
89
88
  }
90
-
91
- export { useScheduler };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.56.34",
4
+ "version": "0.57.2",
5
5
  "packageManager": "pnpm@8.6.5",
6
6
  "description": "The Stacks scheduler.",
7
7
  "author": "Chris Breuer",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node-cron": "^3.0.8",
43
- "@stacksjs/development": "0.56.34"
43
+ "@stacksjs/development": "0.57.2"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "unbuild",