ai 5.0.198 → 5.0.199

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
@@ -687,7 +687,7 @@ import {
687
687
  } from "@ai-sdk/provider-utils";
688
688
 
689
689
  // src/version.ts
690
- var VERSION = true ? "5.0.198" : "0.0.0-test";
690
+ var VERSION = true ? "5.0.199" : "0.0.0-test";
691
691
 
692
692
  // src/util/download/download.ts
693
693
  var download = async ({
@@ -6688,13 +6688,15 @@ var arrayOutputStrategy = (schema) => {
6688
6688
  };
6689
6689
  }
6690
6690
  const inputArray = value.elements;
6691
+ const resultArray = [];
6691
6692
  for (const element of inputArray) {
6692
6693
  const result = await safeValidateTypes3({ value: element, schema });
6693
6694
  if (!result.success) {
6694
6695
  return result;
6695
6696
  }
6697
+ resultArray.push(result.value);
6696
6698
  }
6697
- return { success: true, value: inputArray };
6699
+ return { success: true, value: resultArray };
6698
6700
  },
6699
6701
  createElementStream(originalStream) {
6700
6702
  let publishedElements = 0;