@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.
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +14 -12
- package/dist/index.d.ts +14 -12
- package/dist/index.js +49 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -16
- package/dist/index.mjs.map +1 -1
- 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 +3 -2
package/dist/test/index.mjs
CHANGED
@@ -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
|
{
|