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 1
1
{
2
2
"name" : " text-file-diff" ,
3
- "version" : " 1.4.1 " ,
3
+ "version" : " 1.4.2 " ,
4
4
"description" : " line by line diff of two large files" ,
5
5
"license" : " MIT" ,
6
6
"repository" : " niiknow/text-file-diff" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export class StreamLineReader {
12
12
value : string = '' ;
13
13
nextValue : string = '' ;
14
14
lineNumber : number = - 1 ;
15
- charset : any = 'utf8' ;
16
15
it ?: AsyncIterableIterator < string > ;
17
16
eof : number = - 1 ;
18
17
async init ( readStream : stream . Readable ) : Promise < StreamLineReader > {
@@ -78,10 +77,7 @@ export default class TextFileDiff extends EventEmitter {
78
77
async diffStream ( stream1 : stream . Readable , stream2 : stream . Readable ) {
79
78
const lineReader1 = await ( new StreamLineReader ( ) ) . init ( stream1 ) ;
80
79
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 ;
85
81
86
82
if ( this . options . skipHeader ) {
87
83
await lineReader1 . moveNext ( ) ;
You can’t perform that action at this time.
0 commit comments