We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 074ee10 + a72e6b5 commit 94de117Copy full SHA for 94de117
src/StreamOptions/JsonToBufferTransform.ts
@@ -1,7 +1,7 @@
1
import { Transform, TransformCallback } from 'stream';
2
3
export class JsonToBufferTransform<T> extends Transform {
4
- transform(chunk: T, encoding: BufferEncoding, cb: TransformCallback) {
+ _transform(chunk: T, encoding: BufferEncoding, cb: TransformCallback) {
5
cb(null, Buffer.from(JSON.stringify(chunk)));
6
}
7
0 commit comments