@ai-sdk/provider-utils 3.0.0-canary.17 → 3.0.0-canary.18
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 +6 -0
- package/dist/test/index.js +7 -0
- package/dist/test/index.js.map +1 -1
- package/dist/test/index.mjs +7 -0
- package/dist/test/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/test/index.js
CHANGED
@@ -18582,6 +18582,13 @@ function createTestServer(routes) {
|
|
18582
18582
|
}
|
18583
18583
|
);
|
18584
18584
|
case "controlled-stream": {
|
18585
|
+
if (request.signal) {
|
18586
|
+
request.signal.addEventListener("abort", () => {
|
18587
|
+
response.controller.error(
|
18588
|
+
new DOMException("Aborted", "AbortError")
|
18589
|
+
);
|
18590
|
+
});
|
18591
|
+
}
|
18585
18592
|
return new HttpResponse(
|
18586
18593
|
response.controller.stream.pipeThrough(new TextEncoderStream()),
|
18587
18594
|
{
|