@sapphire/plugin-scheduled-tasks 10.0.5-next.e4fb911 → 10.0.5-next.edf5e96
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/cjs/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var ScheduledTaskEvents_cjs = require('./lib/types/ScheduledTaskEvents.cjs');
|
|
|
7
7
|
var _load_cjs = require('./listeners/_load.cjs');
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
|
-
var version = "10.0.5-next.
|
|
10
|
+
var version = "10.0.5-next.edf5e96";
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "loadListeners", {
|
|
13
13
|
enumerable: true,
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAwCO,IAAM,OAAA,GAAkB","file":"index.cjs","sourcesContent":["import type { ScheduledTaskHandler } from './lib/ScheduledTaskHandler';\nimport type { ScheduledTaskStore } from './lib/structures/ScheduledTaskStore';\nimport type { ScheduledTaskHandlerOptions } from './lib/types/ScheduledTaskTypes';\n\nexport * from './lib/ScheduledTaskHandler';\nexport * from './lib/structures/ScheduledTask';\nexport * from './lib/structures/ScheduledTaskStore';\nexport * from './lib/types/ScheduledTaskEvents';\nexport type * from './lib/types/ScheduledTaskTypes';\n\nexport { loadListeners } from './listeners/_load';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ttasks: ScheduledTaskHandler;\n\t}\n\n\tinterface StoreRegistryEntries {\n\t\t'scheduled-tasks': ScheduledTaskStore;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\ttasks: ScheduledTaskHandlerOptions;\n\t\t/**\n\t\t * If the the pre-included scheduled task error listeners should be loaded\n\t\t * @default true\n\t\t */\n\t\tloadScheduledTaskErrorListeners?: boolean;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-scheduled-tasks](https://github.com/sapphiredev/plugins/blob/main/packages/scheduled-tasks) 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 = '10.0.5-next.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAwCO,IAAM,OAAA,GAAkB","file":"index.cjs","sourcesContent":["import type { ScheduledTaskHandler } from './lib/ScheduledTaskHandler';\nimport type { ScheduledTaskStore } from './lib/structures/ScheduledTaskStore';\nimport type { ScheduledTaskHandlerOptions } from './lib/types/ScheduledTaskTypes';\n\nexport * from './lib/ScheduledTaskHandler';\nexport * from './lib/structures/ScheduledTask';\nexport * from './lib/structures/ScheduledTaskStore';\nexport * from './lib/types/ScheduledTaskEvents';\nexport type * from './lib/types/ScheduledTaskTypes';\n\nexport { loadListeners } from './listeners/_load';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ttasks: ScheduledTaskHandler;\n\t}\n\n\tinterface StoreRegistryEntries {\n\t\t'scheduled-tasks': ScheduledTaskStore;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\ttasks: ScheduledTaskHandlerOptions;\n\t\t/**\n\t\t * If the the pre-included scheduled task error listeners should be loaded\n\t\t * @default true\n\t\t */\n\t\tloadScheduledTaskErrorListeners?: boolean;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-scheduled-tasks](https://github.com/sapphiredev/plugins/blob/main/packages/scheduled-tasks) 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 = '10.0.5-next.edf5e96';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preGenericsInitialization","container","ScheduledTaskHandler","postInitialization","ScheduledTaskStore","loadListeners","postLogin","SapphireClient"],"mappings":";;;;;;;;;AAUO,IAAM,qBAAA,GAAN,MAAM,qBAAA,SAA6BA,gBAAA,CAAO;AAAA,EAA1C,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AACN,IAAA,aAAA,CAAA,IAAA,EAAO,SAAA,CAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,EAIP,
|
|
1
|
+
{"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preGenericsInitialization","container","ScheduledTaskHandler","postInitialization","ScheduledTaskStore","loadListeners","postLogin","SapphireClient"],"mappings":";;;;;;;;;AAUO,IAAM,qBAAA,GAAN,MAAM,qBAAA,SAA6BA,gBAAA,CAAO;AAAA,EAA1C,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAAA,CAAA;AACN,IAAA,aAAA,CAAA,IAAA,EAAO,SAAA,CAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,EAIP,QAAwBC,mCAAyB,CAAA,CAAwB,OAAA,EAA8B;AACtG,IAAAC,mBAAA,CAAU,KAAA,GAAQ,IAAIC,8BAAA,CAAqB,OAAA,CAAQ,KAAK,CAAA;AAAA,EACzD;AAAA;AAAA;AAAA;AAAA,EAKA,QAAwBC,4BAAkB,CAAA,CAAwB,OAAA,EAA8B;AAC/F,IAAA,IAAA,CAAK,MAAA,CAAO,QAAA,CAAS,IAAIC,4BAAA,EAAoB,CAAA;AAE7C,IAAA,IAAI,OAAA,CAAQ,oCAAoC,KAAA,EAAO;AACtD,MAAAC,uBAAA,EAAc;AAAA,IACf;AAAA,EACD;AAAA;AAAA;AAAA;AAAA,EAKA,QAAwBC,mBAAS,CAAA,GAA8B;AAC9D,IAAA,KAAKL,mBAAA,CAAU,MAAM,cAAA,EAAe;AAAA,EACrC;AACD,CAAA;AA1BiD,MAAA,CAAA,qBAAA,EAAA,sBAAA,CAAA;AAA1C,IAAM,oBAAA,GAAN;AA4BPM,wBAAA,CAAe,OAAA,CAAQ,qCAAA;AAAA,EACtB,qBAAqBP,mCAAyB,CAAA;AAAA,EAC9C;AACD,CAAA;AAEAO,wBAAA,CAAe,OAAA,CAAQ,8BAAA,CAA+B,oBAAA,CAAqBJ,4BAAkB,GAAG,mCAAmC,CAAA;AAEnII,wBAAA,CAAe,OAAA,CAAQ,qBAAA,CAAsB,oBAAA,CAAqBD,mBAAS,GAAG,0BAA0B,CAAA","file":"register.cjs","sourcesContent":["import './index';\n\nimport { container, Plugin, postInitialization, postLogin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { loadListeners, ScheduledTaskHandler, ScheduledTaskStore } from './index';\n\n/**\n * A plugin for scheduling tasks in a SapphireClient.\n * @since 1.0.0\n */\nexport class ScheduledTasksPlugin extends Plugin {\n\tpublic service: string | undefined;\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static override [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tcontainer.tasks = new ScheduledTaskHandler(options.tasks);\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static override [postInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tthis.stores.register(new ScheduledTaskStore());\n\n\t\tif (options.loadScheduledTaskErrorListeners !== false) {\n\t\t\tloadListeners();\n\t\t}\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static override [postLogin](this: SapphireClient): void {\n\t\tvoid container.tasks.createRepeated();\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(\n\tScheduledTasksPlugin[preGenericsInitialization],\n\t'Scheduled-Task-PreGenericsInitialization'\n);\n\nSapphireClient.plugins.registerPostInitializationHook(ScheduledTasksPlugin[postInitialization], 'Scheduled-Task-PostInitialization');\n\nSapphireClient.plugins.registerPostLoginHook(ScheduledTasksPlugin[postLogin], 'Scheduled-Task-PostLogin');\n"]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export * from './lib/structures/ScheduledTaskStore.mjs';
|
|
|
5
5
|
export * from './lib/types/ScheduledTaskEvents.mjs';
|
|
6
6
|
export { loadListeners } from './listeners/_load.mjs';
|
|
7
7
|
|
|
8
|
-
var version = "10.0.5-next.
|
|
8
|
+
var version = "10.0.5-next.edf5e96";
|
|
9
9
|
|
|
10
10
|
export { version };
|
|
11
11
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;AAwCO,IAAM,OAAA,GAAkB","file":"index.mjs","sourcesContent":["import type { ScheduledTaskHandler } from './lib/ScheduledTaskHandler';\nimport type { ScheduledTaskStore } from './lib/structures/ScheduledTaskStore';\nimport type { ScheduledTaskHandlerOptions } from './lib/types/ScheduledTaskTypes';\n\nexport * from './lib/ScheduledTaskHandler';\nexport * from './lib/structures/ScheduledTask';\nexport * from './lib/structures/ScheduledTaskStore';\nexport * from './lib/types/ScheduledTaskEvents';\nexport type * from './lib/types/ScheduledTaskTypes';\n\nexport { loadListeners } from './listeners/_load';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ttasks: ScheduledTaskHandler;\n\t}\n\n\tinterface StoreRegistryEntries {\n\t\t'scheduled-tasks': ScheduledTaskStore;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\ttasks: ScheduledTaskHandlerOptions;\n\t\t/**\n\t\t * If the the pre-included scheduled task error listeners should be loaded\n\t\t * @default true\n\t\t */\n\t\tloadScheduledTaskErrorListeners?: boolean;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-scheduled-tasks](https://github.com/sapphiredev/plugins/blob/main/packages/scheduled-tasks) 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 = '10.0.5-next.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;AAwCO,IAAM,OAAA,GAAkB","file":"index.mjs","sourcesContent":["import type { ScheduledTaskHandler } from './lib/ScheduledTaskHandler';\nimport type { ScheduledTaskStore } from './lib/structures/ScheduledTaskStore';\nimport type { ScheduledTaskHandlerOptions } from './lib/types/ScheduledTaskTypes';\n\nexport * from './lib/ScheduledTaskHandler';\nexport * from './lib/structures/ScheduledTask';\nexport * from './lib/structures/ScheduledTaskStore';\nexport * from './lib/types/ScheduledTaskEvents';\nexport type * from './lib/types/ScheduledTaskTypes';\n\nexport { loadListeners } from './listeners/_load';\n\ndeclare module '@sapphire/pieces' {\n\tinterface Container {\n\t\ttasks: ScheduledTaskHandler;\n\t}\n\n\tinterface StoreRegistryEntries {\n\t\t'scheduled-tasks': ScheduledTaskStore;\n\t}\n}\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\ttasks: ScheduledTaskHandlerOptions;\n\t\t/**\n\t\t * If the the pre-included scheduled task error listeners should be loaded\n\t\t * @default true\n\t\t */\n\t\tloadScheduledTaskErrorListeners?: boolean;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-scheduled-tasks](https://github.com/sapphiredev/plugins/blob/main/packages/scheduled-tasks) 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 = '10.0.5-next.edf5e96';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAUO,IAAM,qBAAA,GAAN,MAAM,qBAAA,SAA6B,MAAA,CAAO;AAAA,EAA1C,WAAA,GAAA;AAAA,IAAA,KAAA,CAAA,GAAA,SAA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register.mjs","sourcesContent":["import './index';\n\nimport { container, Plugin, postInitialization, postLogin, preGenericsInitialization, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { loadListeners, ScheduledTaskHandler, ScheduledTaskStore } from './index';\n\n/**\n * A plugin for scheduling tasks in a SapphireClient.\n * @since 1.0.0\n */\nexport class ScheduledTasksPlugin extends Plugin {\n\tpublic service: string | undefined;\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static override [preGenericsInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tcontainer.tasks = new ScheduledTaskHandler(options.tasks);\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static override [postInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tthis.stores.register(new ScheduledTaskStore());\n\n\t\tif (options.loadScheduledTaskErrorListeners !== false) {\n\t\t\tloadListeners();\n\t\t}\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static override [postLogin](this: SapphireClient): void {\n\t\tvoid container.tasks.createRepeated();\n\t}\n}\n\nSapphireClient.plugins.registerPreGenericsInitializationHook(\n\tScheduledTasksPlugin[preGenericsInitialization],\n\t'Scheduled-Task-PreGenericsInitialization'\n);\n\nSapphireClient.plugins.registerPostInitializationHook(ScheduledTasksPlugin[postInitialization], 'Scheduled-Task-PostInitialization');\n\nSapphireClient.plugins.registerPostLoginHook(ScheduledTasksPlugin[postLogin], 'Scheduled-Task-PostLogin');\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-scheduled-tasks",
|
|
3
|
-
"version": "10.0.5-next.
|
|
3
|
+
"version": "10.0.5-next.edf5e96",
|
|
4
4
|
"description": "Plugin for @sapphire/framework to have scheduled tasks",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@sapphire/stopwatch": "^1.5.4",
|
|
53
53
|
"@sapphire/utilities": "^3.18.2",
|
|
54
|
-
"bullmq": "5.
|
|
54
|
+
"bullmq": "5.66.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@favware/cliff-jumper": "^6.0.0",
|
|
58
58
|
"@favware/rollup-type-bundler": "^4.0.0",
|
|
59
59
|
"concurrently": "^9.2.1",
|
|
60
|
-
"tsup": "^8.5.
|
|
61
|
-
"tsx": "^4.
|
|
62
|
-
"typedoc": "^0.
|
|
60
|
+
"tsup": "^8.5.1",
|
|
61
|
+
"tsx": "^4.21.0",
|
|
62
|
+
"typedoc": "^0.28.14",
|
|
63
63
|
"typedoc-json-parser": "^10.2.0",
|
|
64
|
-
"typescript": "~5.
|
|
64
|
+
"typescript": "~5.9.3"
|
|
65
65
|
},
|
|
66
66
|
"repository": {
|
|
67
67
|
"type": "git",
|