File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 32
32
"grunt-contrib-internal" : " ^1.1.0" ,
33
33
"grunt-contrib-jshint" : " ^1.0.0" ,
34
34
"grunt-contrib-nodeunit" : " ^1.0.0" ,
35
- "tar" : " ^2.2.1 " ,
35
+ "tar" : " ^4.4.8 " ,
36
36
"unzip" : " ^0.1.5"
37
37
},
38
38
"keywords" : [
Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ exports.compress = {
57
57
'test.css' , 'test.js'
58
58
] ;
59
59
var actual = [ ] ;
60
- var parse = tar . Parse ( ) ;
60
+ var parse = new tar . Parse ( ) ;
61
61
fs . createReadStream ( path . join ( 'tmp' , 'compress_test_files.tar' ) ) . pipe ( parse ) ;
62
62
parse . on ( 'entry' , function ( entry ) {
63
63
actual . push ( entry . path ) ;
64
+ entry . resume ( ) ;
64
65
} ) ;
65
66
parse . on ( 'end' , function ( ) {
66
67
actual . sort ( ) ;
@@ -77,12 +78,13 @@ exports.compress = {
77
78
'test.css' , 'test.js'
78
79
] ;
79
80
var actual = [ ] ;
80
- var parse = tar . Parse ( ) ;
81
+ var parse = new tar . Parse ( ) ;
81
82
fs . createReadStream ( path . join ( 'tmp' , 'compress_test_files.tgz' ) )
82
83
. pipe ( zlib . createGunzip ( ) )
83
84
. pipe ( parse ) ;
84
85
parse . on ( 'entry' , function ( entry ) {
85
86
actual . push ( entry . path ) ;
87
+ entry . resume ( ) ;
86
88
} ) ;
87
89
parse . on ( 'end' , function ( ) {
88
90
actual . sort ( ) ;
You can’t perform that action at this time.
0 commit comments