@langfuse/client 4.6.1 → 5.0.0-beta.0

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.cjs CHANGED
@@ -1389,7 +1389,10 @@ var PromptManager = class {
1389
1389
  name: item.name
1390
1390
  };
1391
1391
  } else {
1392
- return { type: "chatmessage" /* ChatMessage */, ...item };
1392
+ return {
1393
+ ...item,
1394
+ type: "chatmessage" /* ChatMessage */
1395
+ };
1393
1396
  }
1394
1397
  })
1395
1398
  } : {
@@ -1531,8 +1534,8 @@ var PromptManager = class {
1531
1534
  ...sharedFallbackParams,
1532
1535
  type: "chat",
1533
1536
  prompt: options.fallback.map((msg) => ({
1534
- type: "chatmessage" /* ChatMessage */,
1535
- ...msg
1537
+ ...msg,
1538
+ type: "chatmessage" /* ChatMessage */
1536
1539
  }))
1537
1540
  },
1538
1541
  true