@kreuzberg/node 4.3.6 → 4.3.8
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/README.md +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +22 -1
- package/dist/types.d.ts +22 -1
- package/dist/types.js.map +1 -1
- package/index.d.ts +11 -0
- package/index.js +52 -52
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -318,6 +318,10 @@ function normalizePdfConfig(pdf) {
|
|
|
318
318
|
setIfDefined(normalized, "extractImages", pdf.extractImages);
|
|
319
319
|
setIfDefined(normalized, "passwords", pdf.passwords);
|
|
320
320
|
setIfDefined(normalized, "extractMetadata", pdf.extractMetadata);
|
|
321
|
+
setIfDefined(normalized, "hierarchy", pdf.hierarchy);
|
|
322
|
+
setIfDefined(normalized, "extractAnnotations", pdf.extractAnnotations);
|
|
323
|
+
setIfDefined(normalized, "topMarginFraction", pdf.topMarginFraction);
|
|
324
|
+
setIfDefined(normalized, "bottomMarginFraction", pdf.bottomMarginFraction);
|
|
321
325
|
return normalized;
|
|
322
326
|
}
|
|
323
327
|
function normalizeTokenReductionConfig(tokenReduction) {
|
|
@@ -685,6 +689,10 @@ function convertResult(rawResult) {
|
|
|
685
689
|
if (Array.isArray(processingWarningsData)) {
|
|
686
690
|
returnObj.processingWarnings = processingWarningsData;
|
|
687
691
|
}
|
|
692
|
+
const annotationsData = result["annotations"];
|
|
693
|
+
if (Array.isArray(annotationsData)) {
|
|
694
|
+
returnObj.annotations = annotationsData;
|
|
695
|
+
}
|
|
688
696
|
return returnObj;
|
|
689
697
|
}
|
|
690
698
|
|
|
@@ -1116,7 +1124,7 @@ function getEmbeddingPreset(name) {
|
|
|
1116
1124
|
}
|
|
1117
1125
|
|
|
1118
1126
|
// typescript/index.ts
|
|
1119
|
-
var __version__ = "4.3.
|
|
1127
|
+
var __version__ = "4.3.8";
|
|
1120
1128
|
export {
|
|
1121
1129
|
CacheError,
|
|
1122
1130
|
ErrorCode,
|