@mastra/deployer 1.56.0-alpha.5 → 1.56.0-alpha.7
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/dist/server/index.js
CHANGED
|
@@ -2451,7 +2451,7 @@ var MastraServer$1 = class extends MastraServer {
|
|
|
2451
2451
|
if (streamFormat === "sse" && route.sseFlushOnConnect) await stream.write(": connected\n\n");
|
|
2452
2452
|
const reader = (result instanceof ReadableStream ? result : result.fullStream).getReader();
|
|
2453
2453
|
stream.onAbort(() => {
|
|
2454
|
-
reader.cancel("request aborted");
|
|
2454
|
+
reader.cancel("request aborted").catch(() => {});
|
|
2455
2455
|
});
|
|
2456
2456
|
try {
|
|
2457
2457
|
while (true) {
|