ai 4.2.10 → 4.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -240,14 +240,11 @@ var DownloadError = class extends AISDKError {
240
240
  _a = symbol;
241
241
 
242
242
  // util/download.ts
243
- async function download({
244
- url,
245
- fetchImplementation = fetch
246
- }) {
243
+ async function download({ url }) {
247
244
  var _a9;
248
245
  const urlText = url.toString();
249
246
  try {
250
- const response = await fetchImplementation(urlText);
247
+ const response = await fetch(urlText);
251
248
  if (!response.ok) {
252
249
  throw new DownloadError({
253
250
  url: urlText,