commandkit 1.2.0-dev.20251015015506 → 1.2.0-dev.20251015125840
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/config.cjs +3 -0
- package/config.d.ts +1 -0
- package/dist/{EventWorkerContext-CLhZRHhH.d.ts → EventWorkerContext-Si7O8BHF.d.ts} +2 -2
- package/dist/analytics/analytics-engine.d.ts +2 -2
- package/dist/analytics/analytics-engine.js +4 -4
- package/dist/analytics/analytics-provider.d.ts +2 -2
- package/dist/analytics/utils.js +4 -4
- package/dist/{analytics-engine-NOInIjv8.d.ts → analytics-engine-Bysw_gql.d.ts} +2 -2
- package/dist/app/commands/AppCommandRunner.d.ts +2 -2
- package/dist/app/commands/AppCommandRunner.js +4 -4
- package/dist/app/commands/Context.d.ts +2 -2
- package/dist/app/commands/Context.js +4 -4
- package/dist/app/events/EventWorkerContext.d.ts +3 -3
- package/dist/app/handlers/AppCommandHandler.d.ts +2 -2
- package/dist/app/handlers/AppCommandHandler.js +4 -4
- package/dist/app/handlers/AppEventsHandler.d.ts +2 -2
- package/dist/app/handlers/AppEventsHandler.js +4 -4
- package/dist/app/index.d.ts +2 -2
- package/dist/app/index.js +4 -4
- package/dist/app/middlewares/permissions.d.ts +2 -2
- package/dist/app/middlewares/permissions.js +4 -4
- package/dist/app/register/CommandRegistrar.d.ts +2 -2
- package/dist/app/register/CommandRegistrar.js +4 -4
- package/dist/{app-process-AQ3Cbf6j.js → app-process-CjyrRAFH.js} +3 -3
- package/dist/{app-process-AQ3Cbf6j.js.map → app-process-CjyrRAFH.js.map} +1 -1
- package/dist/{build-BYMHMOl_.js → build-Cy9iGxZu.js} +6 -6
- package/dist/{build-BYMHMOl_.js.map → build-Cy9iGxZu.js.map} +1 -1
- package/dist/cli/app-process.js +5 -5
- package/dist/cli/build.d.ts +2 -2
- package/dist/cli/build.js +7 -7
- package/dist/cli/common.d.ts +2 -2
- package/dist/cli/common.js +3 -3
- package/dist/cli/development.js +9 -8
- package/dist/cli/development.js.map +1 -1
- package/dist/cli/env.d.ts +4 -0
- package/dist/cli/env.js +1 -1
- package/dist/cli/generators.js +3 -3
- package/dist/cli/information.js +2 -2
- package/dist/cli/init.js +5 -5
- package/dist/cli/production.js +10 -8
- package/dist/cli/production.js.map +1 -1
- package/dist/cli/type-checker.js +4 -4
- package/dist/{commandkit-DabqpQ6v.js → commandkit-KwTRAgZd.js} +52 -4
- package/dist/commandkit-KwTRAgZd.js.map +1 -0
- package/dist/commandkit.d.ts +2 -2
- package/dist/commandkit.js +4 -4
- package/dist/{common-fIO6fqGZ.js → common-vl9iZ7Th.js} +3 -3
- package/dist/{common-fIO6fqGZ.js.map → common-vl9iZ7Th.js.map} +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/interactive/button/Button.js +4 -4
- package/dist/components/interactive/button/ButtonKit.js +4 -4
- package/dist/components/interactive/modal/Modal.js +4 -4
- package/dist/components/interactive/modal/ModalKit.js +4 -4
- package/dist/components/interactive/select-menu/ChannelSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/MentionableSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/RoleSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/SelectMenu.js +4 -4
- package/dist/components/interactive/select-menu/StringSelectMenuKit.js +4 -4
- package/dist/components/interactive/select-menu/UserSelectMenuKit.js +4 -4
- package/dist/config/config.d.ts +3 -3
- package/dist/config/config.js +4 -4
- package/dist/config/default.d.ts +2 -2
- package/dist/config/default.js +4 -4
- package/dist/config/loader.d.ts +2 -2
- package/dist/config/loader.js +4 -4
- package/dist/config/types.d.ts +2 -2
- package/dist/config/utils.d.ts +2 -2
- package/dist/{config-DbgXt6mf.d.ts → config-B78JuOAI.d.ts} +2 -2
- package/dist/{constants-DqnSDZ6l.d.ts → constants-CN1xFOiX.d.ts} +8 -2
- package/dist/{constants-BMWH2YUr.js → constants-CxkFFZ7p.js} +16 -1
- package/dist/constants-CxkFFZ7p.js.map +1 -0
- package/dist/{constants-CCFSX2NG.d.ts → constants-DwLQQVLy.d.ts} +1 -1
- package/dist/context/async-context.d.ts +2 -2
- package/dist/context/async-context.js +4 -4
- package/dist/context/environment.d.ts +2 -2
- package/dist/context/environment.js +4 -4
- package/dist/{env-8yY-6pbC.js → env-Dd5904hf.js} +7 -3
- package/dist/env-Dd5904hf.js.map +1 -0
- package/dist/{error-codes-BiNRVMiV.d.ts → error-codes-DM-Mbprh.d.ts} +1 -1
- package/dist/events/CommandKitEventsChannel.d.ts +2 -2
- package/dist/{feature-flags-BoBV4Dsj.js → feature-flags-DJqNMI5w.js} +2 -2
- package/dist/{feature-flags-BoBV4Dsj.js.map → feature-flags-DJqNMI5w.js.map} +1 -1
- package/dist/flags/FlagProvider.d.ts +2 -2
- package/dist/flags/feature-flags.d.ts +2 -2
- package/dist/flags/feature-flags.js +5 -5
- package/dist/flags/store.d.ts +2 -2
- package/dist/index.d.ts +9 -8
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/{init-CBb0StSB.js → init-hoTNDwPt.js} +5 -5
- package/dist/{init-CBb0StSB.js.map → init-hoTNDwPt.js.map} +1 -1
- package/dist/kv/constants.d.ts +1 -1
- package/dist/kv/kv.d.ts +2 -2
- package/dist/kv/serde.d.ts +2 -2
- package/dist/logger/DefaultLogger.js +4 -4
- package/dist/logger/Logger.js +4 -4
- package/dist/plugins/CompilerPlugin.d.ts +2 -2
- package/dist/plugins/PluginCommon.d.ts +2 -2
- package/dist/plugins/RuntimePlugin.d.ts +2 -2
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CommandKitPluginRuntime.js +4 -4
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.d.ts +2 -2
- package/dist/plugins/plugin-runtime/CompilerPluginRuntime.js +4 -4
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/CommonDirectiveTransformer.js +4 -4
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.d.ts +2 -2
- package/dist/plugins/plugin-runtime/builtin/MacroPlugin.js +4 -4
- package/dist/plugins/plugin-runtime/runtime.d.ts +2 -2
- package/dist/plugins/types.d.ts +2 -2
- package/dist/{resolve-file-url-DFtR8jRR.d.ts → resolve-file-url-BDJud8AT.d.ts} +1 -1
- package/dist/{serde-D4H23l2F.d.ts → serde-BLi3Garu.d.ts} +2 -2
- package/dist/{type-checker-CEFHoQoV.js → type-checker-BGO8o3rM.js} +2 -2
- package/dist/{type-checker-CEFHoQoV.js.map → type-checker-BGO8o3rM.js.map} +1 -1
- package/dist/{types-package-D11rQXLs.js → types-package-elMCB4mL.js} +2 -2
- package/dist/{types-package-D11rQXLs.js.map → types-package-elMCB4mL.js.map} +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/{utilities-CQUaua43.d.ts → utilities-y6Wu2hdM.d.ts} +28 -2
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +3 -2
- package/dist/utils/dev-hooks.d.ts +2 -2
- package/dist/utils/dev-hooks.js +4 -4
- package/dist/utils/error-codes.d.ts +1 -1
- package/dist/utils/resolve-file-url.d.ts +1 -1
- package/dist/utils/types-package.js +2 -2
- package/dist/utils/utilities.d.ts +2 -2
- package/dist/utils/utilities.js +7 -5
- package/dist/utils/warning.d.ts +2 -25
- package/dist/{version-q6N-AqDi.js → version-CK3cCEHc.js} +2 -2
- package/dist/{version-q6N-AqDi.js.map → version-CK3cCEHc.js.map} +1 -1
- package/dist/version.js +1 -1
- package/dist/warning-Ddig3lHP.d.ts +25 -0
- package/package.json +2 -2
- package/dist/commandkit-DabqpQ6v.js.map +0 -1
- package/dist/constants-BMWH2YUr.js.map +0 -1
- package/dist/env-8yY-6pbC.js.map +0 -1
|
@@ -62,6 +62,32 @@ declare function JsonSerialize<R = any>(value: any, defaultValue?: R): R;
|
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
64
|
declare function devOnly<T extends (...args: any[]) => any>(fn: T): T;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a function from the given function that runs only in build mode.
|
|
67
|
+
* @param fn The function to run in build mode.
|
|
68
|
+
* @returns The function that runs only in build mode.
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const buildOnlyFn = buildOnly(() => {
|
|
72
|
+
* console.log('This function runs only in build mode');
|
|
73
|
+
* });
|
|
74
|
+
* buildOnlyFn(); // This will log the message only in build mode
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
declare function buildOnly<T extends (...args: any[]) => any>(fn: T): T;
|
|
78
|
+
/**
|
|
79
|
+
* Creates a function from the given function that runs only outside of build mode.
|
|
80
|
+
* @param fn The function to run outside of build mode.
|
|
81
|
+
* @returns The function that runs only outside of build mode.
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const noBuildOnlyFn = noBuildOnly(() => {
|
|
85
|
+
* console.log('This function runs only outside of build mode');
|
|
86
|
+
* });
|
|
87
|
+
* noBuildOnlyFn(); // This will log the message only outside of build mode
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
declare function noBuildOnly<T extends (...args: any[]) => any>(fn: T): T;
|
|
65
91
|
/**
|
|
66
92
|
* Represents a simple proxy object that mirrors a target object.
|
|
67
93
|
*/
|
|
@@ -83,5 +109,5 @@ interface SimpleProxy<T extends object> {
|
|
|
83
109
|
*/
|
|
84
110
|
declare function createProxy<T extends object>(target: T): SimpleProxy<T>;
|
|
85
111
|
//#endregion
|
|
86
|
-
export { JsonSerialize, SimpleProxy, createProxy, debounce, defer, devOnly, findAppDirectory, getCurrentDirectory, getSourceDirectories };
|
|
87
|
-
//# sourceMappingURL=utilities-
|
|
112
|
+
export { JsonSerialize, SimpleProxy, buildOnly, createProxy, debounce, defer, devOnly, findAppDirectory, getCurrentDirectory, getSourceDirectories, noBuildOnly };
|
|
113
|
+
//# sourceMappingURL=utilities-y6Wu2hdM.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType } from "../constants-
|
|
2
|
-
export { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType };
|
|
1
|
+
import { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType, isBuildLikeEnvironment } from "../constants-CN1xFOiX.js";
|
|
2
|
+
export { COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CWD, COMMANDKIT_IS_CLI, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, HMREventType, isBuildLikeEnvironment };
|
package/dist/utils/constants.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const require_constants = require('../constants-
|
|
1
|
+
const require_constants = require('../constants-CxkFFZ7p.js');
|
|
2
2
|
|
|
3
3
|
exports.COMMANDKIT_BOOTSTRAP_MODE = require_constants.COMMANDKIT_BOOTSTRAP_MODE;
|
|
4
4
|
exports.COMMANDKIT_CWD = require_constants.COMMANDKIT_CWD;
|
|
5
5
|
exports.COMMANDKIT_IS_CLI = require_constants.COMMANDKIT_IS_CLI;
|
|
6
6
|
exports.COMMANDKIT_IS_DEV = require_constants.COMMANDKIT_IS_DEV;
|
|
7
7
|
exports.COMMANDKIT_IS_TEST = require_constants.COMMANDKIT_IS_TEST;
|
|
8
|
-
exports.HMREventType = require_constants.HMREventType;
|
|
8
|
+
exports.HMREventType = require_constants.HMREventType;
|
|
9
|
+
exports.isBuildLikeEnvironment = require_constants.isBuildLikeEnvironment;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandKitHMREvent, IpcMessageCommand, registerDevHooks } from "../analytics-engine-
|
|
1
|
+
import { CommandKitHMREvent, IpcMessageCommand, registerDevHooks } from "../analytics-engine-Bysw_gql.js";
|
|
2
2
|
import "../EventInterceptor-x-R2qshQ.js";
|
|
3
3
|
import "../ButtonKit-9k4yfhYD.js";
|
|
4
4
|
import "../ModalKit-Cq2ns6jv.js";
|
|
@@ -30,5 +30,5 @@ import "../helpers-hDh_tMb6.js";
|
|
|
30
30
|
import "../CommandsRouter-CBdsqaWK.js";
|
|
31
31
|
import "../EventsRouter-4pT6vj-U.js";
|
|
32
32
|
import "../index-B5F3AfVc.js";
|
|
33
|
-
import "../constants-
|
|
33
|
+
import "../constants-CN1xFOiX.js";
|
|
34
34
|
export { CommandKitHMREvent, IpcMessageCommand, registerDevHooks };
|
package/dist/utils/dev-hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-DL3ucTiT.js');
|
|
2
2
|
require('../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../commandkit-
|
|
4
|
+
const require_commandkit = require('../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../warning-CszH8HeS.js');
|
|
6
6
|
require('../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../element-DibzzA5L.js');
|
|
18
18
|
require('../types-TC4g3w91.js');
|
|
19
19
|
require('../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../constants-
|
|
20
|
+
require('../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-
|
|
28
|
+
require('../types-package-elMCB4mL.js');
|
|
29
29
|
require('../constants-D0dawKxO.js');
|
|
30
30
|
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../signals-Cnqe9dFV.js');
|
|
@@ -34,7 +34,7 @@ require('../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-
|
|
37
|
+
require('../common-vl9iZ7Th.js');
|
|
38
38
|
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CommandKitError, CommandKitErrorCodes, createCommandKitError, isCommandKitError, isErrorType } from "../error-codes-
|
|
1
|
+
import { CommandKitError, CommandKitErrorCodes, createCommandKitError, isCommandKitError, isErrorType } from "../error-codes-DM-Mbprh.js";
|
|
2
2
|
export { CommandKitError, CommandKitErrorCodes, createCommandKitError, isCommandKitError, isErrorType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { toFileURL } from "../resolve-file-url-
|
|
1
|
+
import { toFileURL } from "../resolve-file-url-BDJud8AT.js";
|
|
2
2
|
export { toFileURL };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
require('../constants-
|
|
2
|
-
const require_types_package = require('../types-package-
|
|
1
|
+
require('../constants-CxkFFZ7p.js');
|
|
2
|
+
const require_types_package = require('../types-package-elMCB4mL.js');
|
|
3
3
|
|
|
4
4
|
exports.generateTypesPackage = require_types_package.generateTypesPackage;
|
|
5
5
|
exports.rewriteCommandDeclaration = require_types_package.rewriteCommandDeclaration;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonSerialize, SimpleProxy, createProxy, debounce, defer, devOnly, findAppDirectory, getCurrentDirectory, getSourceDirectories } from "../utilities-
|
|
2
|
-
export { JsonSerialize, SimpleProxy, createProxy, debounce, defer, devOnly, findAppDirectory, getCurrentDirectory, getSourceDirectories };
|
|
1
|
+
import { JsonSerialize, SimpleProxy, buildOnly, createProxy, debounce, defer, devOnly, findAppDirectory, getCurrentDirectory, getSourceDirectories, noBuildOnly } from "../utilities-y6Wu2hdM.js";
|
|
2
|
+
export { JsonSerialize, SimpleProxy, buildOnly, createProxy, debounce, defer, devOnly, findAppDirectory, getCurrentDirectory, getSourceDirectories, noBuildOnly };
|
package/dist/utils/utilities.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require('../colors-DL3ucTiT.js');
|
|
2
2
|
require('../ActionRow-uJxU4UGo.js');
|
|
3
3
|
require('../error-codes-Ds0bnPvT.js');
|
|
4
|
-
const require_commandkit = require('../commandkit-
|
|
4
|
+
const require_commandkit = require('../commandkit-KwTRAgZd.js');
|
|
5
5
|
require('../warning-CszH8HeS.js');
|
|
6
6
|
require('../common-0Iw8ZeM6.js');
|
|
7
7
|
require('../common-CCx-FJI4.js');
|
|
@@ -17,7 +17,7 @@ require('../display-WDb9wMCv.js');
|
|
|
17
17
|
require('../element-DibzzA5L.js');
|
|
18
18
|
require('../types-TC4g3w91.js');
|
|
19
19
|
require('../EventInterceptor-BWoEJMHZ.js');
|
|
20
|
-
require('../constants-
|
|
20
|
+
require('../constants-CxkFFZ7p.js');
|
|
21
21
|
require('../PluginCommon-CPWV5xuX.js');
|
|
22
22
|
require('../CompilerPlugin-CZ4412Zm.js');
|
|
23
23
|
require('../RuntimePlugin-COeXe8rP.js');
|
|
@@ -25,7 +25,7 @@ require('../types-Cdh4uaFR.js');
|
|
|
25
25
|
require('../resolve-file-url-CJoD0FAn.js');
|
|
26
26
|
require('../runtime-Skt5NiOc.js');
|
|
27
27
|
require('../utils-Br3eenD1.js');
|
|
28
|
-
require('../types-package-
|
|
28
|
+
require('../types-package-elMCB4mL.js');
|
|
29
29
|
require('../constants-D0dawKxO.js');
|
|
30
30
|
require('../EventWorkerContext-D_9q1Bm2.js');
|
|
31
31
|
require('../signals-Cnqe9dFV.js');
|
|
@@ -34,15 +34,17 @@ require('../MessageCommandParser-CKh-tM97.js');
|
|
|
34
34
|
require('../CommandsRouter-CWMipIis.js');
|
|
35
35
|
require('../EventsRouter-C04XqRKf.js');
|
|
36
36
|
require('../router-BvamdzoF.js');
|
|
37
|
-
require('../common-
|
|
37
|
+
require('../common-vl9iZ7Th.js');
|
|
38
38
|
require('../CommandKitEventsChannel-2l9Za-le.js');
|
|
39
39
|
require('../store-ZwL2gN6a.js');
|
|
40
40
|
|
|
41
41
|
exports.JsonSerialize = require_commandkit.JsonSerialize;
|
|
42
|
+
exports.buildOnly = require_commandkit.buildOnly;
|
|
42
43
|
exports.createProxy = require_commandkit.createProxy;
|
|
43
44
|
exports.debounce = require_commandkit.debounce;
|
|
44
45
|
exports.defer = require_commandkit.defer;
|
|
45
46
|
exports.devOnly = require_commandkit.devOnly;
|
|
46
47
|
exports.findAppDirectory = require_commandkit.findAppDirectory;
|
|
47
48
|
exports.getCurrentDirectory = require_commandkit.getCurrentDirectory;
|
|
48
|
-
exports.getSourceDirectories = require_commandkit.getSourceDirectories;
|
|
49
|
+
exports.getSourceDirectories = require_commandkit.getSourceDirectories;
|
|
50
|
+
exports.noBuildOnly = require_commandkit.noBuildOnly;
|
package/dist/utils/warning.d.ts
CHANGED
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Emit a warning message to the console as a CommandKitWarning.
|
|
4
|
-
* @param message - The warning message to emit.
|
|
5
|
-
* @param code - The warning code (default is 'CommandKitWarning').
|
|
6
|
-
*/
|
|
7
|
-
declare function emitWarning(message: string, code?: string): void;
|
|
8
|
-
/**
|
|
9
|
-
* Emit a warning for unstable features in CommandKit.
|
|
10
|
-
* @param name - The name of the unstable feature.
|
|
11
|
-
* @example warnUnstable('MyUnstableFeature');
|
|
12
|
-
*/
|
|
13
|
-
declare function warnUnstable(name: string): void;
|
|
14
|
-
declare function warnDeprecated({
|
|
15
|
-
what,
|
|
16
|
-
message,
|
|
17
|
-
where
|
|
18
|
-
}: {
|
|
19
|
-
what: string;
|
|
20
|
-
where?: string;
|
|
21
|
-
message?: string;
|
|
22
|
-
}): void;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { emitWarning, warnDeprecated, warnUnstable };
|
|
25
|
-
//# sourceMappingURL=warning.d.ts.map
|
|
1
|
+
import { emitWarning, warnDeprecated, warnUnstable } from "../warning-Ddig3lHP.js";
|
|
2
|
+
export { emitWarning, warnDeprecated, warnUnstable };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* The current version of CommandKit.
|
|
8
8
|
*/
|
|
9
|
-
const version = "1.2.0-dev.
|
|
9
|
+
const version = "1.2.0-dev.20251015125840";
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
Object.defineProperty(exports, 'version', {
|
|
@@ -15,4 +15,4 @@ Object.defineProperty(exports, 'version', {
|
|
|
15
15
|
return version;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
//# sourceMappingURL=version-
|
|
18
|
+
//# sourceMappingURL=version-CK3cCEHc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-
|
|
1
|
+
{"version":3,"file":"version-CK3cCEHc.js","names":[],"sources":["../src/version.ts"],"sourcesContent":["/**\n * @private\n */\nfunction $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":";;;;;;;;AAWA,MAAa,UAA4B"}
|
package/dist/version.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/utils/warning.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Emit a warning message to the console as a CommandKitWarning.
|
|
4
|
+
* @param message - The warning message to emit.
|
|
5
|
+
* @param code - The warning code (default is 'CommandKitWarning').
|
|
6
|
+
*/
|
|
7
|
+
declare function emitWarning(message: string, code?: string): void;
|
|
8
|
+
/**
|
|
9
|
+
* Emit a warning for unstable features in CommandKit.
|
|
10
|
+
* @param name - The name of the unstable feature.
|
|
11
|
+
* @example warnUnstable('MyUnstableFeature');
|
|
12
|
+
*/
|
|
13
|
+
declare function warnUnstable(name: string): void;
|
|
14
|
+
declare function warnDeprecated({
|
|
15
|
+
what,
|
|
16
|
+
message,
|
|
17
|
+
where
|
|
18
|
+
}: {
|
|
19
|
+
what: string;
|
|
20
|
+
where?: string;
|
|
21
|
+
message?: string;
|
|
22
|
+
}): void;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { emitWarning, warnDeprecated, warnUnstable };
|
|
25
|
+
//# sourceMappingURL=warning-Ddig3lHP.d.ts.map
|
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.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.20251015125840",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"tsx": "^4.19.2",
|
|
181
181
|
"typescript": "^5.7.3",
|
|
182
182
|
"vitest": "^3.0.5",
|
|
183
|
-
"tsconfig": "0.0.0-dev.
|
|
183
|
+
"tsconfig": "0.0.0-dev.20251015125840"
|
|
184
184
|
},
|
|
185
185
|
"engines": {
|
|
186
186
|
"node": ">=24"
|