koishi-plugin-bilibili-notify 3.2.5-alpha.0 → 3.2.5-alpha.10

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/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "koishi-plugin-bilibili-notify",
3
3
  "description": "Koishi bilibili notify plugin",
4
- "version": "3.2.5-alpha.0",
4
+ "version": "3.2.5-alpha.10",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
10
10
  "scripts": {
11
- "build": "yakumo build",
11
+ "yakumo build": "yakumo build",
12
12
  "clean": "yakumo clean",
13
13
  "bump": "yakumo version",
14
14
  "dep": "yakumo upgrade",
15
- "pub": "yakumo publish"
15
+ "pub": "yakumo publish",
16
+ "build": "tsdown"
16
17
  },
17
18
  "files": [
18
19
  "lib",
@@ -35,15 +36,16 @@
35
36
  },
36
37
  "dependencies": {
37
38
  "@akokko/blive-message-listener": "^0.5.1",
39
+ "@satorijs/element": "^3.1.8",
38
40
  "axios": "^1.9.0",
39
- "axios-cookiejar-support": "^5.0.5",
41
+ "axios-cookiejar-support": "^6.0.2",
40
42
  "cacheable-lookup": "^7.0.0",
41
43
  "cron": "^4.3.1",
42
- "jsdom": "^24.1.3",
44
+ "jsdom": "^26.1.0",
43
45
  "luxon": "^3.6.1",
44
46
  "md5": "^2.3.0",
45
47
  "qrcode": "^1.5.4",
46
- "tough-cookie": "^4.1.4"
48
+ "tough-cookie": "^5.1.2"
47
49
  },
