reciple 10.0.33 → 10.0.35
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/assets/config/reciple.config.js +2 -2
- package/assets/config/reciple.config.ts +1 -1
- package/dist/classes/cli/CLI.mjs +1 -1
- package/dist/classes/validation/BaseModuleValidator.d.mts +2 -2
- package/dist/classes/validation/EventModuleValidator.d.mts +2 -2
- package/dist/classes/validation/PostconditionModule.d.mts +2 -2
- package/dist/helpers/types.d.mts +1 -1
- package/dist/package.mjs +1 -1
- package/package.json +1 -1
|
@@ -68,7 +68,7 @@ export const config = {
|
|
|
68
68
|
returnOnFailure: false
|
|
69
69
|
},
|
|
70
70
|
modules: {
|
|
71
|
-
directories: ["./modules/**"],
|
|
71
|
+
directories: ["./modules/**", "./modules"],
|
|
72
72
|
ignore: ["_*"],
|
|
73
73
|
filter: undefined
|
|
74
74
|
}
|
|
@@ -80,7 +80,7 @@ export const config = {
|
|
|
80
80
|
export const build = {
|
|
81
81
|
entry: ['./src/**/*.{js,jsx,ts,tsx}'],
|
|
82
82
|
tsconfig: './jsconfig.json',
|
|
83
|
-
outDir: './modules'
|
|
83
|
+
outDir: './modules',
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
/**
|
package/dist/classes/cli/CLI.mjs
CHANGED
|
@@ -94,7 +94,7 @@ var CLI = class {
|
|
|
94
94
|
(function(_CLI) {
|
|
95
95
|
_CLI.root = path.join(path.dirname(fileURLToPath(import.meta.url)), "../../../");
|
|
96
96
|
_CLI.bin = path.join(CLI.root, "dist/bin/reciple.mjs");
|
|
97
|
-
_CLI.version = "10.0.
|
|
97
|
+
_CLI.version = "10.0.35";
|
|
98
98
|
function stringifyFlags(flags, command, ignored = []) {
|
|
99
99
|
let arr = [];
|
|
100
100
|
for (const [key, value] of Object.entries(flags)) {
|
|
@@ -24,13 +24,13 @@ declare class BaseModuleValidator extends Validator {
|
|
|
24
24
|
onDisable: Function | undefined;
|
|
25
25
|
}>>;
|
|
26
26
|
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
27
|
+
toJSON: Function;
|
|
28
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
27
29
|
id: string | undefined;
|
|
28
30
|
moduleType: ModuleType | undefined;
|
|
29
31
|
onEnable: Function | undefined;
|
|
30
32
|
onReady: Function | undefined;
|
|
31
33
|
onDisable: Function | undefined;
|
|
32
|
-
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
33
|
-
toJSON: Function;
|
|
34
34
|
}>>;
|
|
35
35
|
static isValidId(id: unknown): asserts id is string;
|
|
36
36
|
static isValidModuleType(moduleType: unknown): asserts moduleType is ModuleType;
|
|
@@ -46,6 +46,8 @@ declare class EventModuleValidator extends Validator {
|
|
|
46
46
|
onEvent: Function;
|
|
47
47
|
}>>;
|
|
48
48
|
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
49
|
+
toJSON: Function;
|
|
50
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
49
51
|
id: string | undefined;
|
|
50
52
|
moduleType: ModuleType | undefined;
|
|
51
53
|
onEnable: Function | undefined;
|
|
@@ -60,8 +62,6 @@ declare class EventModuleValidator extends Validator {
|
|
|
60
62
|
event: string;
|
|
61
63
|
once: boolean | undefined;
|
|
62
64
|
onEvent: Function;
|
|
63
|
-
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
64
|
-
toJSON: Function;
|
|
65
65
|
}>>;
|
|
66
66
|
static isValidEmitter(emitter: unknown): asserts emitter is EventEmitter;
|
|
67
67
|
static isValidEvent(event: unknown): asserts event is string;
|
|
@@ -15,10 +15,10 @@ declare class PostconditionModuleValidator extends Validator {
|
|
|
15
15
|
execute: Function;
|
|
16
16
|
}>>;
|
|
17
17
|
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
18
|
-
toJSON: Function;
|
|
19
|
-
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
20
18
|
scope: CommandType[] | undefined;
|
|
21
19
|
execute: Function;
|
|
20
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
21
|
+
toJSON: Function;
|
|
22
22
|
}>>;
|
|
23
23
|
static isValidScope(scope: unknown): asserts scope is CommandType[];
|
|
24
24
|
static isValidAccepts(accepts: unknown): asserts accepts is CommandPostconditionReason[];
|
package/dist/helpers/types.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ type AnyModule = BaseModule | AnyCommandModule | PreconditionModule | Postcondit
|
|
|
15
15
|
type AnyModuleData = BaseModule.Data | AnyCommandModuleData | PreconditionModule.Data | PostconditionModule.Data | EventModule.Data;
|
|
16
16
|
type AnyCommandModule<T extends CommandType = CommandType> = T extends CommandType.Message ? MessageCommandModule : T extends CommandType.Slash ? SlashCommandModule : T extends CommandType.ContextMenu ? ContextMenuCommandModule : MessageCommandModule | SlashCommandModule | ContextMenuCommandModule;
|
|
17
17
|
type AnyCommandModuleData<T extends CommandType = CommandType> = T extends CommandType.Message ? MessageCommandModule.Data : T extends CommandType.Slash ? SlashCommandModule.Data : T extends CommandType.ContextMenu ? ContextMenuCommandModule.Data : MessageCommandModule.Data | SlashCommandModule.Data | ContextMenuCommandModule.Data;
|
|
18
|
-
type BuildConfig = Omit<UserConfig, 'watch' | 'skipNodeModulesBundle' | 'platform' | 'format' | 'unbundle' | 'bundle' | 'skipNodeModulesBundle' | 'noExternal' | 'cjsDefault' | 'workspace' | 'customLogger' | 'logLevel' | 'deps'>;
|
|
18
|
+
type BuildConfig = Omit<UserConfig, 'watch' | 'css' | 'cwd' | 'env' | 'envFile' | 'envPrefix' | 'exe' | 'exports' | 'ignoreWatch' | 'skipNodeModulesBundle' | 'platform' | 'format' | 'unbundle' | 'bundle' | 'skipNodeModulesBundle' | 'noExternal' | 'cjsDefault' | 'workspace' | 'customLogger' | 'logLevel' | 'deps'>;
|
|
19
19
|
type ShardingConfig = Omit<ShardingManagerOptions, 'shardArgs' | 'token' | 'execArgv'>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { AnyCommandBuilderMethods, AnyCommandModule, AnyCommandModuleData, AnyModule, AnyModuleData, BuildConfig, ShardingConfig };
|
package/dist/package.mjs
CHANGED