Running two searchStream() methods with the same query object and mutating on the resulting data of one of the streams similarly mutates the resulting data of the other stream.
The lib should use immutable before returning the object to avoid side effects.
Code to reproduce the bug - multiple-streams-bug.js, output shown below:
Running two searchStream() methods with the same query object and mutating on the resulting data of one of the streams similarly mutates the resulting data of the other stream.
The lib should use immutable before returning the object to avoid side effects.
Code to reproduce the bug - multiple-streams-bug.js, output shown below: