File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " text-file-diff" ,
3- "version" : " 1.4.1 " ,
3+ "version" : " 1.4.2 " ,
44 "description" : " line by line diff of two large files" ,
55 "license" : " MIT" ,
66 "repository" : " niiknow/text-file-diff" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export class StreamLineReader {
1212 value : string = '' ;
1313 nextValue : string = '' ;
1414 lineNumber : number = - 1 ;
15- charset : any = 'utf8' ;
1615 it ?: AsyncIterableIterator < string > ;
1716 eof : number = - 1 ;
1817 async init ( readStream : stream . Readable ) : Promise < StreamLineReader > {
@@ -78,10 +77,7 @@ export default class TextFileDiff extends EventEmitter {
7877 async diffStream ( stream1 : stream . Readable , stream2 : stream . Readable ) {
7978 const lineReader1 = await ( new StreamLineReader ( ) ) . init ( stream1 ) ;
8079 const lineReader2 = await ( new StreamLineReader ( ) ) . init ( stream2 ) ;
81- const { compareFn, charset} = this . options ;
82-
83- lineReader1 . charset = charset ;
84- lineReader2 . charset = charset ;
80+ const { compareFn} = this . options ;
8581
8682 if ( this . options . skipHeader ) {
8783 await lineReader1 . moveNext ( ) ;
You can’t perform that action at this time.
0 commit comments