Skip to content

Commit fd055e9

Browse files
phrredvladikoff
authored andcommittedApr 20, 2019
update tar to 4.4.8 (#211)
* update tar to 4.4.8 * updated tests with new tar syntax * resume entry events
1 parent b8ed0cc commit fd055e9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
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": [

‎test/compress_test.js

+4-2
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)
Please sign in to comment.