ai 6.0.200 → 6.0.201

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
@@ -1144,7 +1144,7 @@ import {
1144
1144
  } from "@ai-sdk/provider-utils";
1145
1145
 
1146
1146
  // src/version.ts
1147
- var VERSION = true ? "6.0.200" : "0.0.0-test";
1147
+ var VERSION = true ? "6.0.201" : "0.0.0-test";
1148
1148
 
1149
1149
  // src/util/download/download.ts
1150
1150
  var download = async ({
@@ -9977,13 +9977,15 @@ var arrayOutputStrategy = (schema) => {
9977
9977
  };
9978
9978
  }
9979
9979
  const inputArray = value.elements;
9980
+ const resultArray = [];
9980
9981
  for (const element of inputArray) {
9981
9982
  const result = await safeValidateTypes4({ value: element, schema });
9982
9983
  if (!result.success) {
9983
9984
  return result;
9984
9985
  }
9986
+ resultArray.push(result.value);
9985
9987
  }
9986
- return { success: true, value: inputArray };
9988
+ return { success: true, value: resultArray };
9987
9989
  },
9988
9990
  createElementStream(originalStream) {
9989
9991
  let publishedElements = 0;