File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " warcio" ,
3
- "version" : " 2.4.2 " ,
3
+ "version" : " 2.4.3 " ,
4
4
"keywords" : [
5
5
" WARC" ,
6
6
" web archiving"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export type WARCSerializerOpts = {
27
27
export abstract class BaseSerializerBuffer {
28
28
abstract write ( chunk : Uint8Array ) : void ;
29
29
abstract readAll ( ) : AsyncIterable < Uint8Array > ;
30
- abstract clear ( ) : void ;
30
+ abstract purge ( ) : void ;
31
31
}
32
32
33
33
// ===========================================================================
@@ -44,7 +44,7 @@ export class SerializerInMemBuffer extends BaseSerializerBuffer {
44
44
}
45
45
}
46
46
47
- clear ( ) {
47
+ purge ( ) {
48
48
this . buffers = [ ] ;
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ export class TempFileBuffer extends warcserializer.SerializerInMemBuffer {
75
75
yield buff ;
76
76
}
77
77
78
- await this . clear ( ) ;
78
+ await this . purge ( ) ;
79
79
}
80
80
81
- override async clear ( ) {
81
+ override async purge ( ) {
82
82
if ( this . filename ) {
83
83
await unlink ( this . filename ) ;
84
84
this . filename = "" ;
You can’t perform that action at this time.
0 commit comments