commandkit 1.0.0-dev.20250605121605 → 1.0.0-dev.20250605122523
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/{CommandKit-DDiNIzaG.d.ts → CommandKit-LJlFFidn.d.ts} +1 -2
- package/dist/{CommandKit-CHzDEICC.js → CommandKit-O_Ra_xRL.js} +2 -2
- package/dist/{CommandKit-CHzDEICC.js.map → CommandKit-O_Ra_xRL.js.map} +1 -1
- package/dist/CommandKit.d.ts +1 -1
- package/dist/CommandKit.js +2 -2
- package/dist/{CommandKitEventsChannel-BLqcjLuV.js → CommandKitEventsChannel-BnSPcFdq.js} +4 -21
- package/dist/CommandKitEventsChannel-BnSPcFdq.js.map +1 -0
- package/dist/{EventWorkerContext-DSY0hJsP.d.ts → EventWorkerContext-sHV9x0eB.d.ts} +2 -2
- package/dist/app/commands/AppCommandRunner.d.ts +1 -1
- package/dist/app/commands/AppCommandRunner.js +2 -2
- package/dist/app/commands/Context.d.ts +1 -1
- package/dist/app/commands/Context.js +2 -2
- package/dist/app/events/EventWorkerContext.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.d.ts +1 -1
- package/dist/app/handlers/AppCommandHandler.js +2 -2
- package/dist/app/handlers/AppEventsHandler.d.ts +1 -1
- package/dist/app/handlers/AppEventsHandler.js +2 -2
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +2 -2
- package/dist/app/register/CommandRegistrar.d.ts +1 -1
- package/dist/app/register/CommandRegistrar.js +2 -2
- package/dist/{build-DdcAR6jA.js → build-CTiPICEJ.js} +2 -2
- package/dist/{build-DdcAR6jA.js.map → build-CTiPICEJ.js.map} +1 -1
- package/dist/cli/build.d.ts +1 -1
- package/dist/cli/build.js +3 -3
- package/dist/cli/common.d.ts +3 -3
- package/dist/cli/development.js +3 -3
- package/dist/cli/information.js +1 -1
- package/dist/cli/init.js +3 -3
- package/dist/cli/production.js +3 -3
- package/dist/components/index.js +2 -2
- package/dist/components/v1/button/Button.js +2 -2
- package/dist/components/v1/button/ButtonKit.js +2 -2
- package/dist/components/v1/modal/Modal.js +2 -2
- package/dist/components/v1/modal/ModalKit.js +2 -2
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/SelectMenu.js +2 -2
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +2 -2
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +2 -2
- package/dist/config/config.d.ts +4 -4
- package/dist/config/config.js +2 -2
- package/dist/config/default.d.ts +3 -3
- package/dist/config/default.js +2 -2
- package/dist/config/loader.d.ts +3 -3
- package/dist/config/loader.js +2 -2
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +3 -3
- package/dist/{config-cZyoiUeH.d.ts → config-bs6v9gyT.d.ts} +3 -3
- package/dist/context/async-context.d.ts +1 -1
- package/dist/context/async-context.js +2 -2
- package/dist/context/environment.d.ts +1 -1
- package/dist/context/environment.js +2 -2
- package/dist/events/CommandKitEventsChannel.d.ts +1 -1
- package/dist/events/CommandKitEventsChannel.js +1 -2
- package/dist/{feature-flags-BJvrwWsh.js → feature-flags-BXVYbfWD.js} +2 -2
- package/dist/{feature-flags-BJvrwWsh.js.map → feature-flags-BXVYbfWD.js.map} +1 -1
- package/dist/flags/feature-flags.d.ts +1 -1
- package/dist/flags/feature-flags.js +3 -3
- package/dist/flags/store.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/{init-DM0PkOdm.js → init-B0Ot1AgJ.js} +8 -20
- package/dist/{init-DM0PkOdm.js.map → init-B0Ot1AgJ.js.map} +1 -1
- package/dist/logger/DefaultLogger.js +2 -2
- package/dist/logger/Logger.js +2 -2
- package/dist/plugins/CompilerPlugin.d.ts +1 -1
- package/dist/plugins/PluginCommon.d.ts +1 -1
- package/dist/plugins/RuntimePlugin.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +2 -2
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +2 -2
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +2 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +1 -1
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +2 -2
- package/dist/plugins/plugin-runtime/runtime.d.ts +1 -1
- package/dist/plugins/types.d.ts +1 -1
- package/dist/{types-BGhhcw9s.d.ts → types--Jq7UV8B.d.ts} +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/utils/dev-hooks.d.ts +1 -1
- package/dist/utils/dev-hooks.js +2 -2
- package/dist/utils/utilities.js +2 -2
- package/dist/{utils-BA-1-JBR.d.ts → utils-BJAW-jcv.d.ts} +2 -2
- package/dist/{version-BO2oEXCe.js → version-Vxt1vshY.js} +2 -2
- package/dist/{version-BO2oEXCe.js.map → version-Vxt1vshY.js.map} +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/CommandKitEventsChannel-BLqcjLuV.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonDirectiveTransformer, CommonDirectiveTransformerOptions } from "../../../CommandKit-
|
|
1
|
+
import { CommonDirectiveTransformer, CommonDirectiveTransformerOptions } from "../../../CommandKit-LJlFFidn.js";
|
|
2
2
|
import "../../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../../../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../../../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../../../CommandKit-O_Ra_xRL.js');
|
|
5
5
|
require('../../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../../common-CeO-vn8Y.js');
|
|
7
7
|
require('../../../container-CpuiLsZM.js');
|
|
@@ -31,7 +31,7 @@ require('../../../CommandsRouter-B91EHi6O.js');
|
|
|
31
31
|
require('../../../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../../../router-DHnFRADH.js');
|
|
33
33
|
require('../../../common-CoUM9Czx.js');
|
|
34
|
-
require('../../../CommandKitEventsChannel-
|
|
34
|
+
require('../../../CommandKitEventsChannel-BnSPcFdq.js');
|
|
35
35
|
require('../../../store-B9bo6On8.js');
|
|
36
36
|
|
|
37
37
|
exports.CommonDirectiveTransformer = require_CommandKit.CommonDirectiveTransformer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompilerPlugin, MaybeFalsey, PluginTransformParameters, TransformedResult } from "../../../CommandKit-
|
|
1
|
+
import { CompilerPlugin, MaybeFalsey, PluginTransformParameters, TransformedResult } from "../../../CommandKit-LJlFFidn.js";
|
|
2
2
|
import "../../../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../../../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../../../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../../../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../../../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../../../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../../../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../../../CommandKit-O_Ra_xRL.js');
|
|
5
5
|
require('../../../common-CcfjYnPG.js');
|
|
6
6
|
require('../../../common-CeO-vn8Y.js');
|
|
7
7
|
require('../../../container-CpuiLsZM.js');
|
|
@@ -31,7 +31,7 @@ require('../../../CommandsRouter-B91EHi6O.js');
|
|
|
31
31
|
require('../../../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../../../router-DHnFRADH.js');
|
|
33
33
|
require('../../../common-CoUM9Czx.js');
|
|
34
|
-
require('../../../CommandKitEventsChannel-
|
|
34
|
+
require('../../../CommandKitEventsChannel-BnSPcFdq.js');
|
|
35
35
|
require('../../../store-B9bo6On8.js');
|
|
36
36
|
|
|
37
37
|
exports.MacroPlugin = require_CommandKit.MacroPlugin;
|
package/dist/plugins/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-
|
|
1
|
+
import { CommandKitEventDispatch, CommandKitPlugin, MaybeFalsey, TemplateHandler } from "../CommandKit-LJlFFidn.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitPlugin } from "./CommandKit-
|
|
1
|
+
import { CommandKitPlugin } from "./CommandKit-LJlFFidn.js";
|
|
2
2
|
import { MaybeArray } from "./types-CJ-XvOFN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/config/types.d.ts
|
|
@@ -70,4 +70,4 @@ interface CommandKitConfig {
|
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
export { CommandKitConfig };
|
|
73
|
-
//# sourceMappingURL=types
|
|
73
|
+
//# sourceMappingURL=types--Jq7UV8B.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandContext, CommandData, CommandKitOptions } from "./CommandKit-
|
|
1
|
+
import { CommandContext, CommandData, CommandKitOptions } from "./CommandKit-LJlFFidn.js";
|
|
2
2
|
import "./EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "./ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "./ModalKit-CKtQ8eXW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitHMREvent, registerDevHooks } from "../CommandKit-
|
|
1
|
+
import { CommandKitHMREvent, registerDevHooks } from "../CommandKit-LJlFFidn.js";
|
|
2
2
|
import "../EventInterceptor-D_oEWSnF.js";
|
|
3
3
|
import "../ButtonKit-BSI7lCI0.js";
|
|
4
4
|
import "../ModalKit-CKtQ8eXW.js";
|
package/dist/utils/dev-hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../CommandKit-O_Ra_xRL.js');
|
|
5
5
|
require('../common-CcfjYnPG.js');
|
|
6
6
|
require('../common-CeO-vn8Y.js');
|
|
7
7
|
require('../container-CpuiLsZM.js');
|
|
@@ -31,7 +31,7 @@ require('../CommandsRouter-B91EHi6O.js');
|
|
|
31
31
|
require('../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../router-DHnFRADH.js');
|
|
33
33
|
require('../common-CoUM9Czx.js');
|
|
34
|
-
require('../CommandKitEventsChannel-
|
|
34
|
+
require('../CommandKitEventsChannel-BnSPcFdq.js');
|
|
35
35
|
require('../store-B9bo6On8.js');
|
|
36
36
|
|
|
37
37
|
exports.registerDevHooks = require_CommandKit.registerDevHooks;
|
package/dist/utils/utilities.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-Cd4Oz-r-.js');
|
|
2
2
|
require('../ActionRow-CmTHbo2t.js');
|
|
3
3
|
require('../error-codes-C_UO39jz.js');
|
|
4
|
-
const require_CommandKit = require('../CommandKit-
|
|
4
|
+
const require_CommandKit = require('../CommandKit-O_Ra_xRL.js');
|
|
5
5
|
require('../common-CcfjYnPG.js');
|
|
6
6
|
require('../common-CeO-vn8Y.js');
|
|
7
7
|
require('../container-CpuiLsZM.js');
|
|
@@ -31,7 +31,7 @@ require('../CommandsRouter-B91EHi6O.js');
|
|
|
31
31
|
require('../EventsRouter-C_J0M3uO.js');
|
|
32
32
|
require('../router-DHnFRADH.js');
|
|
33
33
|
require('../common-CoUM9Czx.js');
|
|
34
|
-
require('../CommandKitEventsChannel-
|
|
34
|
+
require('../CommandKitEventsChannel-BnSPcFdq.js');
|
|
35
35
|
require('../store-B9bo6On8.js');
|
|
36
36
|
|
|
37
37
|
exports.StopEventPropagationError = require_CommandKit.StopEventPropagationError;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitConfig } from "./types
|
|
1
|
+
import { CommandKitConfig } from "./types--Jq7UV8B.js";
|
|
2
2
|
|
|
3
3
|
//#region src/config/utils.d.ts
|
|
4
4
|
type DeepRequired<T> = { [P in keyof T]-?: DeepRequired<T[P]> };
|
|
@@ -7,4 +7,4 @@ declare const mergeDeep: <T extends Record<string, any>>(target: T, source: T) =
|
|
|
7
7
|
type ResolvedCommandKitConfig = DeepRequired<CommandKitConfig>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { DeepPartial, DeepRequired, ResolvedCommandKitConfig, mergeDeep };
|
|
10
|
-
//# sourceMappingURL=utils-
|
|
10
|
+
//# sourceMappingURL=utils-BJAW-jcv.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* The current version of CommandKit.
|
|
5
5
|
*/
|
|
6
|
-
const version = "1.0.0-dev.
|
|
6
|
+
const version = "1.0.0-dev.20250605122523";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
Object.defineProperty(exports, 'version', {
|
|
@@ -12,4 +12,4 @@ Object.defineProperty(exports, 'version', {
|
|
|
12
12
|
return version;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
//# sourceMappingURL=version-
|
|
15
|
+
//# sourceMappingURL=version-Vxt1vshY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-
|
|
1
|
+
{"version":3,"file":"version-Vxt1vshY.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["function $version(): string {\n 'use macro';\n return require('../package.json').version;\n}\n\n/**\n * The current version of CommandKit.\n */\nexport const version: string = $version();\n"],"mappings":";;;;;AAQA,MAAa,UAA4B"}
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commandkit",
|
|
3
3
|
"description": "Beginner friendly command & event handler for Discord.js",
|
|
4
|
-
"version": "1.0.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.20250605122523",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"picocolors": "^1.1.1",
|
|
112
112
|
"rfdc": "^1.3.1",
|
|
113
113
|
"rimraf": "^6.0.0",
|
|
114
|
-
"tsdown": "^0.12.
|
|
114
|
+
"tsdown": "^0.12.7",
|
|
115
115
|
"use-macro": "^1.1.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"tsx": "^4.19.2",
|
|
123
123
|
"typescript": "^5.7.3",
|
|
124
124
|
"vitest": "^3.0.5",
|
|
125
|
-
"tsconfig": "0.0.0-dev.
|
|
125
|
+
"tsconfig": "0.0.0-dev.20250605122523"
|
|
126
126
|
},
|
|
127
127
|
"peerDependencies": {
|
|
128
128
|
"discord.js": "^14"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommandKitEventsChannel-BLqcjLuV.js","names":[],"sources":["../src/events/CommandKitEventsChannel.ts"],"sourcesContent":["import EventEmitter from 'node:events';\nimport type { CommandKit } from '../CommandKit';\nimport type { AsyncFunction, GenericFunction } from '../context/async-context';\nimport { runInEventWorkerContext } from '../app/events/EventWorkerContext';\n\nexport type ListenerFunction = GenericFunction | AsyncFunction;\n\nexport class CommandKitEventsChannel {\n private emitter = new EventEmitter();\n\n public constructor(public readonly commandkit: CommandKit) {}\n\n public to(namespace: string) {\n return {\n on: this.on.bind(this, namespace),\n off: this.off.bind(this, namespace),\n once: this.once.bind(this, namespace),\n emit: this.emit.bind(this, namespace),\n removeAllListeners: this.removeAllListeners.bind(this, namespace),\n };\n }\n\n public on(namespace: string, event: string, listener: ListenerFunction) {\n this.emitter.on(\n `${namespace}:${event}`,\n this.prepareListener(namespace, event, listener),\n );\n }\n\n public off(namespace: string, event: string, listener: ListenerFunction) {\n this.emitter.off(\n `${namespace}:${event}`,\n this.prepareListener(namespace, event, listener),\n );\n }\n\n public once(namespace: string, event: string, listener: ListenerFunction) {\n this.emitter.once(\n `${namespace}:${event}`,\n this.prepareListener(namespace, event, listener),\n );\n }\n\n public emit(namespace: string, event: string, ...args: any[]) {\n return this.emitter.emit(`${namespace}:${event}`, ...args);\n }\n\n public removeAllListeners(namespace: string): void;\n public removeAllListeners(namespace: string, event: string): void;\n public removeAllListeners(namespace: string, event?: string): void {\n if (event) {\n this.emitter.removeAllListeners(`${namespace}:${event}`);\n } else {\n this.emitter.removeAllListeners(namespace);\n }\n }\n\n private prepareListener<L extends ListenerFunction>(\n namespace: string,\n event: string,\n listener: L,\n ): L {\n return ((...args) => {\n return runInEventWorkerContext(\n {\n arguments: args,\n commandkit: this.commandkit,\n data: {\n event,\n namespace,\n listeners: [],\n path: `virtual:${namespace}/${event}`,\n },\n event,\n namespace,\n },\n () => listener(...args),\n );\n }) as L;\n }\n}\n"],"mappings":";;;;;AAOA,IAAa,0BAAb,MAAqC;CACnC,AAAQ,UAAU,IAAI;CAEtB,AAAO,YAA4B,YAAwB;EAAxB;CAAyB;CAE5D,AAAO,GAAG,WAAmB;AAC3B,SAAO;GACL,IAAI,KAAK,GAAG,KAAK,MAAM,UAAU;GACjC,KAAK,KAAK,IAAI,KAAK,MAAM,UAAU;GACnC,MAAM,KAAK,KAAK,KAAK,MAAM,UAAU;GACrC,MAAM,KAAK,KAAK,KAAK,MAAM,UAAU;GACrC,oBAAoB,KAAK,mBAAmB,KAAK,MAAM,UAAU;EAClE;CACH;CAEA,AAAO,GAAG,WAAmB,OAAe,UAA4B;AACtE,OAAK,QAAQ,IACV,EAAE,UAAU,GAAG,MAAM,GACtB,KAAK,gBAAgB,WAAW,OAAO,SAAS,CACjD;CACH;CAEA,AAAO,IAAI,WAAmB,OAAe,UAA4B;AACvE,OAAK,QAAQ,KACV,EAAE,UAAU,GAAG,MAAM,GACtB,KAAK,gBAAgB,WAAW,OAAO,SAAS,CACjD;CACH;CAEA,AAAO,KAAK,WAAmB,OAAe,UAA4B;AACxE,OAAK,QAAQ,MACV,EAAE,UAAU,GAAG,MAAM,GACtB,KAAK,gBAAgB,WAAW,OAAO,SAAS,CACjD;CACH;CAEA,AAAO,KAAK,WAAmB,OAAe,GAAG,MAAa;AAC5D,SAAO,KAAK,QAAQ,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,GAAG,KAAK;CAC5D;CAIA,AAAO,mBAAmB,WAAmB,OAAsB;AACjE,MAAI,MACF,MAAK,QAAQ,oBAAoB,EAAE,UAAU,GAAG,MAAM,EAAE;MAExD,MAAK,QAAQ,mBAAmB,UAAU;CAE9C;CAEA,AAAQ,gBACR,WACA,OACA,UACI;AACF,SAAQ,CAAC,GAAG,SAAS;AACnB,UAAO,mDACL;IACE,WAAW;IACX,YAAY,KAAK;IACjB,MAAM;KACJ;KACA;KACA,WAAW,CAAE;KACb,OAAO,UAAU,UAAU,GAAG,MAAM;IACrC;IACD;IACA;GACD,GACD,MAAM,SAAS,GAAG,KAAK,CACxB;EACF;CACH;AACF"}
|