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.
@@ -152,7 +152,7 @@ function detectMediaType({
152
152
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
153
153
 
154
154
  // src/version.ts
155
- var VERSION = true ? "6.0.200" : "0.0.0-test";
155
+ var VERSION = true ? "6.0.201" : "0.0.0-test";
156
156
 
157
157
  // src/util/download/download.ts
158
158
  var download = async ({
@@ -131,7 +131,7 @@ import {
131
131
  } from "@ai-sdk/provider-utils";
132
132
 
133
133
  // src/version.ts
134
- var VERSION = true ? "6.0.200" : "0.0.0-test";
134
+ var VERSION = true ? "6.0.201" : "0.0.0-test";
135
135
 
136
136
  // src/util/download/download.ts
137
137
  var download = async ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "6.0.200",
3
+ "version": "6.0.201",
4
4
  "description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -45,9 +45,9 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@opentelemetry/api": "^1.9.0",
48
+ "@ai-sdk/gateway": "3.0.127",
48
49
  "@ai-sdk/provider": "3.0.10",
49
- "@ai-sdk/provider-utils": "4.0.27",
50
- "@ai-sdk/gateway": "3.0.127"
50
+ "@ai-sdk/provider-utils": "4.0.27"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@edge-runtime/vm": "^5.0.0",
@@ -239,6 +239,7 @@ const arrayOutputStrategy = <ELEMENT>(
239
239
  }
240
240
 
241
241
  const inputArray = value.elements as Array<JSONObject>;
242
+ const resultArray: Array<ELEMENT> = [];
242
243
 
243
244
  // check that each element in the array is of the correct type:
244
245
  for (const element of inputArray) {
@@ -246,9 +247,10 @@ const arrayOutputStrategy = <ELEMENT>(
246
247
  if (!result.success) {
247
248
  return result;
248
249
  }
250
+ resultArray.push(result.value);
249
251
  }
250
252
 
251
- return { success: true, value: inputArray as Array<ELEMENT> };
253
+ return { success: true, value: resultArray };
252
254
  },
253
255
 
254
256
  createElementStream(