@wahaha216/koishi-plugin-jmcomic 0.0.1 → 0.0.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/lib/index.js CHANGED
@@ -1035,7 +1035,6 @@ var JMAppClient = class _JMAppClient extends JMClientAbstract {
1035
1035
  var name = "jmcomic";
1036
1036
  var Config = import_koishi.Schema.intersect([
1037
1037
  import_koishi.Schema.object({
1038
- // url: Schema.string().required().default("18comic-mygo.vip"),
1039
1038
  retryCount: import_koishi.Schema.number().min(1).max(5).default(5),
1040
1039
  sendMethod: import_koishi.Schema.union(["zip", "pdf"]).default("pdf"),
1041
1040
  password: import_koishi.Schema.string(),
@@ -1097,7 +1096,7 @@ async function apply(ctx, config) {
1097
1096
  const photoPath = (0, import_path3.join)(ctx.baseDir, "data", "jmcomic", "photo");
1098
1097
  await deleteFewDaysAgoFolders(photoPath, config.keepDays);
1099
1098
  }, "scheduleFn");
1100
- if (ctx.cron) {
1099
+ if (config.autoDelete && ctx.cron) {
1101
1100
  ctx.cron(config.cron, scheduleFn);
1102
1101
  }
1103
1102
  if (config.autoDelete && config.deleteInStart) scheduleFn();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wahaha216/koishi-plugin-jmcomic",
3
3
  "description": "下载JM本子,无需python。支持pdf、zip加密。",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -23,7 +23,9 @@
23
23
  "plugin"
24
24
  ],
25
25
  "peerDependencies": {
26
- "koishi": "^4.18.0",
26
+ "koishi": "^4.18.0"
27
+ },
28
+ "dependencies": {
27
29
  "archiver": "^7.0.1",
28
30
  "archiver-zip-encrypted": "^2.0.0",
29
31
  "crypto": "^1.0.1",
@@ -32,7 +34,6 @@
32
34
  "sharp": "^0.33.5",
33
35
  "zip-lib": "^1.0.5"
34
36
  },
35
- "dependencies": {},
36
37
  "devDependencies": {
37
38
  "@types/archiver": "^6.0.3",
38
39
  "@types/sharp": "^0.31.1",
package/readme.md CHANGED
@@ -16,6 +16,15 @@ jm photo xxxxxx
16
16
 
17
17
  ## 更新日志
18
18
 
19
+ <details>
20
+ <summary>0.0.3</summary>
21
+ 忘了给自动删除做判断
22
+ </details>
23
+
24
+ <summary>0.0.2</summary>
25
+ 依赖从peerDependencies移动到dependencies
26
+ </details>
27
+
19
28
  <details>
20
29
  <summary>0.0.1</summary>
21
30
  初版