@ai-sdk/provider-utils 3.0.0-canary.17 → 3.0.0-canary.19

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.
@@ -18531,6 +18531,13 @@ function createTestServer(routes) {
18531
18531
  }
18532
18532
  );
18533
18533
  case "controlled-stream": {
18534
+ if (request.signal) {
18535
+ request.signal.addEventListener("abort", () => {
18536
+ response.controller.error(
18537
+ new DOMException("Aborted", "AbortError")
18538
+ );
18539
+ });
18540
+ }
18534
18541
  return new HttpResponse(
18535
18542
  response.controller.stream.pipeThrough(new TextEncoderStream()),
18536
18543
  {