@helium/blockchain-api 0.3.2 → 0.3.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.js +3 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -497,26 +497,12 @@ var UpdateHotspotInfoOutputSchema = z.object({
|
|
|
497
497
|
mobile: z.boolean()
|
|
498
498
|
})
|
|
499
499
|
});
|
|
500
|
-
var CRON_REGEX = /^(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)
|
|
500
|
+
var CRON_REGEX = /^(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)\s+(\*|[0-9,\-\/]+)$/;
|
|
501
501
|
var RewardSchedule = z.string().regex(
|
|
502
502
|
CRON_REGEX,
|
|
503
|
-
"Invalid cron format. Expected
|
|
503
|
+
"Invalid cron format. Expected 5 fields: minute hour day month weekday"
|
|
504
504
|
).describe(
|
|
505
|
-
`UTC cron expression with
|
|
506
|
-
|
|
507
|
-
If using tools like crontab.guru, note that the clockwork parser uses 6-7 columns instead of the standard 5. Add seconds as the leftmost column (year is optional as the rightmost).
|
|
508
|
-
|
|
509
|
-
Standard 5-column cron:
|
|
510
|
-
min hour dayOfMonth month dayOfWeek
|
|
511
|
-
0 18 * * FRI
|
|
512
|
-
|
|
513
|
-
7-column format (with optional year):
|
|
514
|
-
sec min hour dayOfMonth month dayOfWeek year
|
|
515
|
-
0 0 18 * * FRI *
|
|
516
|
-
|
|
517
|
-
6-column format (required here):
|
|
518
|
-
sec min hour dayOfMonth month dayOfWeek
|
|
519
|
-
0 0 18 * * FRI`
|
|
505
|
+
`UTC cron expression with 5 fields (e.g. '30 9 * * *' or '0 0 1,15 * *')`
|
|
520
506
|
);
|
|
521
507
|
var RecipientShareInput = z.discriminatedUnion("type", [
|
|
522
508
|
z.object({
|