@warlock.js/scheduler 4.1.6 → 4.1.8
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/cjs/index.cjs +3 -3
- package/esm/cron-parser.d.mts +1 -1
- package/esm/cron-parser.mjs +1 -1
- package/esm/job.d.mts +1 -1
- package/esm/job.mjs +1 -1
- package/esm/scheduler.d.mts +1 -1
- package/esm/scheduler.mjs +1 -1
- package/esm/types.d.mts +1 -1
- package/package.json +1 -1
package/cjs/index.cjs
CHANGED
|
@@ -36,7 +36,7 @@ let dayjs_plugin_utc_js = require("dayjs/plugin/utc.js");
|
|
|
36
36
|
dayjs_plugin_utc_js = __toESM(dayjs_plugin_utc_js, 1);
|
|
37
37
|
let node_events = require("node:events");
|
|
38
38
|
|
|
39
|
-
//#region
|
|
39
|
+
//#region ../@warlock.js/scheduler/src/cron-parser.ts
|
|
40
40
|
/**
|
|
41
41
|
* Cron expression parser
|
|
42
42
|
*
|
|
@@ -242,7 +242,7 @@ function parseCron(expression) {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
//#endregion
|
|
245
|
-
//#region
|
|
245
|
+
//#region ../@warlock.js/scheduler/src/job.ts
|
|
246
246
|
dayjs.default.extend(dayjs_plugin_utc_js.default);
|
|
247
247
|
dayjs.default.extend(dayjs_plugin_timezone_js.default);
|
|
248
248
|
dayjs.default.extend(dayjs_plugin_isSameOrAfter_js.default);
|
|
@@ -867,7 +867,7 @@ function job(name, callback) {
|
|
|
867
867
|
}
|
|
868
868
|
|
|
869
869
|
//#endregion
|
|
870
|
-
//#region
|
|
870
|
+
//#region ../@warlock.js/scheduler/src/scheduler.ts
|
|
871
871
|
/**
|
|
872
872
|
* Scheduler class manages and executes scheduled jobs.
|
|
873
873
|
*
|
package/esm/cron-parser.d.mts
CHANGED
package/esm/cron-parser.mjs
CHANGED
package/esm/job.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Day, JobIntervals, JobResult, TimeType } from "./types.mjs";
|
|
2
2
|
import { Dayjs } from "dayjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/scheduler/src/job.d.ts
|
|
5
5
|
type JobCallback = (job: Job) => Promise<any>;
|
|
6
6
|
/**
|
|
7
7
|
* Job class represents a scheduled task with configurable timing and execution options.
|
package/esm/job.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
|
|
4
4
|
import timezone from "dayjs/plugin/timezone.js";
|
|
5
5
|
import utc from "dayjs/plugin/utc.js";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/scheduler/src/job.ts
|
|
8
8
|
dayjs.extend(utc);
|
|
9
9
|
dayjs.extend(timezone);
|
|
10
10
|
dayjs.extend(isSameOrAfter);
|
package/esm/scheduler.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SchedulerEvents } from "./types.mjs";
|
|
2
2
|
import { Job, JobCallback } from "./job.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/scheduler/src/scheduler.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Type-safe event emitter interface for Scheduler events
|
|
7
7
|
*/
|
package/esm/scheduler.mjs
CHANGED
package/esm/types.d.mts
CHANGED