@ai-sdk/provider-utils 2.2.3 → 2.2.4

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
+ ## 2.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 2c19b9a: feat(provider-utils): add TestServerCall#requestCredentials
8
+
3
9
  ## 2.2.3
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider-utils",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -134,6 +134,7 @@ declare class TestServerCall {
134
134
  private request;
135
135
  constructor(request: Request);
136
136
  get requestBody(): Promise<any>;
137
+ get requestCredentials(): RequestCredentials;
137
138
  get requestHeaders(): Record<string, string>;
138
139
  get requestUrlSearchParams(): URLSearchParams;
139
140
  get requestUrl(): string;
@@ -134,6 +134,7 @@ declare class TestServerCall {
134
134
  private request;
135
135
  constructor(request: Request);
136
136
  get requestBody(): Promise<any>;
137
+ get requestCredentials(): RequestCredentials;
137
138
  get requestHeaders(): Record<string, string>;
138
139
  get requestUrlSearchParams(): URLSearchParams;
139
140
  get requestUrl(): string;
@@ -18804,6 +18804,9 @@ var TestServerCall2 = class {
18804
18804
  get requestBody() {
18805
18805
  return this.request.text().then(JSON.parse);
18806
18806
  }
18807
+ get requestCredentials() {
18808
+ return this.request.credentials;
18809
+ }
18807
18810
  get requestHeaders() {
18808
18811
  const requestHeaders = this.request.headers;
18809
18812
  const headersObject = {};