@ai-sdk/provider-utils 4.0.44 → 4.0.45

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 4.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - b2a4d5a: Preserve streamed download size-limit errors when response cancellation fails.
8
+
3
9
  ## 4.0.44
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -685,6 +685,7 @@ async function readResponseWithSizeLimit({
685
685
  } finally {
686
686
  try {
687
687
  await reader.cancel();
688
+ } catch (e) {
688
689
  } finally {
689
690
  reader.releaseLock();
690
691
  }
@@ -891,7 +892,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
891
892
  }
892
893
 
893
894
  // src/version.ts
894
- var VERSION = true ? "4.0.44" : "0.0.0-test";
895
+ var VERSION = true ? "4.0.45" : "0.0.0-test";
895
896
 
896
897
  // src/get-from-api.ts
897
898
  var getOriginalFetch = () => globalThis.fetch;