@stacksjs/scheduler 0.53.1 → 0.56.3

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