@floating-live/bilibili 0.17.0-alpha.1 → 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/LICENSE +1 -1
- package/dist/parser.js +3 -1
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.js +1 -0
- package/dist/room.js +1 -0
- package/package.json +2 -3
- package/plugin.json +2 -1
package/LICENSE
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
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/plugin.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface PluginOptions {
|
|
|
32
32
|
}
|
|
33
33
|
export declare class PluginBilibili extends BasePlugin {
|
|
34
34
|
static pluginName: string;
|
|
35
|
+
static role: string;
|
|
35
36
|
apiClient: BilibiliApiClientEx;
|
|
36
37
|
room: AppPluginExposesMap["room"] | null;
|
|
37
38
|
init(ctx: PluginContext): void;
|
package/dist/plugin.js
CHANGED
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": {
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"@types/md5": "^2.3.0",
|
|
29
29
|
"@types/websocket": "^1.0.5",
|
|
30
30
|
"@types/ws": "^8.5.3",
|
|
31
|
-
"floating-live": "^0.17.0-alpha.5",
|
|
32
31
|
"rimraf": "^3.0.2",
|
|
33
32
|
"tsc-alias": "^1.8.16",
|
|
34
33
|
"typescript": "^5.9.3",
|