@clazic/kordoc 2.7.3 → 2.7.4
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/dist/{chunk-WE7MWE73.js → chunk-EJZO6DUI.js} +16 -6
- package/dist/{chunk-WE7MWE73.js.map → chunk-EJZO6DUI.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.cjs +15 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{watch-A4DEF4GF.js → watch-CVSZKJE3.js} +2 -2
- package/package.json +1 -1
- /package/dist/{watch-A4DEF4GF.js.map → watch-CVSZKJE3.js.map} +0 -0
|
@@ -9956,8 +9956,13 @@ async function installForPlatform(pkg, onProgress) {
|
|
|
9956
9956
|
async function installMacOS(pkg, downloadPath) {
|
|
9957
9957
|
const mountPoint = `/Volumes/LibreOffice_${Date.now()}`;
|
|
9958
9958
|
await new Promise((resolve2, reject) => {
|
|
9959
|
-
const
|
|
9960
|
-
child
|
|
9959
|
+
const stderr = [];
|
|
9960
|
+
const child = spawn("hdiutil", ["attach", "-nobrowse", "-noverify", "-mountpoint", mountPoint, downloadPath]);
|
|
9961
|
+
child.stderr?.on("data", (d) => stderr.push(d.toString()));
|
|
9962
|
+
child.on(
|
|
9963
|
+
"close",
|
|
9964
|
+
(code) => code === 0 ? resolve2() : reject(new Error(`dmg \uB9C8\uC6B4\uD2B8 \uC2E4\uD328 (code=${code}): ${stderr.join("").trim()}`))
|
|
9965
|
+
);
|
|
9961
9966
|
});
|
|
9962
9967
|
try {
|
|
9963
9968
|
const appSource = join2(mountPoint, "LibreOffice.app");
|
|
@@ -10085,6 +10090,7 @@ async function resolveSoffice(emitter, autoInstall = true) {
|
|
|
10085
10090
|
|
|
10086
10091
|
// src/convert/libreoffice.ts
|
|
10087
10092
|
var libreConvert = libre.convert;
|
|
10093
|
+
var libreConvertWithOptions = libre.convertWithOptions;
|
|
10088
10094
|
async function convertBuffer(buffer, targetExt, timeoutMs = 6e4, sofficePath) {
|
|
10089
10095
|
return new Promise((resolve2, reject) => {
|
|
10090
10096
|
const timer = setTimeout(() => {
|
|
@@ -10092,8 +10098,7 @@ async function convertBuffer(buffer, targetExt, timeoutMs = 6e4, sofficePath) {
|
|
|
10092
10098
|
new ConvertError("TIMEOUT", `\uBCC0\uD658 \uD0C0\uC784\uC544\uC6C3 (${timeoutMs}ms \uCD08\uACFC)`)
|
|
10093
10099
|
);
|
|
10094
10100
|
}, timeoutMs);
|
|
10095
|
-
const
|
|
10096
|
-
libreConvert(buffer, targetExt, opts, (err, done) => {
|
|
10101
|
+
const cb = (err, done) => {
|
|
10097
10102
|
clearTimeout(timer);
|
|
10098
10103
|
if (err || !done) {
|
|
10099
10104
|
reject(
|
|
@@ -10105,7 +10110,12 @@ async function convertBuffer(buffer, targetExt, timeoutMs = 6e4, sofficePath) {
|
|
|
10105
10110
|
return;
|
|
10106
10111
|
}
|
|
10107
10112
|
resolve2(done);
|
|
10108
|
-
}
|
|
10113
|
+
};
|
|
10114
|
+
if (sofficePath) {
|
|
10115
|
+
libreConvertWithOptions(buffer, targetExt, void 0, { sofficeBinaryPaths: [sofficePath] }, cb);
|
|
10116
|
+
} else {
|
|
10117
|
+
libreConvert(buffer, targetExt, void 0, cb);
|
|
10118
|
+
}
|
|
10109
10119
|
});
|
|
10110
10120
|
}
|
|
10111
10121
|
|
|
@@ -10691,4 +10701,4 @@ export {
|
|
|
10691
10701
|
cfb/cfb.js:
|
|
10692
10702
|
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
|
|
10693
10703
|
*/
|
|
10694
|
-
//# sourceMappingURL=chunk-
|
|
10704
|
+
//# sourceMappingURL=chunk-EJZO6DUI.js.map
|