shardwire 1.2.0 → 1.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 +101 -42
- package/dist/index.d.mts +20 -6
- package/dist/index.d.ts +20 -6
- package/dist/index.js +70 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +82 -75
package/package.json
CHANGED
|
@@ -1,77 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
2
|
+
"name": "shardwire",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Discord-first bridge between a bot process and external apps over WebSocket.",
|
|
5
|
+
"homepage": "https://www.npmjs.com/package/shardwire",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/unloopedmido/shardwire.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/unloopedmido/shardwire/issues",
|
|
12
|
+
"email": "cored.developments@gmail.com"
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"module": "./dist/index.mjs",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
26
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"lint": "eslint . --max-warnings=0",
|
|
29
|
+
"lint:fix": "eslint . --fix",
|
|
30
|
+
"format": "prettier --write .",
|
|
31
|
+
"format:check": "prettier --check .",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"test:coverage": "vitest run --coverage",
|
|
34
|
+
"example:bot": "tsx examples/bot-basic.ts",
|
|
35
|
+
"example:app": "tsx examples/app-basic.ts",
|
|
36
|
+
"example:bot:prod": "tsx examples/bot-production.ts",
|
|
37
|
+
"example:app:moderation": "tsx examples/app-moderation.ts",
|
|
38
|
+
"example:app:interaction": "tsx examples/app-interaction.ts",
|
|
39
|
+
"check:changelog": "node scripts/check-changelog-release.mjs",
|
|
40
|
+
"verify": "npm run check:changelog && npm run lint && npm run format:check && npm run test:coverage && npm run typecheck && npm run build",
|
|
41
|
+
"prepublishOnly": "npm run verify"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"discord",
|
|
45
|
+
"discord-bot",
|
|
46
|
+
"websocket",
|
|
47
|
+
"bot-bridge",
|
|
48
|
+
"realtime",
|
|
49
|
+
"typescript",
|
|
50
|
+
"discord-events",
|
|
51
|
+
"discord-apps",
|
|
52
|
+
"discord-api"
|
|
53
|
+
],
|
|
54
|
+
"author": "Mohammed Haism <cored.developments@gmail.com>",
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"files": [
|
|
57
|
+
"dist"
|
|
58
|
+
],
|
|
59
|
+
"engines": {
|
|
60
|
+
"node": ">=18.18"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"discord-api-types": "^0.38.34",
|
|
64
|
+
"discord.js": "^14.26.2",
|
|
65
|
+
"ws": "^8.20.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@eslint/js": "^9.39.4",
|
|
69
|
+
"@types/node": "^25.6.0",
|
|
70
|
+
"@types/ws": "^8.18.1",
|
|
71
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
72
|
+
"eslint": "^10.2.0",
|
|
73
|
+
"globals": "^17.5.0",
|
|
74
|
+
"prettier": "^3.5.3",
|
|
75
|
+
"tsup": "^8.5.1",
|
|
76
|
+
"tsx": "^4.21.0",
|
|
77
|
+
"typescript": "^6.0.2",
|
|
78
|
+
"typescript-eslint": "^8.58.1",
|
|
79
|
+
"vitest": "^4.1.4"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public"
|
|
83
|
+
}
|
|
77
84
|
}
|