File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ function quoteString(string: string) {
126
126
return str ;
127
127
}
128
128
129
- function readAsPromised ( stream , size ) {
129
+ function readAsPromised ( stream , size ? ) {
130
130
const value = stream . read ( size ) ;
131
131
if ( value === null ) {
132
132
return new Promise ( ( resolve , reject ) => {
@@ -327,10 +327,10 @@ export class JsonStreamStringify extends Readable {
327
327
let i = 0 ;
328
328
const item = < any > {
329
329
type : 'readable object' ,
330
- async read ( size : number ) {
330
+ async read ( ) {
331
331
try {
332
332
let out = '' ;
333
- const data = await readAsPromised ( input , size ) ;
333
+ const data = await readAsPromised ( input ) ;
334
334
if ( data === null ) {
335
335
if ( i && that . indent ) {
336
336
out += `\n${ parent . indent } ` ;
You can’t perform that action at this time.
0 commit comments