ai 5.0.145 → 5.0.147

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
@@ -680,7 +680,8 @@ function detectMediaType({
680
680
  // src/util/download/download.ts
681
681
  import {
682
682
  readResponseWithSizeLimit,
683
- DEFAULT_MAX_DOWNLOAD_SIZE
683
+ DEFAULT_MAX_DOWNLOAD_SIZE,
684
+ validateDownloadUrl
684
685
  } from "@ai-sdk/provider-utils";
685
686
  import {
686
687
  withUserAgentSuffix,
@@ -688,7 +689,7 @@ import {
688
689
  } from "@ai-sdk/provider-utils";
689
690
 
690
691
  // src/version.ts
691
- var VERSION = true ? "5.0.145" : "0.0.0-test";
692
+ var VERSION = true ? "5.0.147" : "0.0.0-test";
692
693
 
693
694
  // src/util/download/download.ts
694
695
  var download = async ({
@@ -698,6 +699,7 @@ var download = async ({
698
699
  }) => {
699
700
  var _a16;
700
701
  const urlText = url.toString();
702
+ validateDownloadUrl(urlText);
701
703
  try {
702
704
  const response = await fetch(urlText, {
703
705
  headers: withUserAgentSuffix(