Comparing version 1.14.0 to 1.15.0
@@ -70,2 +70,3 @@ var tar = require('tar-stream') | ||
var strict = opts.strict !== false | ||
var umask = typeof opts.umask === 'number' ? ~opts.umask : ~processUmask() | ||
var dmode = typeof opts.dmode === 'number' ? opts.dmode : 0 | ||
@@ -102,3 +103,3 @@ var fmode = typeof opts.fmode === 'number' ? opts.fmode : 0 | ||
name: normalize(filename), | ||
mode: stat.mode | (stat.isDirectory() ? dmode : fmode), | ||
mode: (stat.mode | (stat.isDirectory() ? dmode : fmode)) & umask, | ||
mtime: stat.mtime, | ||
@@ -221,3 +222,5 @@ size: stat.size, | ||
if (!chmod) return cb() | ||
chmod(name, (header.mode | (header.type === 'directory' ? dmode : fmode)) & umask, function (err) { | ||
var mode = (header.mode | (header.type === 'directory' ? dmode : fmode)) & umask | ||
chmod(name, mode, function (err) { | ||
if (err) return cb(err) | ||
@@ -224,0 +227,0 @@ if (!own) return cb() |
{ | ||
"name": "tar-fs", | ||
"version": "1.14.0", | ||
"version": "1.15.0", | ||
"description": "filesystem bindings for tar-stream", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
20291
425