Comparing version 1.13.2 to 1.14.0
@@ -20,3 +20,3 @@ var tar = require('tar-stream') | ||
var statAll = function (fs, stat, cwd, ignore, entries) { | ||
var statAll = function (fs, stat, cwd, ignore, entries, sort) { | ||
var queue = entries || ['.'] | ||
@@ -37,2 +37,3 @@ | ||
if (sort) files.sort() | ||
for (var i = 0; i < files.length; i++) { | ||
@@ -69,3 +70,3 @@ if (!ignore(path.join(cwd, next, files[i]))) queue.push(path.join(next, files[i])) | ||
var mapStream = opts.mapStream || echo | ||
var statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat, cwd, ignore, opts.entries) | ||
var statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat, cwd, ignore, opts.entries, opts.sort) | ||
var strict = opts.strict !== false | ||
@@ -72,0 +73,0 @@ var dmode = typeof opts.dmode === 'number' ? opts.dmode : 0 |
{ | ||
"name": "tar-fs", | ||
"version": "1.13.2", | ||
"version": "1.14.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
20183
423