ai 5.0.147 → 5.0.149

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
@@ -689,7 +689,7 @@ import {
689
689
  } from "@ai-sdk/provider-utils";
690
690
 
691
691
  // src/version.ts
692
- var VERSION = true ? "5.0.147" : "0.0.0-test";
692
+ var VERSION = true ? "5.0.149" : "0.0.0-test";
693
693
 
694
694
  // src/util/download/download.ts
695
695
  var download = async ({
@@ -709,6 +709,9 @@ var download = async ({
709
709
  ),
710
710
  signal: abortSignal
711
711
  });
712
+ if (response.redirected) {
713
+ validateDownloadUrl(response.url);
714
+ }
712
715
  if (!response.ok) {
713
716
  throw new DownloadError({
714
717
  url: urlText,