@ikenxuan/amagi 1.5.6 → 1.5.7

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.
@@ -4,7 +4,7 @@ declare class BiLiBiLiAPI {
4
4
  视频详细信息(data: BilibiliAPIParams['VideoInfoParams']): string;
5
5
  视频流信息(data: BilibiliAPIParams['VideoStreamParams']): string;
6
6
  /** type参数详见https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#评论区类型代码 */
7
- 评论区明细(data: BilibiliAPIParams['CommentParams']): string;
7
+ 评论区明细(data?: BilibiliAPIParams['CommentParams']): string;
8
8
  表情列表(): string;
9
9
  番剧明细(data: BilibiliAPIParams['BangumiInfoParams']): string;
10
10
  番剧视频流信息(data: BilibiliAPIParams['BangumiStreamParams']): string;
@@ -9,8 +9,8 @@ class BiLiBiLiAPI {
9
9
  return `https://api.bilibili.com/x/player/playurl?avid=${data.avid}&cid=${data.cid}`;
10
10
  }
11
11
  /** type参数详见https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#评论区类型代码 */
12
- 评论区明细(data) {
13
- return `https://api.bilibili.com/x/v2/reply?sort=1&ps=20&type=${data.type}&oid=${data.oid}`;
12
+ 评论区明细(data = { number: 20 }) {
13
+ return `https://api.bilibili.com/x/v2/reply?sort=1&ps=${data.number}&type=${data.type}&oid=${data.oid}`;
14
14
  }
15
15
  表情列表() {
16
16
  return 'https://api.bilibili.com/x/emote/user/panel/web?business=reply&web_location=0.0';
@@ -12,9 +12,11 @@ type VideoStreamParams = {
12
12
  };
13
13
  type CommentParams = {
14
14
  /** 评论区类型,type参数详见https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/comment/readme.md#评论区类型代码 */
15
- type: number | string;
15
+ type?: number | string;
16
16
  /** 稿件ID,也就是AVID */
17
- oid: number | string;
17
+ oid?: number | string;
18
+ /** 获取的评论数量,默认最高20 */
19
+ number?: number;
18
20
  };
19
21
  type BangumiInfoParams = {
20
22
  /** 稿件ID是否为epid */
@@ -1,6 +1,7 @@
1
1
  type WorkParams = {
2
2
  /** 视频ID */
3
3
  aweme_id: string;
4
+ /** 获取的评论数量 */
4
5
  number?: number | string;
5
6
  };
6
7
  type CommentParams = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikenxuan/amagi",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",