Comparing version 1.2.0 to 1.3.0
@@ -117,3 +117,3 @@ var tar = require('tar-stream') | ||
pump(mapStream(rs), entry) | ||
pump(mapStream(rs, header), entry) | ||
} | ||
@@ -232,3 +232,3 @@ | ||
pump(mapStream(stream), ws, function(err) { | ||
pump(mapStream(stream, header), ws, function(err) { | ||
if (err) return next(err) | ||
@@ -235,0 +235,0 @@ ws.on('close', stat) |
{ | ||
"name": "tar-fs", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "filesystem bindings for tar-stream", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -52,3 +52,3 @@ # tar-fs | ||
var extract = tar.pack('./my-directory', { | ||
var extract = tar.extract('./my-directory', { | ||
map: function(header) { | ||
@@ -65,4 +65,7 @@ header.name = 'another-prefix/'+header.name | ||
var pack = tar.pack('./my-directory', { | ||
mapStream: function(fileStream) { | ||
return fileStream.pipe(someTransform) | ||
mapStream: function(fileStream, header) { | ||
if (path.extname(header.file) === '.js') { | ||
return fileStream.pipe(someTransform) | ||
} | ||
return fileStream; | ||
} | ||
@@ -72,4 +75,7 @@ }) | ||
var extract = tar.extract('./my-directory', { | ||
mapStream: function(fileStream) { | ||
return fileStream.pipe(someTransform) | ||
mapStream: function(fileStream, header) { | ||
if (path.extname(header.file) === '.js') { | ||
return fileStream.pipe(someTransform) | ||
} | ||
return fileStream; | ||
} | ||
@@ -76,0 +82,0 @@ }) |
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
15036
114