File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3232 "grunt-contrib-internal" : " ^1.1.0" ,
3333 "grunt-contrib-jshint" : " ^1.0.0" ,
3434 "grunt-contrib-nodeunit" : " ^1.0.0" ,
35- "tar" : " ^2.2.1 " ,
35+ "tar" : " ^4.4.8 " ,
3636 "unzip" : " ^0.1.5"
3737 },
3838 "keywords" : [
Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ exports.compress = {
5757 'test.css' , 'test.js'
5858 ] ;
5959 var actual = [ ] ;
60- var parse = tar . Parse ( ) ;
60+ var parse = new tar . Parse ( ) ;
6161 fs . createReadStream ( path . join ( 'tmp' , 'compress_test_files.tar' ) ) . pipe ( parse ) ;
6262 parse . on ( 'entry' , function ( entry ) {
6363 actual . push ( entry . path ) ;
64+ entry . resume ( ) ;
6465 } ) ;
6566 parse . on ( 'end' , function ( ) {
6667 actual . sort ( ) ;
@@ -77,12 +78,13 @@ exports.compress = {
7778 'test.css' , 'test.js'
7879 ] ;
7980 var actual = [ ] ;
80- var parse = tar . Parse ( ) ;
81+ var parse = new tar . Parse ( ) ;
8182 fs . createReadStream ( path . join ( 'tmp' , 'compress_test_files.tgz' ) )
8283 . pipe ( zlib . createGunzip ( ) )
8384 . pipe ( parse ) ;
8485 parse . on ( 'entry' , function ( entry ) {
8586 actual . push ( entry . path ) ;
87+ entry . resume ( ) ;
8688 } ) ;
8789 parse . on ( 'end' , function ( ) {
8890 actual . sort ( ) ;
You can’t perform that action at this time.
0 commit comments