formatferry 1.0.38 → 1.0.39
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/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -64297,7 +64297,7 @@ async function binaryToMarkdown(buffer, type, format) {
|
|
|
64297
64297
|
preserveLists: true,
|
|
64298
64298
|
customRules: []
|
|
64299
64299
|
});
|
|
64300
|
-
return { markdown: converted.markdown, warnings: result.warnings
|
|
64300
|
+
return { markdown: converted.markdown, warnings: result.warnings };
|
|
64301
64301
|
}
|
|
64302
64302
|
case "pdf": {
|
|
64303
64303
|
const result = await pdfAdapter.parseToText(toArrayBuffer());
|
|
@@ -64320,7 +64320,7 @@ async function binaryToMarkdown(buffer, type, format) {
|
|
|
64320
64320
|
preserveLists: true,
|
|
64321
64321
|
customRules: []
|
|
64322
64322
|
});
|
|
64323
|
-
return { markdown: converted.markdown, warnings: result.warnings
|
|
64323
|
+
return { markdown: converted.markdown, warnings: result.warnings };
|
|
64324
64324
|
}
|
|
64325
64325
|
case "json": {
|
|
64326
64326
|
const result = await dataAdapter.parseJsonToHtml(toArrayBuffer());
|
|
@@ -64331,7 +64331,7 @@ async function binaryToMarkdown(buffer, type, format) {
|
|
|
64331
64331
|
preserveLists: true,
|
|
64332
64332
|
customRules: []
|
|
64333
64333
|
});
|
|
64334
|
-
return { markdown: converted.markdown, warnings: result.warnings
|
|
64334
|
+
return { markdown: converted.markdown, warnings: result.warnings };
|
|
64335
64335
|
}
|
|
64336
64336
|
case "xml": {
|
|
64337
64337
|
const result = await dataAdapter.parseXmlToHtml(toArrayBuffer());
|
|
@@ -64342,7 +64342,7 @@ async function binaryToMarkdown(buffer, type, format) {
|
|
|
64342
64342
|
preserveLists: true,
|
|
64343
64343
|
customRules: []
|
|
64344
64344
|
});
|
|
64345
|
-
return { markdown: converted.markdown, warnings: result.warnings
|
|
64345
|
+
return { markdown: converted.markdown, warnings: result.warnings };
|
|
64346
64346
|
}
|
|
64347
64347
|
case "pptx": {
|
|
64348
64348
|
const result = await pptxAdapter.parseToHtml(toArrayBuffer());
|
|
@@ -64353,7 +64353,7 @@ async function binaryToMarkdown(buffer, type, format) {
|
|
|
64353
64353
|
preserveLists: true,
|
|
64354
64354
|
customRules: []
|
|
64355
64355
|
});
|
|
64356
|
-
return { markdown: converted.markdown, warnings: result.warnings
|
|
64356
|
+
return { markdown: converted.markdown, warnings: result.warnings };
|
|
64357
64357
|
}
|
|
64358
64358
|
}
|
|
64359
64359
|
}
|
|
@@ -64909,8 +64909,8 @@ import { readFileSync as readFileSync5 } from "fs";
|
|
|
64909
64909
|
import { resolve, dirname as dirname3 } from "path";
|
|
64910
64910
|
import { fileURLToPath } from "url";
|
|
64911
64911
|
var getVersion = () => {
|
|
64912
|
-
if ("1.0.
|
|
64913
|
-
return "1.0.
|
|
64912
|
+
if ("1.0.39") {
|
|
64913
|
+
return "1.0.39";
|
|
64914
64914
|
}
|
|
64915
64915
|
try {
|
|
64916
64916
|
const __dirname2 = dirname3(fileURLToPath(import.meta.url));
|