ai 5.0.0-alpha.1 → 5.0.0-alpha.2

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
@@ -1207,14 +1207,7 @@ function processUIMessageStream({
1207
1207
  (partArg) => part.type === partArg.type && part.id === partArg.id
1208
1208
  ) : void 0;
1209
1209
  if (existingPart != null) {
1210
- if (isObject(existingPart.data) && isObject(part.data)) {
1211
- existingPart.value = mergeObjects(
1212
- existingPart.data,
1213
- part.data
1214
- );
1215
- } else {
1216
- existingPart.data = part.data;
1217
- }
1210
+ existingPart.data = isObject(existingPart.data) && isObject(part.data) ? mergeObjects(existingPart.data, part.data) : part.data;
1218
1211
  } else {
1219
1212
  state.message.parts.push(part);
1220
1213
  }