@floating-live/bilibili 0.17.0-alpha.2 → 0.17.0-alpha.3
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/parser.js +3 -1
- package/dist/room.js +1 -0
- package/package.json +3 -3
- package/plugin.json +1 -1
package/dist/parser.js
CHANGED
|
@@ -199,7 +199,7 @@ const parsingFunction = {
|
|
|
199
199
|
roomId: room?.id || 0,
|
|
200
200
|
userId: data.uid,
|
|
201
201
|
type: "gift",
|
|
202
|
-
id: msg_id || data.combo_id,
|
|
202
|
+
id: msg_id || data.combo_send?.combo_id,
|
|
203
203
|
timestamp: send_time || data.timestamp * 1000,
|
|
204
204
|
info: {
|
|
205
205
|
user: {
|
|
@@ -217,6 +217,7 @@ const parsingFunction = {
|
|
|
217
217
|
avatar: data.face,
|
|
218
218
|
},
|
|
219
219
|
gift: {
|
|
220
|
+
image: data.gift_info.img_basic,
|
|
220
221
|
name: data.giftName,
|
|
221
222
|
id: data.giftId,
|
|
222
223
|
num: data.num,
|
|
@@ -244,6 +245,7 @@ const parsingFunction = {
|
|
|
244
245
|
timestamp: send_time || data.start_time * 1000,
|
|
245
246
|
info: {
|
|
246
247
|
user: {
|
|
248
|
+
// avatar: "",
|
|
247
249
|
name: data.username,
|
|
248
250
|
id: data.uid,
|
|
249
251
|
},
|
package/dist/room.js
CHANGED
|
@@ -272,6 +272,7 @@ export class RoomBilibili extends LiveRoom {
|
|
|
272
272
|
uid: __classPrivateFieldGet(this, _RoomBilibili_tokens, "f")?.uid,
|
|
273
273
|
buvid: __classPrivateFieldGet(this, _RoomBilibili_tokens, "f")?.buvid,
|
|
274
274
|
key: __classPrivateFieldGet(this, _RoomBilibili_tokens, "f")?.key,
|
|
275
|
+
decodeProtobuf: true,
|
|
275
276
|
});
|
|
276
277
|
const controller = new AbortController();
|
|
277
278
|
const signal = controller.signal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floating-live/bilibili",
|
|
3
|
-
"version": "0.17.0-alpha.
|
|
3
|
+
"version": "0.17.0-alpha.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@floating-live/cookies": "^0.1.0",
|
|
23
|
-
"bilibili-live-danmaku": "^0.7.
|
|
23
|
+
"bilibili-live-danmaku": "^0.7.16",
|
|
24
24
|
"md5": "^2.3.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"dist",
|
|
41
41
|
"plugin.json"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "eb7c02f5dba6b6abc223b747cdf391942ae9e734"
|
|
44
44
|
}
|