@stacksjs/scheduler 0.59.2 → 0.59.4
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/types/cron.d.ts +0 -1
- package/package.json +2 -2
- package/src/job.ts +1 -1
package/dist/types/cron.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/scheduler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.59.
|
|
4
|
+
"version": "0.59.4",
|
|
5
5
|
"description": "The Stacks scheduler.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "bun --bun build.ts",
|
|
47
47
|
"typecheck": "bun --bun tsc --noEmit",
|
|
48
|
-
"prepublishOnly": "bun
|
|
48
|
+
"prepublishOnly": "bun run build"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"luxon": "^3.4.4"
|
package/src/job.ts
CHANGED
|
@@ -238,7 +238,7 @@ export class CronJob<OC extends CronOnCompleteCommand | null = null, C = null> {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
// The callback wrapper checks if it needs to sleep another period or not
|
|
241
|
-
// and does the real callback logic when it
|
|
241
|
+
// and does the real callback logic when it’s time.
|
|
242
242
|
const callbackWrapper = () => {
|
|
243
243
|
const diff = startTime + timeout - Date.now()
|
|
244
244
|
|