@discordjs/voice 0.11.0-dev.1657757511-fe34f48 → 0.11.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/CHANGELOG.md +40 -0
- package/dist/index.js +12 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [@discordjs/voice@0.11.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.10.0...@discordjs/voice@0.11.0) - (2022-07-17)
|
|
6
|
+
|
|
7
|
+
## Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **VoiceReceiver:** ParsePacket correctly (#8277) ([1a6ddbb](https://github.com/discordjs/discord.js/commit/1a6ddbbe7b99b5eff4617b99399965740c38490b))
|
|
10
|
+
- **recorder-example:** Bump dependencies (#8123) ([10ba008](https://github.com/discordjs/discord.js/commit/10ba0080cc20c44389779416b6a8215603eca6ca))
|
|
11
|
+
- **SpeakingMap:** Allow docgen to detect event name (#8236) ([c271e05](https://github.com/discordjs/discord.js/commit/c271e05223d84f643314be649344a2cfe514923f))
|
|
12
|
+
- **codecov:** Use cobertura (#8235) ([fd1c240](https://github.com/discordjs/discord.js/commit/fd1c24036f3c1835b918a12be8760d46f80460ac))
|
|
13
|
+
- **voice:** Re-add accidental removal of postbuild script ([f8739bd](https://github.com/discordjs/discord.js/commit/f8739bd9c0c691c9593761237189dc529ed0b0a3))
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
- Add codecov coverage badge to readmes (#8226) ([f6db285](https://github.com/discordjs/discord.js/commit/f6db285c073898a749fe4591cbd4463d1896daf5))
|
|
18
|
+
- Remove Music bot in voice examples (#8203) ([741b3c8](https://github.com/discordjs/discord.js/commit/741b3c8e279c1cc6ba862bc83299d369bc6c1bc6))
|
|
19
|
+
|
|
20
|
+
## Features
|
|
21
|
+
|
|
22
|
+
- **builder:** Add max min length in string option (#8214) ([96c8d21](https://github.com/discordjs/discord.js/commit/96c8d21f95eb366c46ae23505ba9054f44821b25))
|
|
23
|
+
- Add website documentation early mvp (#8183) ([d95197c](https://github.com/discordjs/discord.js/commit/d95197cc78593df4d0a8d1cc492b0e41b4ab58b8))
|
|
24
|
+
- **docgen:** Proper event parsing for typescript ([d4b41dd](https://github.com/discordjs/discord.js/commit/d4b41dd0815b493b599d4f4d1b6dd18cd99f91ea))
|
|
25
|
+
- **docgen:** Update typedoc ([b3346f4](https://github.com/discordjs/discord.js/commit/b3346f4b9b3d4f96443506643d4631dc1c6d7b21))
|
|
26
|
+
- Website (#8043) ([127931d](https://github.com/discordjs/discord.js/commit/127931d1df7a2a5c27923c2f2151dbf3824e50cc))
|
|
27
|
+
- **docgen:** Typescript support ([3279b40](https://github.com/discordjs/discord.js/commit/3279b40912e6aa61507bedb7db15a2b8668de44b))
|
|
28
|
+
- Docgen package (#8029) ([8b979c0](https://github.com/discordjs/discord.js/commit/8b979c0245c42fd824d8e98745ee869f5360fc86))
|
|
29
|
+
- Add scripts package for locally used scripts ([f2ae1f9](https://github.com/discordjs/discord.js/commit/f2ae1f9348bfd893332a9060f71a8a5f272a1b8b))
|
|
30
|
+
|
|
31
|
+
## Refactor
|
|
32
|
+
|
|
33
|
+
- Move all the config files to root (#8033) ([769ea0b](https://github.com/discordjs/discord.js/commit/769ea0bfe78c4f1d413c6b397c604ffe91e39c6a))
|
|
34
|
+
|
|
35
|
+
## Typings
|
|
36
|
+
|
|
37
|
+
- **voice:** Bring back typed events (#8109) ([70b42bb](https://github.com/discordjs/discord.js/commit/70b42bb64a4f83da0da242569b9c7921c8d1e26f))
|
|
38
|
+
|
|
39
|
+
# [@discordjs/voice@0.10.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.9.0...@discordjs/voice@0.10.0) - (2022-06-04)
|
|
40
|
+
|
|
41
|
+
## Styling
|
|
42
|
+
|
|
43
|
+
- Cleanup tests and tsup configs ([6b8ef20](https://github.com/discordjs/discord.js/commit/6b8ef20cb3af5b5cfd176dd0aa0a1a1e98551629))
|
|
44
|
+
|
|
5
45
|
# [@discordjs/voice@0.10.0](https://github.com/discordjs/discord.js/compare/@discordjs/voice@0.9.0...@discordjs/voice@0.10.0) - (2022-06-04)
|
|
6
46
|
|
|
7
47
|
## Styling
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var require_package = __commonJS({
|
|
|
35
35
|
"package.json"(exports, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@discordjs/voice",
|
|
38
|
-
version: "0.11.0
|
|
38
|
+
version: "0.11.0",
|
|
39
39
|
description: "Implementation of the Discord Voice API for node.js",
|
|
40
40
|
scripts: {
|
|
41
41
|
build: "tsup && node scripts/postbuild.mjs",
|
|
@@ -87,10 +87,10 @@ var require_package = __commonJS({
|
|
|
87
87
|
homepage: "https://discord.js.org",
|
|
88
88
|
dependencies: {
|
|
89
89
|
"@types/ws": "^8.5.3",
|
|
90
|
-
"discord-api-types": "^0.36.
|
|
91
|
-
"prism-media": "^1.3.
|
|
90
|
+
"discord-api-types": "^0.36.2",
|
|
91
|
+
"prism-media": "^1.3.4",
|
|
92
92
|
tslib: "^2.4.0",
|
|
93
|
-
ws: "^8.8.
|
|
93
|
+
ws: "^8.8.1"
|
|
94
94
|
},
|
|
95
95
|
devDependencies: {
|
|
96
96
|
"@babel/core": "^7.18.6",
|
|
@@ -99,10 +99,11 @@ var require_package = __commonJS({
|
|
|
99
99
|
"@discordjs/docgen": "workspace:^",
|
|
100
100
|
"@discordjs/scripts": "workspace:^",
|
|
101
101
|
"@favware/cliff-jumper": "^1.8.5",
|
|
102
|
-
"@microsoft/api-extractor": "^7.28.
|
|
103
|
-
"@types/jest": "^28.1.
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
"@microsoft/api-extractor": "^7.28.4",
|
|
103
|
+
"@types/jest": "^28.1.6",
|
|
104
|
+
"@types/node": "^16.11.45",
|
|
105
|
+
eslint: "^8.20.0",
|
|
106
|
+
jest: "^28.1.3",
|
|
106
107
|
"jest-websocket-mock": "^2.3.0",
|
|
107
108
|
"mock-socket": "^9.1.5",
|
|
108
109
|
prettier: "^2.7.1",
|
|
@@ -115,8 +116,7 @@ var require_package = __commonJS({
|
|
|
115
116
|
},
|
|
116
117
|
publishConfig: {
|
|
117
118
|
access: "public"
|
|
118
|
-
}
|
|
119
|
-
stableVersion: "0.11.0-dev"
|
|
119
|
+
}
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
});
|
|
@@ -1288,20 +1288,9 @@ var VoiceReceiver = class {
|
|
|
1288
1288
|
let packet = this.decrypt(buffer, mode, nonce2, secretKey);
|
|
1289
1289
|
if (!packet)
|
|
1290
1290
|
return;
|
|
1291
|
-
if (packet[0] === 190 && packet[1] === 222
|
|
1291
|
+
if (packet[0] === 190 && packet[1] === 222) {
|
|
1292
1292
|
const headerExtensionLength = packet.readUInt16BE(2);
|
|
1293
|
-
|
|
1294
|
-
for (let i = 0; i < headerExtensionLength; i++) {
|
|
1295
|
-
const byte2 = packet[offset];
|
|
1296
|
-
offset++;
|
|
1297
|
-
if (byte2 === 0)
|
|
1298
|
-
continue;
|
|
1299
|
-
offset += 1 + (byte2 >> 4);
|
|
1300
|
-
}
|
|
1301
|
-
const byte = packet.readUInt8(offset);
|
|
1302
|
-
if (byte === 0 || byte === 2)
|
|
1303
|
-
offset++;
|
|
1304
|
-
packet = packet.slice(offset);
|
|
1293
|
+
packet = packet.subarray(4 + 4 * headerExtensionLength);
|
|
1305
1294
|
}
|
|
1306
1295
|
return packet;
|
|
1307
1296
|
}
|