@kreuzberg/node 4.6.3 → 4.7.1

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.mjs CHANGED
@@ -506,6 +506,7 @@ function convertChunk(rawChunk) {
506
506
  if (!rawChunk || typeof rawChunk !== "object") {
507
507
  return {
508
508
  content: "",
509
+ chunkType: null,
509
510
  metadata: {
510
511
  byteStart: 0,
511
512
  byteEnd: 0,
@@ -520,6 +521,7 @@ function convertChunk(rawChunk) {
520
521
  const metadata = chunk["metadata"] ?? {};
521
522
  return {
522
523
  content: chunk["content"] ?? "",
524
+ chunkType: chunk["chunk_type"] ?? chunk["chunkType"] ?? null,
523
525
  embedding: chunk["embedding"] ?? null,
524
526
  metadata: {
525
527
  byteStart: metadata["byte_start"] ?? metadata["charStart"] ?? 0,
@@ -1153,7 +1155,7 @@ function getEmbeddingPreset(name) {
1153
1155
  }
1154
1156
 
1155
1157
  // typescript/index.ts
1156
- var __version__ = "4.6.3";
1158
+ var __version__ = "4.7.1";
1157
1159
  export {
1158
1160
  CacheError,
1159
1161
  ErrorCode,