We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 950ed81 commit a276df4Copy full SHA for a276df4
1 file changed
lib/recognize-stream.ts
@@ -140,8 +140,8 @@ class RecognizeStream extends Duplex {
140
delete options.objectMode;
141
}
142
super(options);
143
- if (options.readableObjectMode && this.readableObjectMode === undefined) {
144
- this.readableObjectMode = true;
+ if (this.readableObjectMode === undefined) {
+ this.readableObjectMode = options.readableObjectMode === true;
145
146
this.options = options;
147
this.listening = false;
0 commit comments