48
50
  "devDependencies": {
49
51
  "@biomejs/biome": "1.9.4",
@@ -60,11 +62,12 @@
60
62
  "@types/tough-cookie": "^4.0.5",
61
63
  "esbuild": "^0.25.5",
62
64
  "esbuild-register": "^3.6.0",
63
- "globals": "^15.15.0",
65
+ "globals": "^16.2.0",
64
66
  "koishi": "^4.18.8",
65
67
  "koishi-plugin-puppeteer": "^3.9.0",
68
+ "tsdown": "^0.12.7",
66
69
  "tsx": "^4.19.4",
67
- "typescript": "^5.9.0-dev.20250603",
70
+ "typescript": "5.8.3",
68
71
  "yakumo": "^1.0.0",
69
72
  "yakumo-esbuild": "^1.0.0",
70
73
  "yakumo-tsc": "^1.0.0",
package/readme.md CHANGED
@@ -5,6 +5,7 @@
5
5
  ---
6
6
 
7
7
  - koishi-plugin-bilibili-notify [![npm](https://img.shields.io/npm/v/koishi-plugin-bilibili-notify?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-bilibili-notify)
8
+ - [重要通知](#重要通知)
8
9
  - [重新订阅](#重新订阅)
9
10
  - [功能](#功能)
10
11
  - [注意事项](#注意事项)
@@ -15,6 +16,10 @@
15
16
  - [感谢](#感谢)
16
17
  - [License](#License)
17
18
 
19
+ ## 重要通知
20
+ > [!important]
21
+ > `3.2.5-alpha.x` 目前均为测试版本,请不要更新🙅
22
+
18
23
  ## 重新订阅
19
24
  > [!important]
20
25
  >由于版本 `2.0.0-alpha.7` 重构了订阅功能,从 `2.0.0-alpha.7` 以前版本升级到以后版本的需重新订阅
@@ -270,7 +275,20 @@ uid为必填参数,为要推送的UP主的UID,index为可选参数,为要
270
275
  - ver 3.2.3 优化:移除不必要的代码;
271
276
  - ver 3.2.4-alpha.0 优化:选项 `pushImgsInDynamic` 发送多图会以转发消息的格式发送; 新增:选项 `dynamicVideoUrlToBV` 开启后将链接转换为bv号以用作特殊用途;
272
277
  - ver 3.2.4 修复:第一次使用插件时,使用登录指令报错; 插件配置页新增和删除提示信息;
273
- - ver 3.2.5 优化:新增 `DNS` 缓存,以减少DNS错误;
278
+
279
+ > [!important]
280
+ > `3.2.5-alpha.x` 目前均为测试版本,请不要更新🙅
281
+ > - ver 3.2.5-alpha.0 优化:新增 `DNS` 缓存,以减少DNS错误;
282
+ > - ver 3.2.5-alpha.1 测试版本
283
+ > - ver 3.2.5-alpha.2 测试版本
284
+ > - ver 3.2.5-alpha.3 更新依赖版本
285
+ > - ver 3.2.5-alpha.4 测试版本
286
+ > - ver 3.2.5-alpha.5 测试版本
287
+ > - ver 3.2.5-alpha.6 测试版本
288
+ > - ver 3.2.5-alpha.7 测试版本
289
+ > - ver 3.2.5-alpha.8 测试版本
290
+ > - ver 3.2.5-alpha.9 测试版本
291
+ > - ver 3.2.5-alpha.10 测试版本
274
292
 
275
293
  ## 交流群
276
294
 
package/lib/biliAPI.d.ts DELETED
@@ -1,79 +0,0 @@
1
- import { type Awaitable, type Context, Schema, Service } from "koishi";
2
- import { type AxiosInstance } from "axios";
3
- import { CookieJar } from "tough-cookie";
4
- import type { Notifier } from "@koishijs/plugin-notifier";
5
- declare module "koishi" {
6
- interface Context {
7
- ba: BiliAPI;
8
- }
9
- }
10
- declare class BiliAPI extends Service {
11
- static inject: string[];
12
- jar: CookieJar;
13
- client: AxiosInstance;
14
- apiConfig: BiliAPI.Config;
15
- cacheable: any;
16
- loginData: any;
17
- loginNotifier: Notifier;
18
- refreshCookieTimer: () => void;
19
- loginInfoIsLoaded: boolean;
20
- constructor(ctx: Context, config: BiliAPI.Config);
21
- protected start(): Promise<void>;
22
- protected stop(): Awaitable<void>;
23
- getMixinKey: (orig: string) => string;
24
- encWbi(params: {
25
- [key: string]: string | number | object;
26
- }, img_key: string, sub_key: string): string;
27
- getWbi(params: {
28
- [key: string]: string | number | object;
29
- }): Promise<string>;
30
- encrypt(text: string): string;
31
- decrypt(text: string): string;
32
- getTheUserWhoIsLiveStreaming(): Promise<any>;
33
- getLiveRoomInfoStreamKey(roomId: string): Promise<any>;
34
- getLiveRoomInfoByUids(uids: string[]): Promise<any>;
35
- getServerUTCTime(): Promise<number>;
36
- getTimeNow(): Promise<any>;
37
- getAllGroup(): Promise<any>;
38
- removeUserFromGroup(mid: string): Promise<any>;
39
- copyUserToGroup(mid: string, groupId: string): Promise<any>;
40
- getUserSpaceDynamic(mid: string): Promise<any>;
41
- createGroup(tag: string): Promise<any>;
42
- getAllDynamic(): Promise<any>;
43
- hasNewDynamic(updateBaseline: string): Promise<any>;
44
- follow(fid: string): Promise<any>;
45
- getRelationGroupDetail(tagid: string): Promise<any>;
46
- getCookieInfo(refreshToken: string): Promise<any>;
47
- getUserInfo(mid: string): Promise<any>;
48
- getWbiKeys(): Promise<{
49
- img_key: any;
50
- sub_key: any;
51
- }>;
52
- getMyselfInfo(): Promise<any>;
53
- getLoginQRCode(): Promise<any>;
54
- getLoginStatus(qrcodeKey: string): Promise<any>;
55
- getLiveRoomInfo(roomId: string): Promise<any>;
56
- getMasterInfo(mid: string): Promise<any>;
57
- disposeNotifier(): void;
58
- getRandomUserAgent(): string;
59
- createNewClient(): void;
60
- getCookies(): string;
61
- getCookiesForHeader(): Promise<string>;
62
- getLoginInfoIsLoaded(): boolean;
63
- getLoginInfoFromDB(): Promise<{
64
- cookies: any;
65
- refresh_token: string;
66
- }>;
67
- getCSRF(): any;
68
- loadCookiesFromDatabase(): Promise<void>;
69
- enableRefreshCookiesDetect(): void;
70
- checkIfTokenNeedRefresh(refreshToken: string, csrf: string, times?: number): Promise<void>;
71
- }
72
- declare namespace BiliAPI {
73
- interface Config {
74
- userAgent: string;
75
- key: string;
76
- }
77
- const Config: Schema<Config>;
78
- }
79
- export default BiliAPI;