@ai-sdk/provider-utils 2.2.2 → 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 +12 -0
- package/package.json +1 -1
- package/test/dist/index.d.mts +2 -0
- package/test/dist/index.d.ts +2 -0
- package/test/dist/index.js +6 -0
- package/test/dist/index.js.map +1 -1
- package/test/dist/index.mjs +6 -0
- package/test/dist/index.mjs.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
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
|
+
|
9
|
+
## 2.2.3
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 28be004: chore (provider-utils): add error method to TestStreamController
|
14
|
+
|
3
15
|
## 2.2.2
|
4
16
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
package/test/dist/index.d.mts
CHANGED
@@ -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;
|
@@ -153,6 +154,7 @@ declare class TestResponseController {
|
|
153
154
|
constructor();
|
154
155
|
get stream(): ReadableStream;
|
155
156
|
write(chunk: string): Promise<void>;
|
157
|
+
error(error: Error): Promise<void>;
|
156
158
|
close(): Promise<void>;
|
157
159
|
}
|
158
160
|
|
package/test/dist/index.d.ts
CHANGED
@@ -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;
|
@@ -153,6 +154,7 @@ declare class TestResponseController {
|
|
153
154
|
constructor();
|
154
155
|
get stream(): ReadableStream;
|
155
156
|
write(chunk: string): Promise<void>;
|
157
|
+
error(error: Error): Promise<void>;
|
156
158
|
close(): Promise<void>;
|
157
159
|
}
|
158
160
|
|
package/test/dist/index.js
CHANGED
@@ -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 = {};
|
@@ -18928,6 +18931,9 @@ var TestResponseController = class {
|
|
18928
18931
|
async write(chunk) {
|
18929
18932
|
await this.writer.write(chunk);
|
18930
18933
|
}
|
18934
|
+
async error(error3) {
|
18935
|
+
await this.writer.abort(error3);
|
18936
|
+
}
|
18931
18937
|
async close() {
|
18932
18938
|
await this.writer.close();
|
18933
18939
|
}
|