reciple 10.0.17 → 10.0.18
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/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.18";
|
|
98
98
|
function stringifyFlags(flags, command, ignored = []) {
|
|
99
99
|
let arr = [];
|
|
100
100
|
for (const [key, value] of Object.entries(flags)) {
|
|
@@ -3,11 +3,11 @@ import { AnyCommandModuleData } from "../../helpers/types.mjs";
|
|
|
3
3
|
import "../../index.mjs";
|
|
4
4
|
import * as _reciple_core0 from "@reciple/core";
|
|
5
5
|
import { Validator } from "@reciple/core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _sapphire_shapeshift0 from "@sapphire/shapeshift";
|
|
7
7
|
|
|
8
8
|
//#region src/classes/validation/CommandModuleValidator.d.ts
|
|
9
9
|
declare class CommandModuleValidator extends Validator {
|
|
10
|
-
static object:
|
|
10
|
+
static object: _sapphire_shapeshift0.ObjectValidator<{
|
|
11
11
|
id: string | undefined;
|
|
12
12
|
moduleType: ModuleType | undefined;
|
|
13
13
|
onEnable: Function | undefined;
|
|
@@ -16,23 +16,23 @@ declare class CommandModuleValidator extends Validator {
|
|
|
16
16
|
} & {
|
|
17
17
|
id: string;
|
|
18
18
|
type: _reciple_core0.CommandType;
|
|
19
|
-
data:
|
|
19
|
+
data: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
20
20
|
name: any;
|
|
21
21
|
description: any;
|
|
22
22
|
aliases: any;
|
|
23
23
|
options: any;
|
|
24
24
|
flags: any;
|
|
25
|
-
}> |
|
|
25
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
26
26
|
type: any;
|
|
27
27
|
name: any;
|
|
28
28
|
}>;
|
|
29
29
|
cooldown: number | undefined;
|
|
30
|
-
preconditions:
|
|
30
|
+
preconditions: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
31
31
|
id: any;
|
|
32
32
|
scope: any;
|
|
33
33
|
execute: any;
|
|
34
34
|
}>[] | undefined;
|
|
35
|
-
postconditions:
|
|
35
|
+
postconditions: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
36
36
|
id: any;
|
|
37
37
|
scope: any;
|
|
38
38
|
execute: any;
|
|
@@ -40,7 +40,7 @@ declare class CommandModuleValidator extends Validator {
|
|
|
40
40
|
disabledPreconditions: string[] | undefined;
|
|
41
41
|
disabledPostconditions: string[] | undefined;
|
|
42
42
|
execute: Function;
|
|
43
|
-
},
|
|
43
|
+
}, _sapphire_shapeshift0.UndefinedToOptional<{
|
|
44
44
|
id: string | undefined;
|
|
45
45
|
moduleType: ModuleType | undefined;
|
|
46
46
|
onEnable: Function | undefined;
|
|
@@ -49,23 +49,23 @@ declare class CommandModuleValidator extends Validator {
|
|
|
49
49
|
} & {
|
|
50
50
|
id: string;
|
|
51
51
|
type: _reciple_core0.CommandType;
|
|
52
|
-
data:
|
|
52
|
+
data: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
53
53
|
name: any;
|
|
54
54
|
description: any;
|
|
55
55
|
aliases: any;
|
|
56
56
|
options: any;
|
|
57
57
|
flags: any;
|
|
58
|
-
}> |
|
|
58
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
59
59
|
type: any;
|
|
60
60
|
name: any;
|
|
61
61
|
}>;
|
|
62
62
|
cooldown: number | undefined;
|
|
63
|
-
preconditions:
|
|
63
|
+
preconditions: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
64
64
|
id: any;
|
|
65
65
|
scope: any;
|
|
66
66
|
execute: any;
|
|
67
67
|
}>[] | undefined;
|
|
68
|
-
postconditions:
|
|
68
|
+
postconditions: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
69
69
|
id: any;
|
|
70
70
|
scope: any;
|
|
71
71
|
execute: any;
|
|
@@ -74,9 +74,7 @@ declare class CommandModuleValidator extends Validator {
|
|
|
74
74
|
disabledPostconditions: string[] | undefined;
|
|
75
75
|
execute: Function;
|
|
76
76
|
}>>;
|
|
77
|
-
static resolvable:
|
|
78
|
-
toJSON: Function;
|
|
79
|
-
}> | _sapphire_shapeshift15.UndefinedToOptional<{
|
|
77
|
+
static resolvable: _sapphire_shapeshift0.UnionValidator<_sapphire_shapeshift0.UndefinedToOptional<{
|
|
80
78
|
id: string | undefined;
|
|
81
79
|
moduleType: ModuleType | undefined;
|
|
82
80
|
onEnable: Function | undefined;
|
|
@@ -85,23 +83,23 @@ declare class CommandModuleValidator extends Validator {
|
|
|
85
83
|
} & {
|
|
86
84
|
id: string;
|
|
87
85
|
type: _reciple_core0.CommandType;
|
|
88
|
-
data:
|
|
86
|
+
data: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
89
87
|
name: any;
|
|
90
88
|
description: any;
|
|
91
89
|
aliases: any;
|
|
92
90
|
options: any;
|
|
93
91
|
flags: any;
|
|
94
|
-
}> |
|
|
92
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
95
93
|
type: any;
|
|
96
94
|
name: any;
|
|
97
95
|
}>;
|
|
98
96
|
cooldown: number | undefined;
|
|
99
|
-
preconditions:
|
|
97
|
+
preconditions: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
100
98
|
id: any;
|
|
101
99
|
scope: any;
|
|
102
100
|
execute: any;
|
|
103
101
|
}>[] | undefined;
|
|
104
|
-
postconditions:
|
|
102
|
+
postconditions: _sapphire_shapeshift0.UndefinedToOptional<{
|
|
105
103
|
id: any;
|
|
106
104
|
scope: any;
|
|
107
105
|
execute: any;
|
|
@@ -109,6 +107,8 @@ declare class CommandModuleValidator extends Validator {
|
|
|
109
107
|
disabledPreconditions: string[] | undefined;
|
|
110
108
|
disabledPostconditions: string[] | undefined;
|
|
111
109
|
execute: Function;
|
|
110
|
+
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
111
|
+
toJSON: Function;
|
|
112
112
|
}>>;
|
|
113
113
|
static isValid(value: unknown): asserts value is AnyCommandModuleData;
|
|
114
114
|
}
|
|
@@ -3,19 +3,19 @@ import { EventModule } from "../modules/events/EventModule.mjs";
|
|
|
3
3
|
import "../../index.mjs";
|
|
4
4
|
import { Validator } from "@reciple/core";
|
|
5
5
|
import { EventEmitter } from "node:events";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _sapphire_shapeshift16 from "@sapphire/shapeshift";
|
|
7
7
|
|
|
8
8
|
//#region src/classes/validation/EventModuleValidator.d.ts
|
|
9
9
|
declare class EventModuleValidator extends Validator {
|
|
10
|
-
static emitter:
|
|
10
|
+
static emitter: _sapphire_shapeshift16.InstanceValidator<EventEmitter<{
|
|
11
11
|
[x: string]: any[];
|
|
12
12
|
[x: number]: any[];
|
|
13
13
|
[x: symbol]: any[];
|
|
14
14
|
}>>;
|
|
15
|
-
static event:
|
|
16
|
-
static once:
|
|
17
|
-
static onEvent:
|
|
18
|
-
static object:
|
|
15
|
+
static event: _sapphire_shapeshift16.StringValidator<string>;
|
|
16
|
+
static once: _sapphire_shapeshift16.UnionValidator<boolean | undefined>;
|
|
17
|
+
static onEvent: _sapphire_shapeshift16.InstanceValidator<Function>;
|
|
18
|
+
static object: _sapphire_shapeshift16.ObjectValidator<{
|
|
19
19
|
id: string | undefined;
|
|
20
20
|
moduleType: ModuleType | undefined;
|
|
21
21
|
onEnable: Function | undefined;
|
|
@@ -30,7 +30,7 @@ declare class EventModuleValidator extends Validator {
|
|
|
30
30
|
event: string;
|
|
31
31
|
once: boolean | undefined;
|
|
32
32
|
onEvent: Function;
|
|
33
|
-
},
|
|
33
|
+
}, _sapphire_shapeshift16.UndefinedToOptional<{
|
|
34
34
|
id: string | undefined;
|
|
35
35
|
moduleType: ModuleType | undefined;
|
|
36
36
|
onEnable: Function | undefined;
|
|
@@ -46,7 +46,9 @@ declare class EventModuleValidator extends Validator {
|
|
|
46
46
|
once: boolean | undefined;
|
|
47
47
|
onEvent: Function;
|
|
48
48
|
}>>;
|
|
49
|
-
static resolvable:
|
|
49
|
+
static resolvable: _sapphire_shapeshift16.UnionValidator<_sapphire_shapeshift16.UndefinedToOptional<{
|
|
50
|
+
toJSON: Function;
|
|
51
|
+
}> | _sapphire_shapeshift16.UndefinedToOptional<{
|
|
50
52
|
id: string | undefined;
|
|
51
53
|
moduleType: ModuleType | undefined;
|
|
52
54
|
onEnable: Function | undefined;
|
|
@@ -61,8 +63,6 @@ declare class EventModuleValidator extends Validator {
|
|
|
61
63
|
event: string;
|
|
62
64
|
once: boolean | undefined;
|
|
63
65
|
onEvent: Function;
|
|
64
|
-
}> | _sapphire_shapeshift0.UndefinedToOptional<{
|
|
65
|
-
toJSON: Function;
|
|
66
66
|
}>>;
|
|
67
67
|
static isValidEmitter(emitter: unknown): asserts emitter is EventEmitter;
|
|
68
68
|
static isValidEvent(event: unknown): asserts event is string;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { PreconditionModule } from "../modules/PreconditionModule.mjs";
|
|
2
2
|
import { CommandType, Validator } from "@reciple/core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _sapphire_shapeshift25 from "@sapphire/shapeshift";
|
|
4
4
|
|
|
5
5
|
//#region src/classes/validation/PreconditionModule.d.ts
|
|
6
6
|
declare class PreconditionModuleValidator extends Validator {
|
|
7
|
-
static scope:
|
|
8
|
-
static execute:
|
|
9
|
-
static object:
|
|
7
|
+
static scope: _sapphire_shapeshift25.UnionValidator<CommandType[] | undefined>;
|
|
8
|
+
static execute: _sapphire_shapeshift25.InstanceValidator<Function>;
|
|
9
|
+
static object: _sapphire_shapeshift25.ObjectValidator<{
|
|
10
10
|
scope: CommandType[] | undefined;
|
|
11
11
|
execute: Function;
|
|
12
|
-
},
|
|
12
|
+
}, _sapphire_shapeshift25.UndefinedToOptional<{
|
|
13
13
|
scope: CommandType[] | undefined;
|
|
14
14
|
execute: Function;
|
|
15
15
|
}>>;
|
|
16
|
-
static resolvable:
|
|
16
|
+
static resolvable: _sapphire_shapeshift25.UnionValidator<_sapphire_shapeshift25.UndefinedToOptional<{
|
|
17
17
|
toJSON: Function;
|
|
18
|
-
}> |
|
|
18
|
+
}> | _sapphire_shapeshift25.UndefinedToOptional<{
|
|
19
19
|
scope: CommandType[] | undefined;
|
|
20
20
|
execute: Function;
|
|
21
21
|
}>>;
|
package/dist/package.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "reciple",
|
|
4
|
-
version: "10.0.
|
|
4
|
+
version: "10.0.18",
|
|
5
5
|
license: "LGPL-3.0-only",
|
|
6
6
|
description: "The CLI for reciple",
|
|
7
7
|
module: "./dist/index.mjs",
|
|
@@ -38,9 +38,9 @@ var package_default = {
|
|
|
38
38
|
dependencies: {
|
|
39
39
|
"@clack/prompts": "^0.11.0",
|
|
40
40
|
"@dotenvx/dotenvx": "^1.52.0",
|
|
41
|
-
"@prtty/print": "
|
|
42
|
-
"@prtty/prtty": "
|
|
43
|
-
"@reciple/utils": "
|
|
41
|
+
"@prtty/print": "catalog:",
|
|
42
|
+
"@prtty/prtty": "catalog:",
|
|
43
|
+
"@reciple/utils": "workspace:^",
|
|
44
44
|
"@sapphire/shapeshift": "^4.0.0",
|
|
45
45
|
"@sapphire/snowflake": "^3.5.5",
|
|
46
46
|
"commander": "^14.0.2",
|
|
@@ -54,16 +54,16 @@ var package_default = {
|
|
|
54
54
|
"tsdown": "^0.20.1"
|
|
55
55
|
},
|
|
56
56
|
devDependencies: {
|
|
57
|
-
"@reciple/jsx": "
|
|
57
|
+
"@reciple/jsx": "workspace:^",
|
|
58
58
|
"@types/micromatch": "^4.0.10",
|
|
59
|
-
"@types/node": "
|
|
59
|
+
"@types/node": "catalog:",
|
|
60
60
|
"nodemon": "^3.1.11",
|
|
61
61
|
"rolldown": "^1.0.0-rc.1",
|
|
62
|
-
"typescript": "
|
|
62
|
+
"typescript": "catalog:"
|
|
63
63
|
},
|
|
64
64
|
peerDependencies: {
|
|
65
|
-
"@reciple/core": "
|
|
66
|
-
"discord.js": "
|
|
65
|
+
"@reciple/core": "workspace:^",
|
|
66
|
+
"discord.js": "catalog:"
|
|
67
67
|
},
|
|
68
68
|
peerDependenciesMeta: {
|
|
69
69
|
"@reciple/core": { "optional": false },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reciple",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.18",
|
|
4
4
|
"license": "LGPL-3.0-only",
|
|
5
5
|
"description": "The CLI for reciple",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@clack/prompts": "^0.11.0",
|
|
39
39
|
"@dotenvx/dotenvx": "^1.52.0",
|
|
40
|
-
"@prtty/print": "
|
|
41
|
-
"@prtty/prtty": "
|
|
40
|
+
"@prtty/print": "^1.1.0",
|
|
41
|
+
"@prtty/prtty": "^1.1.0",
|
|
42
42
|
"@reciple/utils": "^10.0.1",
|
|
43
43
|
"@sapphire/shapeshift": "^4.0.0",
|
|
44
44
|
"@sapphire/snowflake": "^3.5.5",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@reciple/jsx": "^10.0.1",
|
|
57
57
|
"@types/micromatch": "^4.0.10",
|
|
58
|
-
"@types/node": "
|
|
58
|
+
"@types/node": "^25.0.9",
|
|
59
59
|
"nodemon": "^3.1.11",
|
|
60
60
|
"rolldown": "^1.0.0-rc.1",
|
|
61
|
-
"typescript": "
|
|
61
|
+
"typescript": "^5.9.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@reciple/core": "
|
|
65
|
-
"discord.js": "
|
|
64
|
+
"@reciple/core": "^10.0.1",
|
|
65
|
+
"discord.js": "^14.25.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@reciple/core": {
|