@nestjs/common 9.0.8 → 9.0.11
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/file-stream/streamable-file.d.ts +1 -0
- package/file-stream/streamable-file.js +4 -2
- package/interfaces/nest-application-context-options.interface.d.ts +1 -1
- package/package.json +1 -1
- package/serializer/class-serializer.interceptor.d.ts +0 -1
- package/serializer/class-serializer.interceptor.js +4 -5
|
@@ -10,8 +10,10 @@ class StreamableFile {
|
|
|
10
10
|
var _b;
|
|
11
11
|
this.options = options;
|
|
12
12
|
this.handleError = (err, res) => {
|
|
13
|
-
res.
|
|
14
|
-
|
|
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
|
|
24
|
+
* application initialization process either completes or fails.
|
|
25
25
|
* @default true
|
|
26
26
|
*/
|
|
27
27
|
autoFlushLogs?: boolean;
|
package/package.json
CHANGED
|
@@ -19,5 +19,4 @@ export declare class ClassSerializerInterceptor implements NestInterceptor {
|
|
|
19
19
|
serialize(response: PlainLiteralObject | Array<PlainLiteralObject>, options: ClassTransformOptions): PlainLiteralObject | Array<PlainLiteralObject>;
|
|
20
20
|
transformToPlain(plainOrClass: any, options: ClassTransformOptions): PlainLiteralObject;
|
|
21
21
|
protected getContextOptions(context: ExecutionContext): ClassTransformOptions | undefined;
|
|
22
|
-
private reflectSerializeMetadata;
|
|
23
22
|
}
|
|
@@ -48,11 +48,10 @@ let ClassSerializerInterceptor = class ClassSerializerInterceptor {
|
|
|
48
48
|
: plainOrClass;
|
|
49
49
|
}
|
|
50
50
|
getContextOptions(context) {
|
|
51
|
-
return
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return this.reflector.get(class_serializer_constants_1.CLASS_SERIALIZER_OPTIONS, obj);
|
|
51
|
+
return this.reflector.getAllAndOverride(class_serializer_constants_1.CLASS_SERIALIZER_OPTIONS, [
|
|
52
|
+
context.getHandler(),
|
|
53
|
+
context.getClass(),
|
|
54
|
+
]);
|
|
56
55
|
}
|
|
57
56
|
};
|
|
58
57
|
ClassSerializerInterceptor = tslib_1.__decorate([
|