commandkit 1.0.0-dev.20250530151225 → 1.0.0-dev.20250531015840
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-L7X8fflj.js → CommandKit-DbKHr6qT.js} +15 -15
- package/dist/{CommandKit-L7X8fflj.js.map → CommandKit-DbKHr6qT.js.map} +1 -1
- package/dist/CommandKit.js +5 -5
- package/dist/{CompilerPluginRuntime-BWLDMYQl.js → CompilerPluginRuntime-C9wmPMQf.js} +2 -2
- package/dist/{CompilerPluginRuntime-BWLDMYQl.js.map → CompilerPluginRuntime-C9wmPMQf.js.map} +1 -1
- package/dist/{EventInterceptor-DtRINyTP.js → EventInterceptor-Bvh05z7n.js} +4 -4
- package/dist/{EventInterceptor-DtRINyTP.js.map → EventInterceptor-Bvh05z7n.js.map} +1 -1
- package/dist/app/commands/AppCommandRunner.js +5 -5
- package/dist/app/commands/Context.js +5 -5
- package/dist/app/handlers/AppCommandHandler.js +5 -5
- package/dist/app/handlers/AppEventsHandler.js +5 -5
- package/dist/app/index.js +5 -5
- package/dist/app/register/CommandRegistrar.js +5 -5
- package/dist/{build-B5TuLOa-.js → build-BB9ezwQN.js} +4 -4
- package/dist/{build-B5TuLOa-.js.map → build-BB9ezwQN.js.map} +1 -1
- package/dist/cli/app-process.d.ts +2 -2
- package/dist/cli/build.js +7 -7
- package/dist/cli/common.d.ts +2 -2
- package/dist/cli/development.js +7 -7
- package/dist/cli/information.js +1 -1
- package/dist/cli/init.d.ts +1 -1
- package/dist/cli/init.js +6 -6
- package/dist/cli/production.d.ts +2 -2
- package/dist/cli/production.js +7 -7
- package/dist/cli/type-checker.js +1 -1
- package/dist/components/common/EventInterceptor.js +1 -1
- package/dist/components/common/element.js +2 -2
- package/dist/components/index.js +5 -5
- package/dist/components/v1/button/Button.js +5 -5
- package/dist/components/v1/button/ButtonKit.js +5 -5
- package/dist/components/v1/modal/Modal.js +5 -5
- package/dist/components/v1/modal/ModalKit.js +5 -5
- package/dist/components/v1/select-menu/ChannelSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/MentionableSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/RoleSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/SelectMenu.js +5 -5
- package/dist/components/v1/select-menu/StringSelectMenuKit.js +5 -5
- package/dist/components/v1/select-menu/UserSelectMenuKit.js +5 -5
- package/dist/config/config.js +5 -5
- package/dist/config/default.js +5 -5
- package/dist/config/loader.js +5 -5
- package/dist/context/async-context.js +5 -5
- package/dist/context/environment.js +5 -5
- package/dist/{element-hdSqnIpC.js → element-DcqNz1dV.js} +2 -2
- package/dist/{element-hdSqnIpC.js.map → element-DcqNz1dV.js.map} +1 -1
- package/dist/{feature-flags-BtOkZJxW.js → feature-flags-DqKVc2-p.js} +2 -2
- package/dist/{feature-flags-BtOkZJxW.js.map → feature-flags-DqKVc2-p.js.map} +1 -1
- package/dist/flags/feature-flags.js +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/{init-CakfOuYm.js → init-O2deAczC.js} +3 -3
- package/dist/{init-CakfOuYm.js.map → init-O2deAczC.js.map} +1 -1
- package/dist/{init-CT348Okf.d.ts → init-_e3eZTUb.d.ts} +3 -3
- package/dist/logger/DefaultLogger.js +5 -5
- package/dist/logger/Logger.js +5 -5
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +5 -5
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +1 -1
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +5 -5
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +5 -5
- package/dist/{type-checker-DodpF2I2.js → type-checker-BILXtCjQ.js} +2 -2
- package/dist/{type-checker-DodpF2I2.js.map → type-checker-BILXtCjQ.js.map} +1 -1
- package/dist/utils/colors.d.ts +2 -2
- package/dist/utils/dev-hooks.js +5 -5
- package/dist/utils/utilities.js +5 -5
- package/dist/utils/warn-unstable.js +1 -1
- package/dist/{version-EnexmO7x.js → version-B5w1vmxV.js} +2 -2
- package/dist/{version-EnexmO7x.js.map → version-B5w1vmxV.js.map} +1 -1
- package/dist/version.js +1 -1
- package/dist/{warn-unstable-V20WCBDd.js → warn-unstable-DHLaxPC8.js} +2 -2
- package/dist/{warn-unstable-V20WCBDd.js.map → warn-unstable-DHLaxPC8.js.map} +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-nOFOJqeH.js');
|
|
2
2
|
const require_colors = require('./colors-Cd4Oz-r-.js');
|
|
3
3
|
const require_error_codes = require('./error-codes-C_UO39jz.js');
|
|
4
|
-
const require_element = require('./element-
|
|
5
|
-
const require_EventInterceptor = require('./EventInterceptor-
|
|
4
|
+
const require_element = require('./element-DcqNz1dV.js');
|
|
5
|
+
const require_EventInterceptor = require('./EventInterceptor-Bvh05z7n.js');
|
|
6
6
|
const require_constants = require('./constants-DOPSzXI0.js');
|
|
7
7
|
const require_CompilerPlugin = require('./CompilerPlugin-XzuGixkC.js');
|
|
8
8
|
const require_RuntimePlugin = require('./RuntimePlugin-CKsd83M3.js');
|
|
@@ -1138,7 +1138,7 @@ var DefaultLogger = class {
|
|
|
1138
1138
|
return `${coloredLabel} `;
|
|
1139
1139
|
}
|
|
1140
1140
|
_getPrefix(level) {
|
|
1141
|
-
const timestamp = this._formatTime(new Date());
|
|
1141
|
+
const timestamp = this._formatTime(/* @__PURE__ */ new Date());
|
|
1142
1142
|
const label = this._getLevelLabel(level);
|
|
1143
1143
|
return `${label}${require_colors.colors_default.dim(BoxChars.vertical)} ${require_colors.colors_default.dim(timestamp)}`;
|
|
1144
1144
|
}
|
|
@@ -1566,7 +1566,7 @@ var CommandRegistrar = class {
|
|
|
1566
1566
|
});
|
|
1567
1567
|
if (prevented) return;
|
|
1568
1568
|
try {
|
|
1569
|
-
const guildCommandsMap = new Map();
|
|
1569
|
+
const guildCommandsMap = /* @__PURE__ */ new Map();
|
|
1570
1570
|
commands.forEach((command) => {
|
|
1571
1571
|
var _command$guilds3;
|
|
1572
1572
|
if (!((_command$guilds3 = command.guilds) === null || _command$guilds3 === void 0 ? void 0 : _command$guilds3.length)) return;
|
|
@@ -1609,8 +1609,8 @@ var CommandKitEnvironment = class {
|
|
|
1609
1609
|
#data = {
|
|
1610
1610
|
executionError: null,
|
|
1611
1611
|
type: null,
|
|
1612
|
-
variables: new Map(),
|
|
1613
|
-
deferredFunctions: new Map(),
|
|
1612
|
+
variables: /* @__PURE__ */ new Map(),
|
|
1613
|
+
deferredFunctions: /* @__PURE__ */ new Map(),
|
|
1614
1614
|
marker: "",
|
|
1615
1615
|
markStart: 0,
|
|
1616
1616
|
markEnd: 0,
|
|
@@ -1824,7 +1824,7 @@ var Context = class Context {
|
|
|
1824
1824
|
this.interaction = config.interaction;
|
|
1825
1825
|
this.message = config.message;
|
|
1826
1826
|
this.client = commandkit$1.client;
|
|
1827
|
-
this.#store = config.store ?? new Map();
|
|
1827
|
+
this.#store = config.store ?? /* @__PURE__ */ new Map();
|
|
1828
1828
|
this.command = config.command;
|
|
1829
1829
|
if (config.interaction) {
|
|
1830
1830
|
this.guild = config.interaction.guild;
|
|
@@ -2153,8 +2153,8 @@ const middlewareDataSchema = {
|
|
|
2153
2153
|
var AppCommandHandler = class {
|
|
2154
2154
|
loadedCommands = new discord_js.Collection();
|
|
2155
2155
|
loadedMiddlewares = new discord_js.Collection();
|
|
2156
|
-
commandNameToId = new Map();
|
|
2157
|
-
subcommandPathToId = new Map();
|
|
2156
|
+
commandNameToId = /* @__PURE__ */ new Map();
|
|
2157
|
+
subcommandPathToId = /* @__PURE__ */ new Map();
|
|
2158
2158
|
registrar;
|
|
2159
2159
|
onInteraction = null;
|
|
2160
2160
|
onMessageCreate = null;
|
|
@@ -2194,7 +2194,7 @@ var AppCommandHandler = class {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
2196
|
});
|
|
2197
|
-
const processedCategories = new Set();
|
|
2197
|
+
const processedCategories = /* @__PURE__ */ new Set();
|
|
2198
2198
|
const printCategory = (category, indent = "", isLast = false, parentPrefix = "") => {
|
|
2199
2199
|
if (processedCategories.has(category)) return;
|
|
2200
2200
|
processedCategories.add(category);
|
|
@@ -2485,7 +2485,7 @@ var AppEventsHandler = class {
|
|
|
2485
2485
|
const { name, listeners, namespace } = data;
|
|
2486
2486
|
const onceListeners = listeners.filter((listener) => listener.once);
|
|
2487
2487
|
const onListeners = listeners.filter((listener) => !listener.once);
|
|
2488
|
-
const executedOnceListeners = new Set();
|
|
2488
|
+
const executedOnceListeners = /* @__PURE__ */ new Set();
|
|
2489
2489
|
const mainHandler = async (...args) => {
|
|
2490
2490
|
let accepted = false;
|
|
2491
2491
|
const event = {
|
|
@@ -2686,8 +2686,8 @@ function registerDevHooks(commandkit$1) {
|
|
|
2686
2686
|
//#endregion
|
|
2687
2687
|
//#region src/CommandKit.ts
|
|
2688
2688
|
let commandkit;
|
|
2689
|
-
const bootstrapHooks = new Set();
|
|
2690
|
-
const onApplicationBootstrapHooks = new Set();
|
|
2689
|
+
const bootstrapHooks = /* @__PURE__ */ new Set();
|
|
2690
|
+
const onApplicationBootstrapHooks = /* @__PURE__ */ new Set();
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Registers a bootstrap hook that will be called when the CommandKit instance is created.
|
|
2693
2693
|
* This is useful for plugins that need to run some code after the CommandKit instance is fully initialized.
|
|
@@ -2730,7 +2730,7 @@ var CommandKit = class CommandKit extends node_events.default {
|
|
|
2730
2730
|
defaultLocale: discord_js.Locale.EnglishUS,
|
|
2731
2731
|
getMessageCommandPrefix: () => "!"
|
|
2732
2732
|
};
|
|
2733
|
-
store = new Map();
|
|
2733
|
+
store = /* @__PURE__ */ new Map();
|
|
2734
2734
|
flags = new require_store.FlagStore();
|
|
2735
2735
|
commandsRouter;
|
|
2736
2736
|
eventsRouter;
|
|
@@ -3278,4 +3278,4 @@ Object.defineProperty(exports, 'useEnvironment', {
|
|
|
3278
3278
|
return useEnvironment;
|
|
3279
3279
|
}
|
|
3280
3280
|
});
|
|
3281
|
-
//# sourceMappingURL=CommandKit-
|
|
3281
|
+
//# sourceMappingURL=CommandKit-DbKHr6qT.js.map
|