@jmcomic/jmcomic 2.6.19-fix.1 → 2.6.19-hotfix
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/cli.js +0 -1
- package/index.js +2 -3
- package/package.json +2 -3
package/cli.js
CHANGED
package/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import path from "path"
|
|
2
2
|
import { execFileSync } from "child_process"
|
|
3
|
-
import { createRequire } from "module"
|
|
4
|
-
|
|
5
|
-
const require = createRequire(import.meta.url)
|
|
6
3
|
|
|
7
4
|
// 找 binary
|
|
8
5
|
function getBinary() {
|
|
@@ -33,6 +30,7 @@ function getBinary() {
|
|
|
33
30
|
|
|
34
31
|
const bin = getBinary()
|
|
35
32
|
|
|
33
|
+
// 核心执行函数(API)
|
|
36
34
|
export function run(input) {
|
|
37
35
|
const argv = Array.isArray(input)
|
|
38
36
|
? input
|
|
@@ -43,6 +41,7 @@ export function run(input) {
|
|
|
43
41
|
})
|
|
44
42
|
}
|
|
45
43
|
|
|
44
|
+
// 给用户用的 API
|
|
46
45
|
export function jmcomic(input) {
|
|
47
46
|
return run(input)
|
|
48
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jmcomic/jmcomic",
|
|
3
|
-
"version": "2.6.19-
|
|
3
|
+
"version": "2.6.19-hotfix",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"JMComic",
|
|
6
6
|
"禁漫",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"url": "https://github.com/hect0x7/JMComic-Crawler-Python"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"type": "module",
|
|
20
19
|
"files": [
|
|
21
20
|
"index.js"
|
|
22
21
|
],
|
|
@@ -26,4 +25,4 @@
|
|
|
26
25
|
"@jmcomic/jmcomic-windows-x64": "2.6.19-hotfix",
|
|
27
26
|
"@jmcomic/jmcomic-macos-arm64": "2.6.19-hotfix"
|
|
28
27
|
}
|
|
29
|
-
}
|
|
28
|
+
}
|