@nestjs/common 9.0.9 → 9.0.10

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.
@@ -2,6 +2,7 @@
2
2
  import { Readable } from 'stream';
3
3
  import { StreamableFileOptions } from './streamable-options.interface';
4
4
  export interface StreamableHandlerResponse {
5
+ destroyed: boolean;
5
6
  statusCode: number;
6
7
  send: (msg: string) => void;
7
8
  }
@@ -10,8 +10,10 @@ class StreamableFile {
10
10
  var _b;
11
11
  this.options = options;
12
12
  this.handleError = (err, res) => {
13
- res.statusCode = 400;
14
- res.send(err.message);
13
+ if (!res.destroyed) {
14
+ res.statusCode = 400;
15
+ res.send(err.message);
16
+ }
15
17
  };
16
18
  if (util_1.types.isUint8Array(bufferOrReadStream)) {
17
19
  this.stream = new stream_1.Readable();
@@ -21,7 +21,7 @@ export declare class NestApplicationContextOptions {
21
21
  bufferLogs?: boolean;
22
22
  /**
23
23
  * If enabled, logs will be automatically flushed and buffer detached when
24
- * application initialisation process either completes or fails.
24
+ * application initialization process either completes or fails.
25
25
  * @default true
26
26
  */
27
27
  autoFlushLogs?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/common",
3
- "version": "9.0.9",
3
+ "version": "9.0.10",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@common)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://nestjs.com",