@kingsworld/plugin-cron 4.0.2-next.fd95c4b → 5.0.0-next.45848ab

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.
Files changed (73) hide show
  1. package/dist/cjs/{CronTaskHandler-Bq4LU7qH.cjs → CronTaskHandler-fVZWiMAa.cjs} +12 -17
  2. package/dist/cjs/CronTaskHandler-fVZWiMAa.cjs.map +1 -0
  3. package/dist/cjs/index.cjs +6 -7
  4. package/dist/cjs/index.cjs.map +1 -1
  5. package/dist/cjs/index.d.cts +6 -8
  6. package/dist/cjs/index.d.cts.map +1 -1
  7. package/dist/cjs/lib/CronTaskHandler.cjs +1 -1
  8. package/dist/cjs/lib/CronTaskHandler.d.cts +27 -2
  9. package/dist/cjs/lib/CronTaskHandler.d.cts.map +1 -0
  10. package/dist/cjs/lib/structures/CronTask.cjs +16 -12
  11. package/dist/cjs/lib/structures/CronTask.cjs.map +1 -1
  12. package/dist/cjs/lib/structures/CronTask.d.cts +86 -2
  13. package/dist/cjs/lib/structures/CronTask.d.cts.map +1 -0
  14. package/dist/cjs/lib/structures/CronTaskStore.cjs +4 -8
  15. package/dist/cjs/lib/structures/CronTaskStore.cjs.map +1 -1
  16. package/dist/cjs/lib/structures/CronTaskStore.d.cts +49 -2
  17. package/dist/cjs/lib/structures/CronTaskStore.d.cts.map +1 -0
  18. package/dist/cjs/lib/types/CronTaskTypes.d.cts +27 -2
  19. package/dist/cjs/lib/types/CronTaskTypes.d.cts.map +1 -0
  20. package/dist/cjs/lib/utils/normalizePattern.cjs +1 -2
  21. package/dist/cjs/lib/utils/normalizePattern.cjs.map +1 -1
  22. package/dist/cjs/lib/utils/normalizePattern.d.cts +0 -2
  23. package/dist/cjs/lib/utils/normalizePattern.d.cts.map +1 -1
  24. package/dist/cjs/register.cjs +4 -5
  25. package/dist/cjs/register.cjs.map +1 -1
  26. package/dist/cjs/register.d.cts +0 -2
  27. package/dist/cjs/register.d.cts.map +1 -1
  28. package/dist/esm/{CronTask-DFQB8iCL.d.mts → CronTask-yw_82mkr.d.mts} +21 -16
  29. package/dist/esm/CronTask-yw_82mkr.d.mts.map +1 -0
  30. package/dist/esm/{CronTaskHandler-bxZeiSQD.d.mts → CronTaskHandler-CeMP2qgY.d.mts} +7 -7
  31. package/dist/esm/CronTaskHandler-CeMP2qgY.d.mts.map +1 -0
  32. package/dist/esm/{CronTaskHandler-DiH4wqma.mjs → CronTaskHandler-DL6DRegu.mjs} +11 -16
  33. package/dist/esm/CronTaskHandler-DL6DRegu.mjs.map +1 -0
  34. package/dist/esm/{CronTaskStore-Ei9TVxaS.d.mts → CronTaskStore-Cxdru_tz.d.mts} +2 -7
  35. package/dist/esm/CronTaskStore-Cxdru_tz.d.mts.map +1 -0
  36. package/dist/esm/{CronTaskTypes-Dj8Ny7j5.d.mts → CronTaskTypes-BRnD-V2d.d.mts} +7 -7
  37. package/dist/esm/CronTaskTypes-BRnD-V2d.d.mts.map +1 -0
  38. package/dist/esm/index.d.mts +6 -8
  39. package/dist/esm/index.d.mts.map +1 -1
  40. package/dist/esm/index.mjs +4 -5
  41. package/dist/esm/index.mjs.map +1 -1
  42. package/dist/esm/lib/CronTaskHandler.d.mts +1 -1
  43. package/dist/esm/lib/CronTaskHandler.mjs +1 -1
  44. package/dist/esm/lib/structures/CronTask.d.mts +1 -1
  45. package/dist/esm/lib/structures/CronTask.mjs +16 -12
  46. package/dist/esm/lib/structures/CronTask.mjs.map +1 -1
  47. package/dist/esm/lib/structures/CronTaskStore.d.mts +1 -1
  48. package/dist/esm/lib/structures/CronTaskStore.mjs +2 -6
  49. package/dist/esm/lib/structures/CronTaskStore.mjs.map +1 -1
  50. package/dist/esm/lib/types/CronTaskTypes.d.mts +1 -1
  51. package/dist/esm/lib/utils/normalizePattern.d.mts +0 -2
  52. package/dist/esm/lib/utils/normalizePattern.d.mts.map +1 -1
  53. package/dist/esm/lib/utils/normalizePattern.mjs +1 -2
  54. package/dist/esm/lib/utils/normalizePattern.mjs.map +1 -1
  55. package/dist/esm/register.d.mts +0 -2
  56. package/dist/esm/register.d.mts.map +1 -1
  57. package/dist/esm/register.mjs +2 -3
  58. package/dist/esm/register.mjs.map +1 -1
  59. package/package.json +7 -5
  60. package/dist/cjs/CronTask-Cl3vuqLP.d.cts +0 -83
  61. package/dist/cjs/CronTask-Cl3vuqLP.d.cts.map +0 -1
  62. package/dist/cjs/CronTaskHandler-Bq4LU7qH.cjs.map +0 -1
  63. package/dist/cjs/CronTaskHandler-XGx_tZ1o.d.cts +0 -29
  64. package/dist/cjs/CronTaskHandler-XGx_tZ1o.d.cts.map +0 -1
  65. package/dist/cjs/CronTaskStore-BUQH8cdW.d.cts +0 -56
  66. package/dist/cjs/CronTaskStore-BUQH8cdW.d.cts.map +0 -1
  67. package/dist/cjs/CronTaskTypes-BfXWfHg6.d.cts +0 -29
  68. package/dist/cjs/CronTaskTypes-BfXWfHg6.d.cts.map +0 -1
  69. package/dist/esm/CronTask-DFQB8iCL.d.mts.map +0 -1
  70. package/dist/esm/CronTaskHandler-DiH4wqma.mjs.map +0 -1
  71. package/dist/esm/CronTaskHandler-bxZeiSQD.d.mts.map +0 -1
  72. package/dist/esm/CronTaskStore-Ei9TVxaS.d.mts.map +0 -1
  73. package/dist/esm/CronTaskTypes-Dj8Ny7j5.d.mts.map +0 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_CronTaskHandler = require('./CronTaskHandler-Bq4LU7qH.cjs');
5
- const require_lib_structures_CronTaskStore = require('./lib/structures/CronTaskStore.cjs');
6
- require('./index.cjs');
4
+ const require_CronTaskHandler = require("./CronTaskHandler-fVZWiMAa.cjs");
5
+ const require_lib_structures_CronTaskStore = require("./lib/structures/CronTaskStore.cjs");
6
+ require("./index.cjs");
7
7
  let _sapphire_framework = require("@sapphire/framework");
8
8
 
