@ai-sdk/provider-utils 5.0.21 → 5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/provider-utils
2
2
 
3
+ ## 5.0.22
4
+
5
+ ### Patch Changes
6
+
7
+ - 2b60826: feat(provider-utils): support Blob request bodies in postToApi
8
+
3
9
  ## 5.0.21
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1369,7 +1369,7 @@ declare const postToApi: <T>({ url, headers, body, successfulResponseHandler, fa
1369
1369
  url: string;
1370
1370
  headers?: Record<string, string | undefined>;
1371
1371
  body: {
1372
- content: string | FormData | Uint8Array;
1372
+ content: string | FormData | Uint8Array | Blob;
1373
1373
  values: unknown;
1374
1374
  };
1375
1375
  failedResponseHandler: ResponseHandler<Error>;
package/dist/index.js CHANGED
@@ -1325,7 +1325,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
1325
1325
  }
1326
1326
 
1327
1327
  // src/version.ts
1328
- var VERSION = true ? "5.0.21" : "0.0.0-test";
1328
+ var VERSION = true ? "5.0.22" : "0.0.0-test";
1329
1329
 
1330
1330
  // src/get-from-api.ts
1331
1331
  var getOriginalFetch = () => globalThis.fetch;