Comparing version 2.1.0 to 2.1.1
15
index.js
@@ -29,3 +29,3 @@ var chownr = require('chownr') | ||
stat(nextAbs, function (err, stat) { | ||
stat.call(fs, nextAbs, function (err, stat) { | ||
if (err) return callback(err) | ||
@@ -231,8 +231,11 @@ | ||
var mode = (header.mode | (header.type === 'directory' ? dmode : fmode)) & umask | ||
chmod(name, mode, function (err) { | ||
if (chown && own) chown.call(xfs, name, header.uid, header.gid, onchown) | ||
else onchown(null) | ||
function onchown (err) { | ||
if (err) return cb(err) | ||
if (!own) return cb() | ||
if (!chown) return cb() | ||
chown(name, header.uid, header.gid, cb) | ||
}) | ||
if (!chmod) return cb() | ||
chmod.call(xfs, name, mode, cb) | ||
} | ||
} | ||
@@ -239,0 +242,0 @@ |
{ | ||
"name": "tar-fs", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "filesystem bindings for tar-stream", | ||
@@ -9,3 +9,3 @@ "dependencies": { | ||
"pump": "^3.0.0", | ||
"tar-stream": "^2.0.0" | ||
"tar-stream": "^2.1.4" | ||
}, | ||
@@ -22,3 +22,3 @@ "keywords": [ | ||
"rimraf": "^2.6.3", | ||
"standard": "^12.0.1", | ||
"standard": "^13.0.1", | ||
"tape": "^4.9.2" | ||
@@ -25,0 +25,0 @@ }, |
@@ -84,2 +84,4 @@ # tar-fs | ||
mapStream: function(fileStream, header) { | ||
// NOTE: the returned stream HAS to have the same length as the input stream. | ||
// If not make sure to update the size in the header passed in here. | ||
if (path.extname(header.name) === '.js') { | ||
@@ -86,0 +88,0 @@ return fileStream.pipe(someTransform) |
@@ -200,3 +200,3 @@ var test = require('tape') | ||
var entries = [ 'file1', 'sub-files/file3', 'sub-dir' ] | ||
var entries = ['file1', 'sub-files/file3', 'sub-dir'] | ||
@@ -203,0 +203,0 @@ rimraf.sync(b) |
Sorry, the diff of this file is not supported yet
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
28024
550
166
Updatedtar-stream@^2.1.4