koishi-plugin-xsxn-vue3 1.0.11 → 1.0.13

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/lib/index.d.ts CHANGED
@@ -3,6 +3,11 @@ export declare const name = "xsxn_vue3";
3
3
  export declare const inject: {
4
4
  required: string[];
5
5
  };
6
+ export interface CronTimeMessagesItem {
7
+ cronTime: string;
8
+ message: string;
9
+ groupID: string;
10
+ }
6
11
  export interface Config {
7
12
  url: string;
8
13
  notice: string;
package/lib/index.js CHANGED
@@ -126,7 +126,11 @@ async function apply(ctx, cfg) {
126
126
  await page.close();
127
127
  return `没有找到`;
128
128
  }
129
- const screenshot = await element.screenshot({ type: "png" });
129
+ const screenshot = await element.screenshot({
130
+ type: "jpeg",
131
+ encoding: "binary",
132
+ quality: 75
133
+ });
130
134
  await page.close();
131
135
  return import_koishi.h.image(screenshot, "image/png");
132
136
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-xsxn-vue3",
3
3
  "description": "查询工具与后端分离,无服务端,自用版本",
4
- "version": "1.0.11",
4
+ "version": "1.0.13",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -17,11 +17,14 @@
17
17
  ],
18
18
  "service": {
19
19
  "required": [
20
- "puppeteer"
20
+ "puppeteer",
21
+ "cron"
21
22
  ]
22
23
  },
23
- "devDependencies": {},
24
24
  "peerDependencies": {
25
- "koishi": "^4.18.0"
25
+ "koishi": "^4.18.8"
26
+ },
27
+ "dependencies": {
28
+ "koishi-plugin-cron": "^3.1.0"
26
29
  }
27
30
  }
package/readme.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # koishi-plugin-xsxn-vue3
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/koishi-plugin-xsxn-vue3?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-xsxn-vue3)
4
+ - ### 1.0.13
5
+ - 压缩截图质量
4
6
  - ### 1.0.11
5
7
  - 喜好指令修改为-卡池- 可搜索建筑,控制同伴搜索条件
6
8
  - ### 1.0.7