decompress-tar
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -35,10 +35,12 @@ 'use strict'; | ||
if (file.type !== 'Directory') { | ||
var chunk = ''; | ||
var chunk = []; | ||
var len = 0; | ||
file.on('data', function (data) { | ||
chunk += data.toString(); | ||
chunk.push(data); | ||
len += data.length; | ||
}); | ||
file.on('end', function () { | ||
chunk = new Buffer(chunk); | ||
chunk = Buffer.concat(chunk, len); | ||
files.push({ contents: chunk, path: stripDirs(file.path, opts.strip) }); | ||
@@ -45,0 +47,0 @@ }); |
{ | ||
"name": "decompress-tar", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "decompress tar plugin", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2710
45