chapterjs 0.2.3 → 0.3.0
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/README.md +65 -0
- package/dist/cli/cli.js +41 -6
- package/dist/cli/project.d.ts +19 -0
- package/dist/cli/project.js +18 -8
- package/dist/cli/test.d.ts +29 -0
- package/dist/cli/test.js +444 -0
- package/dist/commands/autocomplete.d.ts +1 -1
- package/dist/commands/autocomplete.js +37 -41
- package/dist/commands/router.d.ts +4 -1
- package/dist/commands/router.js +15 -17
- package/dist/components/router.d.ts +7 -2
- package/dist/components/router.js +16 -16
- package/dist/discord/types/channel.d.ts +9 -1
- package/dist/discord/types/guild.d.ts +5 -5
- package/dist/discord/types/permissions.d.ts +6 -0
- package/dist/discord/types/poll.d.ts +7 -1
- package/dist/events/router.d.ts +9 -4
- package/dist/events/router.js +24 -11
- package/dist/interactions/dispatch.d.ts +5 -1
- package/dist/interactions/dispatch.js +6 -2
- package/dist/loader/hot.js +22 -2
- package/dist/loader/loader.d.ts +7 -0
- package/dist/loader/loader.js +22 -12
- package/dist/store/memory-backend.d.ts +15 -0
- package/dist/store/memory-backend.js +56 -0
- package/dist/store/store.js +4 -1
- package/dist/tasks/scheduler.d.ts +6 -0
- package/dist/tasks/scheduler.js +9 -3
- package/dist/testing/failure.d.ts +9 -0
- package/dist/testing/failure.js +20 -0
- package/dist/testing/fake-discord.d.ts +59 -0
- package/dist/testing/fake-discord.js +120 -0
- package/dist/testing/fake-gateway.d.ts +59 -0
- package/dist/testing/fake-gateway.js +123 -0
- package/dist/testing/harness.d.ts +387 -0
- package/dist/testing/harness.js +1418 -0
- package/dist/testing/index.d.ts +4 -0
- package/dist/testing/index.js +5 -0
- package/dist/testing/scenario.d.ts +39 -0
- package/dist/testing/scenario.js +58 -0
- package/dist/testing/smoke.d.ts +20 -0
- package/dist/testing/smoke.js +659 -0
- package/dist/testing/websocket.d.ts +34 -0
- package/dist/testing/websocket.js +167 -0
- package/dist/testing/world.d.ts +145 -0
- package/dist/testing/world.js +1479 -0
- package/package.json +20 -3
package/package.json
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chapterjs",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "The Discord framework",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "The Discord framework: ultra simple, but ultra customizable. Your files become a bot, typed end to end, with nothing to register.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"discord",
|
|
7
|
+
"discord-bot",
|
|
8
|
+
"bot",
|
|
9
|
+
"framework",
|
|
10
|
+
"typescript",
|
|
11
|
+
"slash-commands",
|
|
12
|
+
"esm",
|
|
13
|
+
"gateway",
|
|
14
|
+
"voice",
|
|
15
|
+
"cli",
|
|
16
|
+
"hot-reload"
|
|
17
|
+
],
|
|
5
18
|
"type": "module",
|
|
6
19
|
"license": "MIT",
|
|
7
20
|
"repository": {
|
|
@@ -9,7 +22,7 @@
|
|
|
9
22
|
"url": "git+https://github.com/chapterjs/chapterjs.git",
|
|
10
23
|
"directory": "packages/chapterjs"
|
|
11
24
|
},
|
|
12
|
-
"homepage": "https://chapterjs.
|
|
25
|
+
"homepage": "https://www.chapterjs.org",
|
|
13
26
|
"bugs": "https://github.com/chapterjs/chapterjs/issues",
|
|
14
27
|
"types": "./dist/index.d.ts",
|
|
15
28
|
"bin": {
|
|
@@ -19,6 +32,10 @@
|
|
|
19
32
|
".": {
|
|
20
33
|
"types": "./dist/index.d.ts",
|
|
21
34
|
"default": "./dist/main.js"
|
|
35
|
+
},
|
|
36
|
+
"./test": {
|
|
37
|
+
"types": "./dist/testing/index.d.ts",
|
|
38
|
+
"default": "./dist/testing/index.js"
|
|
22
39
|
}
|
|
23
40
|
},
|
|
24
41
|
"files": [
|