@ai-sdk/provider-utils 2.2.2 → 2.2.3

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.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 28be004: chore (provider-utils): add error method to TestStreamController
8
+
3
9
  ## 2.2.2
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.2",
3
+ "version": "2.2.3",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -153,6 +153,7 @@ declare class TestResponseController {
153
153
  constructor();
154
154
  get stream(): ReadableStream;
155
155
  write(chunk: string): Promise<void>;
156
+ error(error: Error): Promise<void>;
156
157
  close(): Promise<void>;
157
158
  }
158
159
 
@@ -153,6 +153,7 @@ declare class TestResponseController {
153
153
  constructor();
154
154
  get stream(): ReadableStream;
155
155
  write(chunk: string): Promise<void>;
156
+ error(error: Error): Promise<void>;
156
157
  close(): Promise<void>;
157
158
  }
158
159
 
@@ -18928,6 +18928,9 @@ var TestResponseController = class {
18928
18928
  async write(chunk) {
18929
18929
  await this.writer.write(chunk);
18930
18930
  }
18931
+ async error(error3) {
18932
+ await this.writer.abort(error3);
18933
+ }
18931
18934
  async close() {
18932
18935
  await this.writer.close();
18933
18936
  }