@nestjs/core 11.2.0 → 11.2.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/core",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.1",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@core)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"uid": "2.0.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@nestjs/common": "11.2.
|
|
31
|
+
"@nestjs/common": "11.2.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@nestjs/common": "^11.0.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"optional": true
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4535f43b4890c9c69c57c5a5a8b49f62c83d1ed6"
|
|
53
53
|
}
|
|
@@ -52,6 +52,11 @@ class RouterResponseController {
|
|
|
52
52
|
async sse(result, response, request, options) {
|
|
53
53
|
// It's possible that we sent headers already so don't use a stream
|
|
54
54
|
if (response.writableEnded) {
|
|
55
|
+
// The response is already gone: abort the request-scoped signal so
|
|
56
|
+
// handler cleanup wired to @SseSignal() still runs, and swallow late
|
|
57
|
+
// handler rejections that can no longer be delivered to the client.
|
|
58
|
+
this.getOrCreateAbortController(request).abort();
|
|
59
|
+
Promise.resolve(result).catch((err) => this.logger.error(err));
|
|
55
60
|
return;
|
|
56
61
|
}
|
|
57
62
|
const stream = new sse_stream_1.SseStream(request);
|