docxtopdf2 1.1.0 → 1.1.2
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/package.json +1 -1
- package/src/runner.js +4 -4
package/package.json
CHANGED
package/src/runner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawn } from "child_process";
|
|
2
|
-
import { join } from "path";
|
|
2
|
+
import path, { join } from "path";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
|
|
5
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -8,11 +8,11 @@ const __dirname = path.dirname(__filename);
|
|
|
8
8
|
function getBinary() {
|
|
9
9
|
switch (process.platform) {
|
|
10
10
|
case "win32":
|
|
11
|
-
return
|
|
11
|
+
return join(__dirname, "../bin/win32/processor.exe");
|
|
12
12
|
case "linux":
|
|
13
|
-
return
|
|
13
|
+
return join(__dirname, "../bin/linux/processor");
|
|
14
14
|
case "darwin":
|
|
15
|
-
return
|
|
15
|
+
return join(__dirname, "../bin/darwin/processor");
|
|
16
16
|
default:
|
|
17
17
|
throw new Error("Unsupported OS");
|
|
18
18
|
}
|