@ai-sdk/provider-utils 4.0.21 → 4.0.22

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
@@ -299,10 +299,13 @@ function validateDownloadUrl(url) {
299
299
  message: `Invalid URL: ${url}`
300
300
  });
301
301
  }
302
+ if (parsed.protocol === "data:") {
303
+ return;
304
+ }
302
305
  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
303
306
  throw new DownloadError({
304
307
  url,
305
- message: `URL scheme must be http or https, got ${parsed.protocol}`
308
+ message: `URL scheme must be http, https, or data, got ${parsed.protocol}`
306
309
  });
307
310
  }
308
311
  const hostname = parsed.hostname;
@@ -579,7 +582,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
579
582
  }
580
583
 
581
584
  // src/version.ts
582
- var VERSION = true ? "4.0.21" : "0.0.0-test";
585
+ var VERSION = true ? "4.0.22" : "0.0.0-test";
583
586
 
584
587
  // src/get-from-api.ts
585
588
  var getOriginalFetch = () => globalThis.fetch;