@ai-sdk/provider-utils 2.2.3 → 2.2.5

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.
@@ -18750,6 +18750,24 @@ var TestServerCall2 = class {
18750
18750
  get requestBody() {
18751
18751
  return this.request.text().then(JSON.parse);
18752
18752
  }
18753
+ get requestBodyMultipart() {
18754
+ var _a4;
18755
+ return ((_a4 = this.request.headers.get("content-type")) == null ? void 0 : _a4.startsWith(
18756
+ "multipart/form-data"
18757
+ )) ? (
18758
+ // For multipart/form-data, return the form data entries as an object
18759
+ this.request.formData().then((formData) => {
18760
+ const entries = {};
18761
+ formData.forEach((value, key) => {
18762
+ entries[key] = value;
18763
+ });
18764
+ return entries;
18765
+ })
18766
+ ) : null;
18767
+ }
18768
+ get requestCredentials() {
18769
+ return this.request.credentials;
18770
+ }
18753
18771
  get requestHeaders() {
18754
18772
  const requestHeaders = this.request.headers;
18755
18773
  const headersObject = {};