9
- //#region src/register.ts
9
+ // src/register.ts
10
10
  var CronTaskPlugin = class extends _sapphire_framework.Plugin {
11
11
  static [_sapphire_framework.preGenericsInitialization](options) {
12
12
  _sapphire_framework.container.cronTasks = new require_CronTaskHandler.CronTaskHandler(options.cronTasks);
@@ -27,6 +27,5 @@ _sapphire_framework.SapphireClient.plugins.registerPostInitializationHook(CronTa
27
27
  _sapphire_framework.SapphireClient.plugins.registerPreLoginHook(CronTaskPlugin[_sapphire_framework.preLogin], "Cron-Task-PreLogin");
28
28
  _sapphire_framework.SapphireClient.plugins.registerPostLoginHook(CronTaskPlugin[_sapphire_framework.postLogin], "Cron-Task-PostLogin");
29
29
 
30
- //#endregion
31
30
  exports.CronTaskPlugin = CronTaskPlugin;
32
31
  //# sourceMappingURL=register.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.cjs","names":[],"sources":["../../src/register.ts"],"sourcesContent":["import './index';\n\nimport { container, Plugin, postInitialization, postLogin, preGenericsInitialization, preLogin, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { CronTaskHandler, CronTaskStore } from './index';\n\nexport class CronTaskPlugin extends Plugin {\n\tpublic static override [preGenericsInitialization](this: SapphireClient, options: ClientOptions) {\n\t\tcontainer.cronTasks = new CronTaskHandler(options.cronTasks);\n\t}\n\n\tpublic static override [postInitialization](this: SapphireClient) {\n\t\tthis.stores.register(new CronTaskStore());\n\t}\n\n\tpublic static override async [preLogin](this: SapphireClient) {\n\t\tif (container.cronTasks.disableSentry) return;\n\t\tcontainer.cronTasks.sentry = await import('@sentry/node').catch(() => undefined);\n\t}\n\n\tpublic static override [postLogin](this: SapphireClient) {\n\t\tthis.stores.get('cron-tasks').resumeAll();\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(CronTaskPlugin[preGenericsInitialization], 'Cron-Task-PreGenericsInitialization');\n\nSapphireClient.plugins.registerPostInitializationHook(CronTaskPlugin[postInitialization], 'Cron-Task-PostInitialization');\n\nSapphireClient.plugins.registerPreLoginHook(CronTaskPlugin[preLogin], 'Cron-Task-PreLogin');\n\nSapphireClient.plugins.registerPostLoginHook(CronTaskPlugin[postLogin], 'Cron-Task-PostLogin');\n"],"mappings":";;;;;;;;;AAMA,IAAA,iBAAA,cAAA,2BAAA;CACA,QAAA,+CAAA,SAAA;EACA,8BAAA,YAAA,IAAA,wCAAA,QAAA,SAAA;CACA;CAEA,QAAA,0CAAA;EACA,KAAA,OAAA,SAAA,IAAA,mDAAA,CAAA;CACA;CAEA,cAAA,gCAAA;EACA,IAAA,8BAAA,UAAA,eAAA;EACA,8BAAA,UAAA,SAAA,MAAA,OAAA,eAAA,CAAA,YAAA,MAAA;CACA;CAEA,QAAA,iCAAA;EACA,KAAA,OAAA,IAAA,YAAA,CAAA,CAAA,UAAA;CACA;AACA;AAEA,mCAAA,QAAA,sCAAA,eAAA,gDAAA,qCAAA;AAEA,mCAAA,QAAA,+BAAA,eAAA,yCAAA,8BAAA;AAEA,mCAAA,QAAA,qBAAA,eAAA,+BAAA,oBAAA;AAEA,mCAAA,QAAA,sBAAA,eAAA,gCAAA,qBAAA"}
1
+ {"version":3,"file":"register.cjs","names":["Plugin","preGenericsInitialization","container","CronTaskHandler","postInitialization","CronTaskStore","preLogin","postLogin","SapphireClient"],"sources":["../../src/register.ts"],"sourcesContent":["/* eslint-disable import-x/no-duplicates */\nimport './index';\n\nimport { container, Plugin, postInitialization, postLogin, preGenericsInitialization, preLogin, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { CronTaskHandler, CronTaskStore } from './index';\n\nexport class CronTaskPlugin extends Plugin {\n\tpublic static override [preGenericsInitialization](this: SapphireClient, options: ClientOptions) {\n\t\tcontainer.cronTasks = new CronTaskHandler(options.cronTasks);\n\t}\n\n\tpublic static override [postInitialization](this: SapphireClient) {\n\t\tthis.stores.register(new CronTaskStore());\n\t}\n\n\tpublic static override async [preLogin](this: SapphireClient) {\n\t\tif (container.cronTasks.disableSentry) return;\n\t\t// eslint-disable-next-line require-atomic-updates\n\t\tcontainer.cronTasks.sentry = await import('@sentry/node').catch(() => undefined);\n\t}\n\n\tpublic static override [postLogin](this: SapphireClient) {\n\t\tthis.stores.get('cron-tasks').resumeAll();\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(CronTaskPlugin[preGenericsInitialization], 'Cron-Task-PreGenericsInitialization');\n\nSapphireClient.plugins.registerPostInitializationHook(CronTaskPlugin[postInitialization], 'Cron-Task-PostInitialization');\n\nSapphireClient.plugins.registerPreLoginHook(CronTaskPlugin[preLogin], 'Cron-Task-PreLogin');\n\nSapphireClient.plugins.registerPostLoginHook(CronTaskPlugin[postLogin], 'Cron-Task-PostLogin');\n"],"mappings":";;;;;;;;;AAOA,IAAa,iBAAb,cAAoCA,2BAAO;CAC1C,QAAwBC,+CAAiD,SAAwB;EAChGC,8BAAU,YAAY,IAAIC,wCAAgB,QAAQ,SAAS;CAC5D;CAEA,QAAwBC,0CAA0C;EACjE,KAAK,OAAO,SAAS,IAAIC,mDAAc,CAAC;CACzC;CAEA,cAA8BC,gCAAgC;EAC7D,IAAIJ,8BAAU,UAAU,eAAe;EAEvCA,8BAAU,UAAU,SAAS,MAAM,OAAO,eAAe,CAAC,YAAY,MAAS;CAChF;CAEA,QAAwBK,iCAAiC;EACxD,KAAK,OAAO,IAAI,YAAY,CAAC,CAAC,UAAU;CACzC;AACD;AAEAC,mCAAe,QAAQ,sCAAsC,eAAeP,gDAA4B,qCAAqC;AAE7IO,mCAAe,QAAQ,+BAA+B,eAAeJ,yCAAqB,8BAA8B;AAExHI,mCAAe,QAAQ,qBAAqB,eAAeF,+BAAW,oBAAoB;AAE1FE,mCAAe,QAAQ,sBAAsB,eAAeD,gCAAY,qBAAqB"}
@@ -2,12 +2,10 @@
2
2
  import "./index.cjs";
3
3
  import { Plugin, SapphireClient, postInitialization, postLogin, preGenericsInitialization, preLogin } from "@sapphire/framework";
4
4
  import { ClientOptions } from "discord.js";
5
- //#region src/register.d.ts
6
5
  export declare class CronTaskPlugin extends Plugin {
7
6
  static [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void;
8
7
  static [postInitialization](this: SapphireClient): void;
9
8
  static [preLogin](this: SapphireClient): Promise<void>;
10
9
  static [postLogin](this: SapphireClient): void;
11
10
  }
12
- //#endregion
13
11
  //# sourceMappingURL=register.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.cts","names":[],"sources":["../../src/register.ts"],"mappings":";;;;;qBAMa,uBAAuB;UACX,2BAA2B,MAAM,gBAAgB,SAAS;UAI1D,oBAAoB,MAAM;UAIpB,UAAU,MAAM,iBAAc;UAKpC,WAAW,MAAM"}
1
+ {"version":3,"file":"register.d.cts","names":[],"sources":["../../src/register.ts"],"mappings":";;;;qBAOa,uBAAuB;UACX,2BAA2B,MAAM,gBAAgB,SAAS;UAI1D,oBAAoB,MAAM;UAIpB,UAAU,MAAM,iBAAc;UAMpC,WAAW,MAAM"}
@@ -1,8 +1,7 @@
1
- import { t as CronJobOptions } from "./CronTaskTypes-Dj8Ny7j5.mjs";
1
+ import { t as CronJobOptions } from "./CronTaskTypes-BRnD-V2d.mjs";
2
2
  import { Piece } from "@sapphire/pieces";
3
3
  import { Cron } from "croner";
4
4
  import { Awaitable } from "@sapphire/framework";
5
- //#region src/lib/structures/CronTask.d.ts
6
5
  /**
7
6
  * @example
8
7
  *
@@ -32,51 +31,57 @@ declare abstract class CronTask<Options extends CronTask.Options = CronTask.Opti
32
31
  catch?(error: unknown, job: Cron): Awaitable<unknown>;
33
32
  /**
34
33
  * A helper function to log messages with the `CronTask[${name}]` prefix.
35
- * @param message The message to include after the prefix
36
- * @param other Extra parameters to pass to the logger
34
+ *
35
+ * @param message - The message to include after the prefix
36
+ * @param other - Extra parameters to pass to the logger
37
37
  * @example
38
38
  * this.info('Hello world!'); // CronTask[my-task] Hello world!
39
39
  */
40
40
  info(message: string, ...other: unknown[]): void;
41
41
  /**
42
42
  * A helper function to log messages with the `CronTask[${name}]` prefix.
43
- * @param message The message to include after the prefix
44
- * @param other Extra parameters to pass to the logger
43
+ *
44
+ * @param message - The message to include after the prefix
45
+ * @param other - Extra parameters to pass to the logger
45
46
  * @example
46
47
  * this.error('Something went wrong!'); // CronTask[my-task] Something went wrong!
47
48
  */
48
49
  error(message: string, ...other: unknown[]): void;
49
50
  /**
50
51
  * A helper function to log messages with the `CronTask[${name}]` prefix.
51
- * @param message The message to include after the prefix
52
- * @param other Extra parameters to pass to the logger
52
+ *
53
+ * @param message - The message to include after the prefix
54
+ * @param other - Extra parameters to pass to the logger
53
55
  * @example
54
56
  * this.warn('Something is not right!'); // CronTask[my-task] Something is not right!
55
57
  */
56
58
  warn(message: string, ...other: unknown[]): void;
57
59
  /**
58
60
  * A helper function to log messages with the `CronTask[${name}]` prefix.
59
- * @param message The message to include after the prefix
60
- * @param other Extra parameters to pass to the logger
61
+ *
62
+ * @param message - The message to include after the prefix
63
+ * @param other - Extra parameters to pass to the logger
61
64
  * @example
62
65
  * this.debug('Something is happening!'); // CronTask[my-task] Something is happening!
63
66
  */
64
67
  debug(message: string, ...other: unknown[]): void;
65
68
  /**
66
69
  * A helper function to log messages with the `CronTask[${name}]` prefix.
67
- * @param message The message to include after the prefix
68
- * @param other Extra parameters to pass to the logger
70
+ *
71
+ * @param message - The message to include after the prefix
72
+ * @param other - Extra parameters to pass to the logger
69
73
  * @example
70
74
  * this.trace('Loaded the file.'); // CronTask[my-task] Loaded the file.
71
75
  */
72
76
  trace(message: string, ...other: unknown[]): void;
73
77
  }
74
78
  declare namespace CronTask {
75
- type Options = Piece.Options & CronJobOptions;
76
- /** @deprecated Use {@linkcode LoaderContext} instead. */
79
+ type Options = CronJobOptions & Piece.Options;
80
+ /**
81
+ * @deprecated Use {@link LoaderContext} instead.
82
+ */
77
83
  type Context = LoaderContext;
78
84
  type LoaderContext = Piece.LoaderContext<'cron-tasks'>;
79
85
  }
80
- //#endregion
81
86
  export { CronTask as t };
82
- //# sourceMappingURL=CronTask-DFQB8iCL.d.mts.map
87
+ //# sourceMappingURL=CronTask-yw_82mkr.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CronTask-yw_82mkr.d.mts","names":[],"sources":["../../src/lib/structures/CronTask.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;uBA0BsB,SAAS,gBAAgB,SAAS,UAAU,SAAS,iBAAiB,MAAM;EAClF,KAAK;EAED,YAAA,SAAS,SAAS,eAAe,SAAS;WAI7C,OAAO;EAEhB,SAAS,KAAK,OAAO;EAErB,OAAO,gBAAgB,KAAK,OAAO;;;;;;;;;EAUnC,KAAK,oBAAoB;;;;;;;;;EAYzB,MAAM,oBAAoB;;;;;;;;;EAY1B,KAAK,oBAAoB;;;;;;;;;EAYzB,MAAM,oBAAoB;;;;;;;;;EAY1B,MAAM,oBAAoB;;kBAKT;OACZ,UAAU,iBAAiB,MAAM;;;;OAIjC,UAAU;OACV,gBAAgB,MAAM"}
@@ -1,28 +1,28 @@
1
- import { n as CronTaskHandlerOptions } from "./CronTaskTypes-Dj8Ny7j5.mjs";
1
+ import { n as CronTaskHandlerOptions } from "./CronTaskTypes-BRnD-V2d.mjs";
2
2
  import Sentry from "@sentry/node";
3
- //#region src/lib/CronTaskHandler.d.ts
4
3
  declare class CronTaskHandler {
5
4
  /**
6
5
  * The default IANA/TZ timezone to use for all cron jobs.
7
6
  * You can override this per task, using the timezone option.
7
+ *
8
8
  * @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
9
9
  */
10
10
  defaultTimezone?: CronTaskHandlerOptions['defaultTimezone'];
11
11
  /**
12
12
  * The ability to opt-out of instrumenting cron jobs with Sentry.
13
13
  * If you don't use Sentry, you can ignore this option.
14
+ *
14
15
  * @see https://docs.sentry.io/product/crons/
15
- * @default false
16
+ * @defaultValue false
16
17
  */
17
18
  disableSentry: boolean;
18
19
  /**
19
20
  * The Sentry instance to use for instrumenting cron jobs.
20
- * This is only available when [`@sentry/node`](https://www.npmjs.com/package/@sentry/node)
21
- * is installed and the {@linkcode disableSentry} option is set to false.
21
+ * This is only available when [`@sentry/node`](https://www.npmjs.com/package/\@sentry/node)
22
+ * is installed and the `disableSentry` option is set to false.
22
23
  */
23
24
  sentry?: typeof Sentry;
24
25
  constructor(options?: Partial<CronTaskHandlerOptions>);
25
26
  }
26
- //#endregion
27
27
  export { CronTaskHandler as t };
28
- //# sourceMappingURL=CronTaskHandler-bxZeiSQD.d.mts.map
28
+ //# sourceMappingURL=CronTaskHandler-CeMP2qgY.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CronTaskHandler-CeMP2qgY.d.mts","names":[],"sources":["../../src/lib/CronTaskHandler.ts"],"mappings":";;cAGa;;;;;;;EAOL,kBAAkB;;;;;;;;EASlB;;;;;;EAOA,gBAAgB;EAEJ,YAAA,UAAU,QAAQ"}
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.148.0/helpers/esm/typeof.js
1
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/typeof.js
2
2
  function _typeof(o) {
3
3
  "@babel/helpers - typeof";
4
4
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -8,28 +8,25 @@ function _typeof(o) {
8
8
  }, _typeof(o);
9
9
  }
10
10
 
11
- //#endregion
12
- //#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPrimitive.js
13
- function toPrimitive(t, r) {
11
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/toPrimitive.js
12
+ function toPrimitive(t, e) {
14
13
  if ("object" != _typeof(t) || !t) return t;
15
- var e = t[Symbol.toPrimitive];
16
- if (void 0 !== e) {
17
- var i = e.call(t, r || "default");
14
+ var r;
15
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
16
+ var i = r.call(t, e || "default");
18
17
  if ("object" != _typeof(i)) return i;
19
18
  throw new TypeError("@@toPrimitive must return a primitive value.");
20
19
  }
21
- return ("string" === r ? String : Number)(t);
20
+ return ("string" === e ? String : Number)(t);
22
21
  }
23
22
 
24
- //#endregion
25
- //#region \0@oxc-project+runtime@0.148.0/helpers/esm/toPropertyKey.js
23
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/toPropertyKey.js
26
24
  function toPropertyKey(t) {
27
25
  var i = toPrimitive(t, "string");
28
26
  return "symbol" == _typeof(i) ? i : i + "";
29
27
  }
30
28
 
31
- //#endregion
32
- //#region \0@oxc-project+runtime@0.148.0/helpers/esm/defineProperty.js
29
+ // \0@oxc-project+runtime@0.158.0/helpers/esm/defineProperty.js
33
30
  function _defineProperty(e, r, t) {
34
31
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
35
32
  value: t,
@@ -39,8 +36,7 @@ function _defineProperty(e, r, t) {
39
36
  }) : e[r] = t, e;
40
37
  }
41
38
 
42
- //#endregion
43
- //#region src/lib/CronTaskHandler.ts
39
+ // src/lib/CronTaskHandler.ts
44
40
  var CronTaskHandler = class {
45
41
  constructor(options) {
46
42
  _defineProperty(this, "defaultTimezone", void 0);
@@ -51,6 +47,5 @@ var CronTaskHandler = class {
51
47
  }
52
48
  };
53
49
 
54
- //#endregion
55
50
  export { CronTaskHandler as t };
56
- //# sourceMappingURL=CronTaskHandler-DiH4wqma.mjs.map
51
+ //# sourceMappingURL=CronTaskHandler-DL6DRegu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CronTaskHandler-DL6DRegu.mjs","names":[],"sources":["../../src/lib/CronTaskHandler.ts"],"sourcesContent":["import type Sentry from '@sentry/node';\nimport type { CronTaskHandlerOptions } from './types/CronTaskTypes';\n\nexport class CronTaskHandler {\n\t/**\n\t * The default IANA/TZ timezone to use for all cron jobs.\n\t * You can override this per task, using the timezone option.\n\t *\n\t * @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\n\t */\n\tpublic defaultTimezone?: CronTaskHandlerOptions['defaultTimezone'];\n\n\t/**\n\t * The ability to opt-out of instrumenting cron jobs with Sentry.\n\t * If you don't use Sentry, you can ignore this option.\n\t *\n\t * @see https://docs.sentry.io/product/crons/\n\t * @defaultValue false\n\t */\n\tpublic disableSentry: boolean;\n\n\t/**\n\t * The Sentry instance to use for instrumenting cron jobs.\n\t * This is only available when [`@sentry/node`](https://www.npmjs.com/package/\\@sentry/node)\n\t * is installed and the `disableSentry` option is set to false.\n\t */\n\tpublic sentry?: typeof Sentry;\n\n\tpublic constructor(options?: Partial<CronTaskHandlerOptions>) {\n\t\tthis.defaultTimezone = options?.defaultTimezone;\n\t\tthis.disableSentry = options?.disableSentry ?? false;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAa,kBAAb,MAA6B;CAyBrB,YAAY,SAA2C;wBAlBvD;wBASA;wBAOA;EAGN,KAAK,kBAAkB,SAAS;EAChC,KAAK,gBAAgB,SAAS,iBAAiB;CAChD;AACD"}
@@ -1,6 +1,5 @@
1
- import { t as CronTask } from "./CronTask-DFQB8iCL.mjs";
1
+ import { t as CronTask } from "./CronTask-yw_82mkr.mjs";
2
2
  import { Store } from "@sapphire/pieces";
3
- //#region src/lib/structures/CronTaskStore.d.ts
4
3
  declare class CronTaskStore extends Store<CronTask, 'cron-tasks'> {
5
4
  constructor();
6
5
  /**
@@ -11,7 +10,6 @@ declare class CronTaskStore extends Store<CronTask, 'cron-tasks'> {
11
10
  * - Are enabled
12
11
  * - Are currently running
13
12
  * - Have not been permanently stopped
14
- *
15
13
  * @returns CronTaskStore
16
14
  */
17
15
  pauseAll(): this;
@@ -23,7 +21,6 @@ declare class CronTaskStore extends Store<CronTask, 'cron-tasks'> {
23
21
  * - Are enabled
24
22
  * - Are not currently running
25
23
  * - Have not been permanently stopped
26
- *
27
24
  * @returns CronTaskStore
28
25
  */
29
26
  resumeAll(): this;
@@ -36,7 +33,6 @@ declare class CronTaskStore extends Store<CronTask, 'cron-tasks'> {
36
33
  * - Have not been permanently stopped
37
34
  *
38
35
  * ⚠️ Stopping jobs is **permanent** and cannot be resumed afterwards!
39
- *
40
36
  * @returns CronTaskStore
41
37
  */
42
38
  stopAll(): this;
@@ -50,6 +46,5 @@ declare class CronTaskStore extends Store<CronTask, 'cron-tasks'> {
50
46
  */
51
47
  clear(): void;
52
48
  }
53
- //#endregion
54
49
  export { CronTaskStore as t };
55
- //# sourceMappingURL=CronTaskStore-Ei9TVxaS.d.mts.map
50
+ //# sourceMappingURL=CronTaskStore-Cxdru_tz.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CronTaskStore-Cxdru_tz.d.mts","names":[],"sources":["../../src/lib/structures/CronTaskStore.ts"],"mappings":";;cAKa,sBAAsB,MAAM;;;;;;;;;;;;EAejC;;;;;;;;;;;EAoBA;;;;;;;;;;;;EAqBA;EAUS,IAAI,aAAa,OAAO;;;;EAsDxB,OAAO;;;;EAYP"}
@@ -1,5 +1,4 @@
1
1
  import { CronOptions } from "croner";
2
- //#region src/lib/types/CronTaskTypes.d.ts
3
2
  interface CronTaskHandlerOptions {
4
3
  /**
5
4
  * The default IANA timezone to use for all cron jobs.
@@ -9,20 +8,21 @@ interface CronTaskHandlerOptions {
9
8
  /**
10
9
  * The ability to opt-out of instrumenting cron jobs with Sentry.
11
10
  * If you don't use Sentry, you can ignore this option.
11
+ *
12
12
  * @see https://docs.sentry.io/product/crons/
13
- * @default false
13
+ * @defaultValue false
14
14
  */
15
15
  disableSentry: boolean;
16
16
  }
17
- interface CronJobOptions extends Pick<CronOptions, 'maxRuns' | 'unref' | 'timezone'> {
18
- pattern: string | Date;
17
+ interface CronJobOptions extends Pick<CronOptions, 'maxRuns' | 'timezone' | 'unref'> {
18
+ pattern: Date | string;
19
19
  /**
20
20
  * If true, prevents the job from running if the previous execution is still in progress.
21
21
  * If the task has a protect method, it will be called if the job is blocked.
22
- * @default false
22
+ *
23
+ * @defaultValue false
23
24
  */
24
25
  protect?: boolean;
25
26
  }
26
- //#endregion
27
27
  export { CronTaskHandlerOptions as n, CronJobOptions as t };
28
- //# sourceMappingURL=CronTaskTypes-Dj8Ny7j5.d.mts.map
28
+ //# sourceMappingURL=CronTaskTypes-BRnD-V2d.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CronTaskTypes-BRnD-V2d.d.mts","names":[],"sources":["../../src/lib/types/CronTaskTypes.ts"],"mappings":";UAEiB;;;;;EAKhB;;;;;;;;EASA;;UAGgB,uBAAuB,KAAK;EAC5C,SAAS;;;;;;;EAOT"}
@@ -1,8 +1,7 @@
1
- import { n as CronTaskHandlerOptions, t as CronJobOptions } from "./CronTaskTypes-Dj8Ny7j5.mjs";
2
- import { t as CronTask } from "./CronTask-DFQB8iCL.mjs";
3
- import { t as CronTaskStore } from "./CronTaskStore-Ei9TVxaS.mjs";
4
- import { t as CronTaskHandler } from "./CronTaskHandler-bxZeiSQD.mjs";
5
- //#region src/index.d.ts
1
+ import { t as CronTaskStore } from "./CronTaskStore-Cxdru_tz.mjs";
2
+ import { t as CronTaskHandler } from "./CronTaskHandler-CeMP2qgY.mjs";
3
+ import { n as CronTaskHandlerOptions, t as CronJobOptions } from "./CronTaskTypes-BRnD-V2d.mjs";
4
+ import { t as CronTask } from "./CronTask-yw_82mkr.mjs";
6
5
  declare module '@sapphire/pieces' {
7
6
  interface Container {
8
7
  cronTasks: CronTaskHandler;
@@ -17,12 +16,11 @@ declare module 'discord.js' {
17
16
  }
18
17
  }
19
18
  /**
20
- * The [@kingsworld/plugin-cron](https://github.com/Kings-World/sapphire-plugins/tree/main/packages/cron) version that you are currently using.
19
+ * The [\@kingsworld/plugin-cron](https://github.com/Kings-World/sapphire-plugins/tree/main/packages/cron) version that you are currently using.
21
20
  * An example use of this is showing it of in a bot information command.
22
21
  *
23
22
  * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild
24
23
  */
25
24
  export declare const version: string;
26
- //#endregion
27
- export { CronJobOptions, CronTask, CronTaskHandler, CronTaskHandlerOptions, CronTaskStore };
25
+ export { type CronJobOptions, CronTask, CronTaskHandler, type CronTaskHandlerOptions, CronTaskStore };
28
26
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;YAWa;IAAA,WAAA;;YAAA;IAAA,cAAA;;;;YAUS;IAAA,YAAA,QAAA;;;;;;;;;qBAUtB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;YAUW;IACT,WAAW;;YAGF;IACT,cAAc;;;;YAKE;IAChB,YAAY,QAAQ;;;;;;;;;qBAWT"}
@@ -1,16 +1,15 @@
1
- import { t as CronTaskHandler } from "./CronTaskHandler-DiH4wqma.mjs";
1
+ import { t as CronTaskHandler } from "./CronTaskHandler-DL6DRegu.mjs";
2
2
  import { CronTask } from "./lib/structures/CronTask.mjs";
3
3
  import { CronTaskStore } from "./lib/structures/CronTaskStore.mjs";
4
4
 
5
- //#region src/index.ts
5
+ // src/index.ts
6
6
  /**
7
- * The [@kingsworld/plugin-cron](https://github.com/Kings-World/sapphire-plugins/tree/main/packages/cron) version that you are currently using.
7
+ * The [\@kingsworld/plugin-cron](https://github.com/Kings-World/sapphire-plugins/tree/main/packages/cron) version that you are currently using.
8
8
  * An example use of this is showing it of in a bot information command.
9
9
  *
10
10
  * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild
11
11
  */
12
- const version = "4.0.2-next.fd95c4b";
12
+ const version = "5.0.0-next.45848ab";
13
13
 
14
- //#endregion
15
14
  export { CronTask, CronTaskHandler, CronTaskStore, version };
16
15
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import type { CronTaskStore } from './lib/structures/CronTaskStore';\nimport type { CronTaskHandler } from './lib/CronTaskHandler';\nimport type { CronTaskHandlerOptions } from './lib/types/CronTaskTypes';\n\nexport * from './lib/CronTaskHandler';\nexport * from './lib/structures/CronTask';\nexport * from './lib/structures/CronTaskStore';\nexport * from './lib/types/CronTaskTypes';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\tcronTasks: CronTaskHandler;\n\t}\n\n\tinterface StoreRegistryEntries {\n\t\t'cron-tasks': CronTaskStore;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\tcronTasks?: Partial<CronTaskHandlerOptions>;\n\t}\n}\n\n/**\n * The [@kingsworld/plugin-cron](https://github.com/Kings-World/sapphire-plugins/tree/main/packages/cron) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\nexport const version: string = '[VI]{{inject}}[/VI]';\n"],"mappings":";;;;;;;;;;;AA+BA,MAAA,UAAA"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import type { CronTaskStore } from './lib/structures/CronTaskStore';\nimport type { CronTaskHandler } from './lib/CronTaskHandler';\nimport type { CronTaskHandlerOptions } from './lib/types/CronTaskTypes';\n\nexport * from './lib/CronTaskHandler';\nexport * from './lib/structures/CronTask';\nexport * from './lib/structures/CronTaskStore';\nexport type * from './lib/types/CronTaskTypes';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\tcronTasks: CronTaskHandler;\n\t}\n\n\tinterface StoreRegistryEntries {\n\t\t'cron-tasks': CronTaskStore;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\tcronTasks?: Partial<CronTaskHandlerOptions>;\n\t}\n}\n\n/**\n * The [\\@kingsworld/plugin-cron](https://github.com/Kings-World/sapphire-plugins/tree/main/packages/cron) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '[VI]{{inject}}[/VI]';\n"],"mappings":";;;;;;;;;;;AAgCA,MAAa,UAAkB"}
@@ -1,2 +1,2 @@
1
- import { t as CronTaskHandler } from "../CronTaskHandler-bxZeiSQD.mjs";
1
+ import { t as CronTaskHandler } from "../CronTaskHandler-CeMP2qgY.mjs";
2
2
  export { CronTaskHandler };
@@ -1,3 +1,3 @@
1
- import { t as CronTaskHandler } from "../CronTaskHandler-DiH4wqma.mjs";
1
+ import { t as CronTaskHandler } from "../CronTaskHandler-DL6DRegu.mjs";
2
2
 
3
3
  export { CronTaskHandler };
@@ -1,2 +1,2 @@
1
- import { t as CronTask } from "../../CronTask-DFQB8iCL.mjs";
1
+ import { t as CronTask } from "../../CronTask-yw_82mkr.mjs";
2
2
  export { CronTask };
@@ -1,6 +1,6 @@
1
1
  import { Piece } from "@sapphire/pieces";
2
2
 
3
- //#region src/lib/structures/CronTask.ts
3
+ // src/lib/structures/CronTask.ts
4
4
  /**
5
5
  * @example
6
6
  *
@@ -28,8 +28,9 @@ var CronTask = class extends Piece {
28
28
  }
29
29
  /**
30
30
  * A helper function to log messages with the `CronTask[${name}]` prefix.
31
- * @param message The message to include after the prefix
32
- * @param other Extra parameters to pass to the logger
31
+ *
32
+ * @param message - The message to include after the prefix
33
+ * @param other - Extra parameters to pass to the logger
33
34
  * @example
34
35
  * this.info('Hello world!'); // CronTask[my-task] Hello world!
35
36
  */
@@ -38,8 +39,9 @@ var CronTask = class extends Piece {
38
39
  }
39
40
  /**
40
41
  * A helper function to log messages with the `CronTask[${name}]` prefix.
41
- * @param message The message to include after the prefix
42
- * @param other Extra parameters to pass to the logger
42
+ *
43
+ * @param message - The message to include after the prefix
44
+ * @param other - Extra parameters to pass to the logger
43
45
  * @example
44
46
  * this.error('Something went wrong!'); // CronTask[my-task] Something went wrong!
45
47
  */
@@ -48,8 +50,9 @@ var CronTask = class extends Piece {
48
50
  }
49
51
  /**
50
52
  * A helper function to log messages with the `CronTask[${name}]` prefix.
51
- * @param message The message to include after the prefix
52
- * @param other Extra parameters to pass to the logger
53
+ *
54
+ * @param message - The message to include after the prefix
55
+ * @param other - Extra parameters to pass to the logger
53
56
  * @example
54
57
  * this.warn('Something is not right!'); // CronTask[my-task] Something is not right!
55
58
  */
@@ -58,8 +61,9 @@ var CronTask = class extends Piece {
58
61
  }
59
62
  /**
60
63
  * A helper function to log messages with the `CronTask[${name}]` prefix.
61
- * @param message The message to include after the prefix
62
- * @param other Extra parameters to pass to the logger
64
+ *
65
+ * @param message - The message to include after the prefix
66
+ * @param other - Extra parameters to pass to the logger
63
67
  * @example
64
68
  * this.debug('Something is happening!'); // CronTask[my-task] Something is happening!
65
69
  */
@@ -68,8 +72,9 @@ var CronTask = class extends Piece {
68
72
  }
69
73
  /**
70
74
  * A helper function to log messages with the `CronTask[${name}]` prefix.
71
- * @param message The message to include after the prefix
72
- * @param other Extra parameters to pass to the logger
75
+ *
76
+ * @param message - The message to include after the prefix
77
+ * @param other - Extra parameters to pass to the logger
73
78
  * @example
74
79
  * this.trace('Loaded the file.'); // CronTask[my-task] Loaded the file.
75
80
  */
@@ -78,6 +83,5 @@ var CronTask = class extends Piece {
78
83
  }
79
84
  };
80
85
 
81
- //#endregion
82
86
  export { CronTask };
83
87
  //# sourceMappingURL=CronTask.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"CronTask.mjs","names":[],"sources":["../../../../src/lib/structures/CronTask.ts"],"sourcesContent":["import type { Awaitable } from '@sapphire/framework';\nimport { Piece } from '@sapphire/pieces';\nimport type { Cron } from 'croner';\nimport type { CronJobOptions } from '../types/CronTaskTypes';\n\n/**\n * @example\n *\n * ```typescript\n * // ping.ts\n * import { CronTask } from '@kingsworld/plugin-cron';\n *\n * export class PingPong extends CronTask {\n * \tpublic constructor(context: CronTask.LoaderContext, options: CronTask.Options) {\n * \t\tsuper(context, {\n * \t\t\t...options,\n * \t\t\tpattern: '* * * * *'\n * \t\t});\n * \t}\n *\n * \tpublic run() {\n * \t\tthis.info('Ping Pong! 🏓'); // CronTask[ping] Ping Pong! 🏓\n * \t}\n * }\n * ```\n */\nexport abstract class CronTask<Options extends CronTask.Options = CronTask.Options> extends Piece<Options, 'cron-tasks'> {\n\tdeclare public job: Cron;\n\n\tpublic constructor(context: CronTask.LoaderContext, options: Options) {\n\t\tsuper(context, options);\n\t}\n\n\tpublic abstract run(): Awaitable<unknown>;\n\n\tpublic protect?(job: Cron): Awaitable<unknown>;\n\n\tpublic catch?(error: unknown, job: Cron): Awaitable<unknown>;\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t * @param message The message to include after the prefix\n\t * @param other Extra parameters to pass to the logger\n\t * @example\n\t * this.info('Hello world!'); // CronTask[my-task] Hello world!\n\t */\n\tpublic info(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.info(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t * @param message The message to include after the prefix\n\t * @param other Extra parameters to pass to the logger\n\t * @example\n\t * this.error('Something went wrong!'); // CronTask[my-task] Something went wrong!\n\t */\n\tpublic error(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.error(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t * @param message The message to include after the prefix\n\t * @param other Extra parameters to pass to the logger\n\t * @example\n\t * this.warn('Something is not right!'); // CronTask[my-task] Something is not right!\n\t */\n\tpublic warn(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.warn(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t * @param message The message to include after the prefix\n\t * @param other Extra parameters to pass to the logger\n\t * @example\n\t * this.debug('Something is happening!'); // CronTask[my-task] Something is happening!\n\t */\n\tpublic debug(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.debug(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t * @param message The message to include after the prefix\n\t * @param other Extra parameters to pass to the logger\n\t * @example\n\t * this.trace('Loaded the file.'); // CronTask[my-task] Loaded the file.\n\t */\n\tpublic trace(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.trace(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n}\n\nexport namespace CronTask {\n\texport type Options = Piece.Options & CronJobOptions;\n\t/** @deprecated Use {@linkcode LoaderContext} instead. */\n\texport type Context = LoaderContext;\n\texport type LoaderContext = Piece.LoaderContext<'cron-tasks'>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAA,WAAA,cAAA,MAAA;CAGA,AAAA,YAAA,SAAA,SAAA;EACA,MAAA,SAAA,OAAA;CACA;;;;;;;;CAeA,AAAA,KAAA,SAAA,GAAA,OAAA;EACA,KAAA,UAAA,OAAA,KAAA,YAAA,KAAA,KAAA,IAAA,WAAA,GAAA,KAAA;CACA;;;;;;;;CASA,AAAA,MAAA,SAAA,GAAA,OAAA;EACA,KAAA,UAAA,OAAA,MAAA,YAAA,KAAA,KAAA,IAAA,WAAA,GAAA,KAAA;CACA;;;;;;;;CASA,AAAA,KAAA,SAAA,GAAA,OAAA;EACA,KAAA,UAAA,OAAA,KAAA,YAAA,KAAA,KAAA,IAAA,WAAA,GAAA,KAAA;CACA;;;;;;;;CASA,AAAA,MAAA,SAAA,GAAA,OAAA;EACA,KAAA,UAAA,OAAA,MAAA,YAAA,KAAA,KAAA,IAAA,WAAA,GAAA,KAAA;CACA;;;;;;;;CASA,AAAA,MAAA,SAAA,GAAA,OAAA;EACA,KAAA,UAAA,OAAA,MAAA,YAAA,KAAA,KAAA,IAAA,WAAA,GAAA,KAAA;CACA;AACA"}
1
+ {"version":3,"file":"CronTask.mjs","names":[],"sources":["../../../../src/lib/structures/CronTask.ts"],"sourcesContent":["import type { Awaitable } from '@sapphire/framework';\nimport { Piece } from '@sapphire/pieces';\nimport type { Cron } from 'croner';\nimport type { CronJobOptions } from '../types/CronTaskTypes';\n\n/**\n * @example\n *\n * ```typescript\n * // ping.ts\n * import { CronTask } from '@kingsworld/plugin-cron';\n *\n * export class PingPong extends CronTask {\n * \tpublic constructor(context: CronTask.LoaderContext, options: CronTask.Options) {\n * \t\tsuper(context, {\n * \t\t\t...options,\n * \t\t\tpattern: '* * * * *'\n * \t\t});\n * \t}\n *\n * \tpublic run() {\n * \t\tthis.info('Ping Pong! 🏓'); // CronTask[ping] Ping Pong! 🏓\n * \t}\n * }\n * ```\n */\nexport abstract class CronTask<Options extends CronTask.Options = CronTask.Options> extends Piece<Options, 'cron-tasks'> {\n\tdeclare public job: Cron;\n\n\tpublic constructor(context: CronTask.LoaderContext, options: Options) {\n\t\tsuper(context, options);\n\t}\n\n\tpublic abstract run(): Awaitable<unknown>;\n\n\tpublic protect?(job: Cron): Awaitable<unknown>;\n\n\tpublic catch?(error: unknown, job: Cron): Awaitable<unknown>;\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t *\n\t * @param message - The message to include after the prefix\n\t * @param other - Extra parameters to pass to the logger\n\t * @example\n\t * this.info('Hello world!'); // CronTask[my-task] Hello world!\n\t */\n\tpublic info(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.info(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t *\n\t * @param message - The message to include after the prefix\n\t * @param other - Extra parameters to pass to the logger\n\t * @example\n\t * this.error('Something went wrong!'); // CronTask[my-task] Something went wrong!\n\t */\n\tpublic error(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.error(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t *\n\t * @param message - The message to include after the prefix\n\t * @param other - Extra parameters to pass to the logger\n\t * @example\n\t * this.warn('Something is not right!'); // CronTask[my-task] Something is not right!\n\t */\n\tpublic warn(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.warn(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t *\n\t * @param message - The message to include after the prefix\n\t * @param other - Extra parameters to pass to the logger\n\t * @example\n\t * this.debug('Something is happening!'); // CronTask[my-task] Something is happening!\n\t */\n\tpublic debug(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.debug(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n\n\t/**\n\t * A helper function to log messages with the `CronTask[${name}]` prefix.\n\t *\n\t * @param message - The message to include after the prefix\n\t * @param other - Extra parameters to pass to the logger\n\t * @example\n\t * this.trace('Loaded the file.'); // CronTask[my-task] Loaded the file.\n\t */\n\tpublic trace(message: string, ...other: unknown[]) {\n\t\tthis.container.logger.trace(`CronTask[${this.name}] ${message}`, ...other);\n\t}\n}\n\nexport declare namespace CronTask {\n\texport type Options = CronJobOptions & Piece.Options;\n\t/**\n\t * @deprecated Use {@link LoaderContext} instead.\n\t */\n\texport type Context = LoaderContext;\n\texport type LoaderContext = Piece.LoaderContext<'cron-tasks'>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAsB,WAAtB,cAA4F,MAA6B;CAGjH,YAAY,SAAiC,SAAkB;EACrE,MAAM,SAAS,OAAO;CACvB;;;;;;;;;CAgBO,KAAK,SAAiB,GAAG,OAAkB;EACjD,KAAK,UAAU,OAAO,KAAK,YAAY,KAAK,KAAK,IAAI,WAAW,GAAG,KAAK;CACzE;;;;;;;;;CAUO,MAAM,SAAiB,GAAG,OAAkB;EAClD,KAAK,UAAU,OAAO,MAAM,YAAY,KAAK,KAAK,IAAI,WAAW,GAAG,KAAK;CAC1E;;;;;;;;;CAUO,KAAK,SAAiB,GAAG,OAAkB;EACjD,KAAK,UAAU,OAAO,KAAK,YAAY,KAAK,KAAK,IAAI,WAAW,GAAG,KAAK;CACzE;;;;;;;;;CAUO,MAAM,SAAiB,GAAG,OAAkB;EAClD,KAAK,UAAU,OAAO,MAAM,YAAY,KAAK,KAAK,IAAI,WAAW,GAAG,KAAK;CAC1E;;;;;;;;;CAUO,MAAM,SAAiB,GAAG,OAAkB;EAClD,KAAK,UAAU,OAAO,MAAM,YAAY,KAAK,KAAK,IAAI,WAAW,GAAG,KAAK;CAC1E;AACD"}
@@ -1,2 +1,2 @@
1
- import { t as CronTaskStore } from "../../CronTaskStore-Ei9TVxaS.mjs";
1
+ import { t as CronTaskStore } from "../../CronTaskStore-Cxdru_tz.mjs";
2
2
  export { CronTaskStore };
@@ -3,7 +3,7 @@ import { normalizePattern } from "../utils/normalizePattern.mjs";
3
3
  import { Store } from "@sapphire/pieces";
4
4
  import { Cron } from "croner";
5
5
 
6
- //#region src/lib/structures/CronTaskStore.ts
6
+ // src/lib/structures/CronTaskStore.ts
7
7
  var CronTaskStore = class extends Store {
8
8
  constructor() {
9
9
  super(CronTask, { name: "cron-tasks" });
@@ -16,7 +16,6 @@ var CronTaskStore = class extends Store {
16
16
  * - Are enabled
17
17
  * - Are currently running
18
18
  * - Have not been permanently stopped
19
- *
20
19
  * @returns CronTaskStore
21
20
  */
22
21
  pauseAll() {
@@ -35,7 +34,6 @@ var CronTaskStore = class extends Store {
35
34
  * - Are enabled
36
35
  * - Are not currently running
37
36
  * - Have not been permanently stopped
38
- *
39
37
  * @returns CronTaskStore
40
38
  */
41
39
  resumeAll() {
@@ -55,7 +53,6 @@ var CronTaskStore = class extends Store {
55
53
  * - Have not been permanently stopped
56
54
  *
57
55
  * ⚠️ Stopping jobs is **permanent** and cannot be resumed afterwards!
58
- *
59
56
  * @returns CronTaskStore
60
57
  */
61
58
  stopAll() {
@@ -116,10 +113,9 @@ var CronTaskStore = class extends Store {
116
113
  */
117
114
  clear() {
118
115
  this.stopAll();
119
- return super.clear();
116
+ super.clear();
120
117
  }
121
118
  };
122
119
 
123
- //#endregion
124
120
  export { CronTaskStore };
125
121
  //# sourceMappingURL=CronTaskStore.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"CronTaskStore.mjs","names":[],"sources":["../../../../src/lib/structures/CronTaskStore.ts"],"sourcesContent":["import { Store } from '@sapphire/pieces';\nimport { Cron } from 'croner';\nimport { CronTask } from './CronTask';\nimport { normalizePattern } from '../utils/normalizePattern';\n\nexport class CronTaskStore extends Store<CronTask, 'cron-tasks'> {\n\tpublic constructor() {\n\t\tsuper(CronTask, { name: 'cron-tasks' });\n\t}\n\n\t/**\n\t * Loops over all tasks and pauses those that are running.\n\t *\n\t * @remarks\n\t * This method will only pause tasks that:\n\t * - Are enabled\n\t * - Are currently running\n\t * - Have not been permanently stopped\n\t *\n\t * @returns CronTaskStore\n\t */\n\tpublic pauseAll() {\n\t\tfor (const task of this.values()) {\n\t\t\tif (!task.enabled || !task.job.isRunning()) continue;\n\t\t\ttask.job.pause();\n\t\t}\n\n\t\tStore.logger?.(`[STORE => ${this.name}] [PAUSE] Paused all cronjob tasks.`);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Loops over all tasks and resumes those that are paused.\n\t *\n\t * @remarks\n\t * This method will only resume tasks that:\n\t * - Are enabled\n\t * - Are not currently running\n\t * - Have not been permanently stopped\n\t *\n\t * @returns CronTaskStore\n\t */\n\tpublic resumeAll() {\n\t\tfor (const task of this.values()) {\n\t\t\tif (!task.enabled || task.job.isRunning() || task.job.isStopped()) continue;\n\t\t\ttask.job.resume();\n\t\t}\n\n\t\tStore.logger?.(`[STORE => ${this.name}] [RESUME] Resumed all cronjob tasks.`);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Loops over all tasks and stops those that are running.\n\t *\n\t * @remarks\n\t * This method will only stop tasks that:\n\t * - Are enabled\n\t * - Have not been permanently stopped\n\t *\n\t * ⚠️ Stopping jobs is **permanent** and cannot be resumed afterwards!\n\t *\n\t * @returns CronTaskStore\n\t */\n\tpublic stopAll() {\n\t\tfor (const task of this.values()) {\n\t\t\tif (!task.enabled || task.job.isStopped()) continue;\n\t\t\ttask.job.stop();\n\t\t}\n\n\t\tStore.logger?.(`[STORE => ${this.name}] [STOP] Stopped all cronjob tasks.`);\n\t\treturn this;\n\t}\n\n\tpublic override set(key: string, value: CronTask): this {\n\t\tconst { pattern, timezone, protect, ...options } = value.options;\n\t\tconst { sentry, defaultTimezone } = this.container.cronTasks;\n\n\t\t// if a task with the same key already exists, stop it before creating a new one\n\t\tif (this.has(key)) {\n\t\t\tStore.logger?.(`[STORE => ${this.name}] [SET] Stopping existing cronjob task before creating a new one.`);\n\t\t\tthis.get(key)?.job.stop();\n\t\t}\n\n\t\tconst timeZone = timezone ?? defaultTimezone;\n\n\t\ttry {\n\t\t\tStore.logger?.(\n\t\t\t\t`[STORE => ${this.name}] [SET] Creating cronjob for ${key} with '${pattern}' as the pattern and '${timeZone}' for the timezone`\n\t\t\t);\n\n\t\t\tvalue.job = new Cron(\n\t\t\t\tpattern,\n\t\t\t\t{\n\t\t\t\t\tname: key,\n\t\t\t\t\ttimezone: timeZone,\n\t\t\t\t\tpaused: true, // we start the job manually once the client is ready\n\t\t\t\t\tprotect: value.protect?.bind(value) ?? protect,\n\t\t\t\t\tcatch: (error) => {\n\t\t\t\t\t\tvalue.error('Encountered an error while running the cron job', error);\n\t\t\t\t\t\tsentry?.captureException(error);\n\t\t\t\t\t\tvalue.catch?.bind(value)(error, value.job);\n\t\t\t\t\t},\n\t\t\t\t\t...options\n\t\t\t\t},\n\t\t\t\tasync () => {\n\t\t\t\t\t// we only want to monitor cron patterns and not single-use tasks that croner supports\n\t\t\t\t\tif (sentry && typeof pattern === 'string' && !pattern.includes(':')) {\n\t\t\t\t\t\tawait sentry.withMonitor(key, value.run.bind(value), {\n\t\t\t\t\t\t\tschedule: { type: 'crontab', value: normalizePattern(pattern) },\n\t\t\t\t\t\t\ttimezone: timeZone\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tawait value.run.bind(value)();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tvalue.error('Encountered an error while creating the cron job', error);\n\t\t\tvoid value.unload();\n\t\t}\n\n\t\treturn super.set(key, value);\n\t}\n\n\t/**\n\t * Deletes a task from the store and stops it if it's running.\n\t */\n\tpublic override delete(key: string) {\n\t\tconst task = this.get(key);\n\t\tif (task && !task.job.isStopped()) {\n\t\t\ttask.job.stop();\n\t\t}\n\n\t\treturn super.delete(key);\n\t}\n\n\t/**\n\t * Stops all running cron jobs and clears the store.\n\t */\n\tpublic override clear() {\n\t\tthis.stopAll();\n\t\treturn super.clear();\n\t}\n}\n"],"mappings":";;;;;;AAKA,IAAA,gBAAA,cAAA,MAAA;CACA,AAAA,cAAA;EACA,MAAA,UAAA,EAAA,MAAA,aAAA,CAAA;CACA;;;;;;;;;;;;CAaA,AAAA,WAAA;EACA,KAAA,MAAA,QAAA,KAAA,OAAA,GAAA;GACA,IAAA,CAAA,KAAA,WAAA,CAAA,KAAA,IAAA,UAAA,GAAA;GACA,KAAA,IAAA,MAAA;EACA;EAEA,MAAA,SAAA,aAAA,KAAA,KAAA,oCAAA;EACA,OAAA;CACA;;;;;;;;;;;;CAaA,AAAA,YAAA;EACA,KAAA,MAAA,QAAA,KAAA,OAAA,GAAA;GACA,IAAA,CAAA,KAAA,WAAA,KAAA,IAAA,UAAA,KAAA,KAAA,IAAA,UAAA,GAAA;GACA,KAAA,IAAA,OAAA;EACA;EAEA,MAAA,SAAA,aAAA,KAAA,KAAA,sCAAA;EACA,OAAA;CACA;;;;;;;;;;;;;CAcA,AAAA,UAAA;EACA,KAAA,MAAA,QAAA,KAAA,OAAA,GAAA;GACA,IAAA,CAAA,KAAA,WAAA,KAAA,IAAA,UAAA,GAAA;GACA,KAAA,IAAA,KAAA;EACA;EAEA,MAAA,SAAA,aAAA,KAAA,KAAA,oCAAA;EACA,OAAA;CACA;CAEA,AAAA,IAAA,KAAA,OAAA;EACA,MAAA,EAAA,SAAA,UAAA,SAAA,GAAA,YAAA,MAAA;EACA,MAAA,EAAA,QAAA,oBAAA,KAAA,UAAA;EAGA,IAAA,KAAA,IAAA,GAAA,GAAA;GACA,MAAA,SAAA,aAAA,KAAA,KAAA,kEAAA;GACA,KAAA,IAAA,GAAA,CAAA,EAAA,IAAA,KAAA;EACA;EAEA,MAAA,WAAA,YAAA;EAEA,IAAA;GACA,MAAA,SACA,aAAA,KAAA,KAAA,+BAAA,IAAA,SAAA,QAAA,wBAAA,SAAA,mBACA;GAEA,MAAA,MAAA,IAAA,KACA,SACA;IACA,MAAA;IACA,UAAA;IACA,QAAA;IACA,SAAA,MAAA,SAAA,KAAA,KAAA,KAAA;IACA,QAAA,UAAA;KACA,MAAA,MAAA,mDAAA,KAAA;KACA,QAAA,iBAAA,KAAA;KACA,MAAA,OAAA,KAAA,KAAA,CAAA,CAAA,OAAA,MAAA,GAAA;IACA;IACA,GAAA;GACA,GACA,YAAA;IAEA,IAAA,UAAA,OAAA,YAAA,YAAA,CAAA,QAAA,SAAA,GAAA,GACA,MAAA,OAAA,YAAA,KAAA,MAAA,IAAA,KAAA,KAAA,GAAA;KACA,UAAA;MAAA,MAAA;MAAA,OAAA,iBAAA,OAAA;KAAA;KACA,UAAA;IACA,CAAA;SAEA,MAAA,MAAA,IAAA,KAAA,KAAA,CAAA,CAAA;GAEA,CACA;EACA,SAAA,OAAA;GACA,MAAA,MAAA,oDAAA,KAAA;GACA,AAAA,MAAA,OAAA;EACA;EAEA,OAAA,MAAA,IAAA,KAAA,KAAA;CACA;;;;CAKA,AAAA,OAAA,KAAA;EACA,MAAA,OAAA,KAAA,IAAA,GAAA;EACA,IAAA,QAAA,CAAA,KAAA,IAAA,UAAA,GACA,KAAA,IAAA,KAAA;EAGA,OAAA,MAAA,OAAA,GAAA;CACA;;;;CAKA,AAAA,QAAA;EACA,KAAA,QAAA;EACA,OAAA,MAAA,MAAA;CACA;AACA"}
1
+ {"version":3,"file":"CronTaskStore.mjs","names":[],"sources":["../../../../src/lib/structures/CronTaskStore.ts"],"sourcesContent":["import { Store } from '@sapphire/pieces';\nimport { Cron } from 'croner';\nimport { CronTask } from './CronTask';\nimport { normalizePattern } from '../utils/normalizePattern';\n\nexport class CronTaskStore extends Store<CronTask, 'cron-tasks'> {\n\tpublic constructor() {\n\t\tsuper(CronTask, { name: 'cron-tasks' });\n\t}\n\n\t/**\n\t * Loops over all tasks and pauses those that are running.\n\t *\n\t * @remarks\n\t * This method will only pause tasks that:\n\t * - Are enabled\n\t * - Are currently running\n\t * - Have not been permanently stopped\n\t * @returns CronTaskStore\n\t */\n\tpublic pauseAll() {\n\t\tfor (const task of this.values()) {\n\t\t\tif (!task.enabled || !task.job.isRunning()) continue;\n\t\t\ttask.job.pause();\n\t\t}\n\n\t\tStore.logger?.(`[STORE => ${this.name}] [PAUSE] Paused all cronjob tasks.`);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Loops over all tasks and resumes those that are paused.\n\t *\n\t * @remarks\n\t * This method will only resume tasks that:\n\t * - Are enabled\n\t * - Are not currently running\n\t * - Have not been permanently stopped\n\t * @returns CronTaskStore\n\t */\n\tpublic resumeAll() {\n\t\tfor (const task of this.values()) {\n\t\t\tif (!task.enabled || task.job.isRunning() || task.job.isStopped()) continue;\n\t\t\ttask.job.resume();\n\t\t}\n\n\t\tStore.logger?.(`[STORE => ${this.name}] [RESUME] Resumed all cronjob tasks.`);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Loops over all tasks and stops those that are running.\n\t *\n\t * @remarks\n\t * This method will only stop tasks that:\n\t * - Are enabled\n\t * - Have not been permanently stopped\n\t *\n\t * ⚠️ Stopping jobs is **permanent** and cannot be resumed afterwards!\n\t * @returns CronTaskStore\n\t */\n\tpublic stopAll() {\n\t\tfor (const task of this.values()) {\n\t\t\tif (!task.enabled || task.job.isStopped()) continue;\n\t\t\ttask.job.stop();\n\t\t}\n\n\t\tStore.logger?.(`[STORE => ${this.name}] [STOP] Stopped all cronjob tasks.`);\n\t\treturn this;\n\t}\n\n\tpublic override set(key: string, value: CronTask): this {\n\t\tconst { pattern, timezone, protect, ...options } = value.options;\n\t\tconst { sentry, defaultTimezone } = this.container.cronTasks;\n\n\t\t// if a task with the same key already exists, stop it before creating a new one\n\t\tif (this.has(key)) {\n\t\t\tStore.logger?.(`[STORE => ${this.name}] [SET] Stopping existing cronjob task before creating a new one.`);\n\t\t\tthis.get(key)?.job.stop();\n\t\t}\n\n\t\tconst timeZone = timezone ?? defaultTimezone;\n\n\t\ttry {\n\t\t\tStore.logger?.(\n\t\t\t\t`[STORE => ${this.name}] [SET] Creating cronjob for ${key} with '${pattern}' as the pattern and '${timeZone}' for the timezone`\n\t\t\t);\n\n\t\t\tvalue.job = new Cron(\n\t\t\t\tpattern,\n\t\t\t\t{\n\t\t\t\t\tname: key,\n\t\t\t\t\ttimezone: timeZone,\n\t\t\t\t\tpaused: true, // we start the job manually once the client is ready\n\t\t\t\t\tprotect: value.protect?.bind(value) ?? protect,\n\t\t\t\t\tcatch: (error) => {\n\t\t\t\t\t\tvalue.error('Encountered an error while running the cron job', error);\n\t\t\t\t\t\tsentry?.captureException(error);\n\t\t\t\t\t\tvalue.catch?.bind(value)(error, value.job);\n\t\t\t\t\t},\n\t\t\t\t\t...options\n\t\t\t\t},\n\t\t\t\tasync () => {\n\t\t\t\t\t// we only want to monitor cron patterns and not single-use tasks that croner supports\n\t\t\t\t\tif (sentry && typeof pattern === 'string' && !pattern.includes(':')) {\n\t\t\t\t\t\tawait sentry.withMonitor(key, value.run.bind(value), {\n\t\t\t\t\t\t\tschedule: { type: 'crontab', value: normalizePattern(pattern) },\n\t\t\t\t\t\t\ttimezone: timeZone\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tawait value.run.bind(value)();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tvalue.error('Encountered an error while creating the cron job', error);\n\t\t\tvoid value.unload();\n\t\t}\n\n\t\treturn super.set(key, value);\n\t}\n\n\t/**\n\t * Deletes a task from the store and stops it if it's running.\n\t */\n\tpublic override delete(key: string) {\n\t\tconst task = this.get(key);\n\t\tif (task && !task.job.isStopped()) {\n\t\t\ttask.job.stop();\n\t\t}\n\n\t\treturn super.delete(key);\n\t}\n\n\t/**\n\t * Stops all running cron jobs and clears the store.\n\t */\n\tpublic override clear() {\n\t\tthis.stopAll();\n\t\tsuper.clear();\n\t}\n}\n"],"mappings":";;;;;;AAKA,IAAa,gBAAb,cAAmC,MAA8B;CACzD,cAAc;EACpB,MAAM,UAAU,EAAE,MAAM,aAAa,CAAC;CACvC;;;;;;;;;;;CAYO,WAAW;EACjB,KAAK,MAAM,QAAQ,KAAK,OAAO,GAAG;GACjC,IAAI,CAAC,KAAK,WAAW,CAAC,KAAK,IAAI,UAAU,GAAG;GAC5C,KAAK,IAAI,MAAM;EAChB;EAEA,MAAM,SAAS,aAAa,KAAK,KAAK,oCAAoC;EAC1E,OAAO;CACR;;;;;;;;;;;CAYO,YAAY;EAClB,KAAK,MAAM,QAAQ,KAAK,OAAO,GAAG;GACjC,IAAI,CAAC,KAAK,WAAW,KAAK,IAAI,UAAU,KAAK,KAAK,IAAI,UAAU,GAAG;GACnE,KAAK,IAAI,OAAO;EACjB;EAEA,MAAM,SAAS,aAAa,KAAK,KAAK,sCAAsC;EAC5E,OAAO;CACR;;;;;;;;;;;;CAaO,UAAU;EAChB,KAAK,MAAM,QAAQ,KAAK,OAAO,GAAG;GACjC,IAAI,CAAC,KAAK,WAAW,KAAK,IAAI,UAAU,GAAG;GAC3C,KAAK,IAAI,KAAK;EACf;EAEA,MAAM,SAAS,aAAa,KAAK,KAAK,oCAAoC;EAC1E,OAAO;CACR;CAEgB,IAAI,KAAa,OAAuB;EACvD,MAAM,EAAE,SAAS,UAAU,SAAS,GAAG,YAAY,MAAM;EACzD,MAAM,EAAE,QAAQ,oBAAoB,KAAK,UAAU;EAGnD,IAAI,KAAK,IAAI,GAAG,GAAG;GAClB,MAAM,SAAS,aAAa,KAAK,KAAK,kEAAkE;GACxG,KAAK,IAAI,GAAG,CAAC,EAAE,IAAI,KAAK;EACzB;EAEA,MAAM,WAAW,YAAY;EAE7B,IAAI;GACH,MAAM,SACL,aAAa,KAAK,KAAK,+BAA+B,IAAI,SAAS,QAAQ,wBAAwB,SAAS,mBAC7G;GAEA,MAAM,MAAM,IAAI,KACf,SACA;IACC,MAAM;IACN,UAAU;IACV,QAAQ;IACR,SAAS,MAAM,SAAS,KAAK,KAAK,KAAK;IACvC,QAAQ,UAAU;KACjB,MAAM,MAAM,mDAAmD,KAAK;KACpE,QAAQ,iBAAiB,KAAK;KAC9B,MAAM,OAAO,KAAK,KAAK,CAAC,CAAC,OAAO,MAAM,GAAG;IAC1C;IACA,GAAG;GACJ,GACA,YAAY;IAEX,IAAI,UAAU,OAAO,YAAY,YAAY,CAAC,QAAQ,SAAS,GAAG,GACjE,MAAM,OAAO,YAAY,KAAK,MAAM,IAAI,KAAK,KAAK,GAAG;KACpD,UAAU;MAAE,MAAM;MAAW,OAAO,iBAAiB,OAAO;KAAE;KAC9D,UAAU;IACX,CAAC;SAED,MAAM,MAAM,IAAI,KAAK,KAAK,CAAC,CAAC;GAE9B,CACD;EACD,SAAS,OAAO;GACf,MAAM,MAAM,oDAAoD,KAAK;GAChE,MAAM,OAAO;EACnB;EAEA,OAAO,MAAM,IAAI,KAAK,KAAK;CAC5B;;;;CAKgB,OAAO,KAAa;EACnC,MAAM,OAAO,KAAK,IAAI,GAAG;EACzB,IAAI,QAAQ,CAAC,KAAK,IAAI,UAAU,GAC/B,KAAK,IAAI,KAAK;EAGf,OAAO,MAAM,OAAO,GAAG;CACxB;;;;CAKgB,QAAQ;EACvB,KAAK,QAAQ;EACb,MAAM,MAAM;CACb;AACD"}
@@ -1,2 +1,2 @@
1
- import { n as CronTaskHandlerOptions, t as CronJobOptions } from "../../CronTaskTypes-Dj8Ny7j5.mjs";
1
+ import { n as CronTaskHandlerOptions, t as CronJobOptions } from "../../CronTaskTypes-BRnD-V2d.mjs";
2
2
  export { CronJobOptions, CronTaskHandlerOptions };