@jmcomic/jmcomic 2.6.19-fix → 2.6.19-fix.1

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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,8 @@
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)
3
6
 
4
7
  // 找 binary
5
8
  function getBinary() {
@@ -30,7 +33,6 @@ function getBinary() {
30
33
 
31
34
  const bin = getBinary()
32
35
 
33
- // 核心执行函数(API)
34
36
  export function run(input) {
35
37
  const argv = Array.isArray(input)
36
38
  ? input
@@ -41,7 +43,6 @@ export function run(input) {
41
43
  })
42
44
  }
43
45
 
44
- // 给用户用的 API
45
46
  export function jmcomic(input) {
46
47
  return run(input)
47
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jmcomic/jmcomic",
3
- "version": "2.6.19-fix",
3
+ "version": "2.6.19-fix.1",
4
4
  "keywords": [
5
5
  "JMComic",
6
6
  "禁漫",