@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 CHANGED
@@ -22,7 +22,7 @@
22
22
  <img src="https://img.shields.io/maven-central/v/dev.kreuzberg/kreuzberg?label=Java&color=007ec6" alt="Java">
23
23
  </a>
24
24
  <a href="https://github.com/kreuzberg-dev/kreuzberg/releases">
25
- <img src="https://img.shields.io/github/v/tag/kreuzberg-dev/kreuzberg?label=Go&color=007ec6&filter=v4.3.6" alt="Go">
25
+ <img src="https://img.shields.io/github/v/tag/kreuzberg-dev/kreuzberg?label=Go&color=007ec6&filter=v4.3.8" alt="Go">
26
26
  </a>
27
27
  <a href="https://www.nuget.org/packages/Kreuzberg/">
28
28
  <img src="https://img.shields.io/nuget/v/Kreuzberg?label=C%23&color=007ec6" alt="C#">
package/dist/index.d.mts CHANGED
@@ -1191,6 +1191,6 @@ declare function __resetBindingForTests(): void;
1191
1191
  * @module @kreuzberg/node
1192
1192
  */
1193
1193
 
1194
- declare const __version__ = "4.3.6";
1194
+ declare const __version__ = "4.3.8";
1195
1195
 
1196
1196
  export { type EmbeddingPreset, ErrorClassification, ExtractionConfig, ExtractionResult, OcrBackendProtocol, PanicContext, PostProcessorProtocol, ValidatorProtocol, WorkerPool, WorkerPoolStats, __resetBindingForTests, __setBindingForTests, __version__, batchExtractBytes, batchExtractBytesSync, batchExtractFiles, batchExtractFilesInWorker, batchExtractFilesSync, classifyError, clearDocumentExtractors, clearOcrBackends, clearPostProcessors, clearValidators, closeWorkerPool, createWorkerPool, detectMimeType, detectMimeTypeFromPath, extractBytes, extractBytesSync, extractFile, extractFileInWorker, extractFileSync, getEmbeddingPreset, getErrorCodeDescription, getErrorCodeName, getExtensionsForMime, getLastErrorCode, getLastPanicContext, getWorkerPoolStats, listDocumentExtractors, listEmbeddingPresets, listOcrBackends, listPostProcessors, listValidators, loadConfigFile, loadConfigFromPath, registerOcrBackend, registerPostProcessor, registerValidator, unregisterDocumentExtractor, unregisterOcrBackend, unregisterPostProcessor, unregisterValidator, validateMimeType };
package/dist/index.d.ts CHANGED
@@ -1191,6 +1191,6 @@ declare function __resetBindingForTests(): void;
1191
1191
  * @module @kreuzberg/node
1192
1192
  */
1193
1193
 
1194
- declare const __version__ = "4.3.6";
1194
+ declare const __version__ = "4.3.8";
1195
1195
 
1196
1196
  export { type EmbeddingPreset, ErrorClassification, ExtractionConfig, ExtractionResult, OcrBackendProtocol, PanicContext, PostProcessorProtocol, ValidatorProtocol, WorkerPool, WorkerPoolStats, __resetBindingForTests, __setBindingForTests, __version__, batchExtractBytes, batchExtractBytesSync, batchExtractFiles, batchExtractFilesInWorker, batchExtractFilesSync, classifyError, clearDocumentExtractors, clearOcrBackends, clearPostProcessors, clearValidators, closeWorkerPool, createWorkerPool, detectMimeType, detectMimeTypeFromPath, extractBytes, extractBytesSync, extractFile, extractFileInWorker, extractFileSync, getEmbeddingPreset, getErrorCodeDescription, getErrorCodeName, getExtensionsForMime, getLastErrorCode, getLastPanicContext, getWorkerPoolStats, listDocumentExtractors, listEmbeddingPresets, listOcrBackends, listPostProcessors, listValidators, loadConfigFile, loadConfigFromPath, registerOcrBackend, registerPostProcessor, registerValidator, unregisterDocumentExtractor, unregisterOcrBackend, unregisterPostProcessor, unregisterValidator, validateMimeType };
package/dist/index.js CHANGED
@@ -391,6 +391,10 @@ function normalizePdfConfig(pdf) {
391
391
  setIfDefined(normalized, "extractImages", pdf.extractImages);
392
392
  setIfDefined(normalized, "passwords", pdf.passwords);
393
393
  setIfDefined(normalized, "extractMetadata", pdf.extractMetadata);
394
+ setIfDefined(normalized, "hierarchy", pdf.hierarchy);
395
+ setIfDefined(normalized, "extractAnnotations", pdf.extractAnnotations);
396
+ setIfDefined(normalized, "topMarginFraction", pdf.topMarginFraction);
397
+ setIfDefined(normalized, "bottomMarginFraction", pdf.bottomMarginFraction);
394
398
  return normalized;
395
399
  }
396
400
  function normalizeTokenReductionConfig(tokenReduction) {
@@ -758,6 +762,10 @@ function convertResult(rawResult) {
758
762
  if (Array.isArray(processingWarningsData)) {
759
763
  returnObj.processingWarnings = processingWarningsData;
760
764
  }
765
+ const annotationsData = result["annotations"];
766
+ if (Array.isArray(annotationsData)) {
767
+ returnObj.annotations = annotationsData;
768
+ }
761
769
  return returnObj;
762
770
  }
763
771
 
@@ -1189,7 +1197,7 @@ function getEmbeddingPreset(name) {
1189
1197
  }
1190
1198
 
1191
1199
  // typescript/index.ts
1192
- var __version__ = "4.3.6";
1200
+ var __version__ = "4.3.8";
1193
1201
  // Annotate the CommonJS export names for ESM import in node:
1194
1202
  0 && (module.exports = {
1195
1203
  CacheError,