@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 +1 -2
- package/package.json +4 -3
- package/readme.md +9 -0
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.
|
|
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