Comparing version 1.16.3 to 2.0.0
@@ -221,4 +221,7 @@ var chownr = require('chownr') | ||
var link = header.type === 'symlink' | ||
/* eslint-disable node/no-deprecated-api */ | ||
var chmod = link ? xfs.lchmod : xfs.chmod | ||
var chown = link ? xfs.lchown : xfs.chown | ||
/* eslint-enable node/no-deprecated-api */ | ||
@@ -339,3 +342,3 @@ if (!chmod) return cb() | ||
function mkdirfix (name, opts, cb) { | ||
mkdirp(name, {fs: opts.fs}, function (err, made) { | ||
mkdirp(name, { fs: opts.fs }, function (err, made) { | ||
if (!err && made && opts.own) { | ||
@@ -342,0 +345,0 @@ chownr(made, opts.uid, opts.gid, cb) |
{ | ||
"name": "tar-fs", | ||
"version": "1.16.3", | ||
"version": "2.0.0", | ||
"description": "filesystem bindings for tar-stream", | ||
"dependencies": { | ||
"chownr": "^1.0.1", | ||
"chownr": "^1.1.1", | ||
"mkdirp": "^0.5.1", | ||
"pump": "^1.0.0", | ||
"tar-stream": "^1.1.2" | ||
"pump": "^3.0.0", | ||
"tar-stream": "^2.0.0" | ||
}, | ||
@@ -20,5 +20,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"rimraf": "^2.2.8", | ||
"standard": "^4.5.4", | ||
"tape": "^3.0.0" | ||
"rimraf": "^2.6.3", | ||
"standard": "^12.0.1", | ||
"tape": "^4.9.2" | ||
}, | ||
@@ -25,0 +25,0 @@ "scripts": { |
@@ -112,3 +112,3 @@ var test = require('tape') | ||
rimraf.sync(b) | ||
tar.pack(a, {dereference: true}) | ||
tar.pack(a, { dereference: true }) | ||
.pipe(tar.extract(b)) | ||
@@ -138,3 +138,3 @@ .on('finish', function () { | ||
tar.pack(a) | ||
.pipe(tar.extract(b, {strip: 1})) | ||
.pipe(tar.extract(b, { strip: 1 })) | ||
.on('finish', function () { | ||
@@ -161,3 +161,3 @@ var files = fs.readdirSync(b).sort() | ||
tar.pack(a) | ||
.pipe(tar.extract(b, {strip: 1, map: uppercase})) | ||
.pipe(tar.extract(b, { strip: 1, map: uppercase })) | ||
.on('finish', function () { | ||
@@ -186,11 +186,11 @@ var files = fs.readdirSync(b).sort() | ||
tar.pack(a) | ||
.pipe(tar.extract(b, {map: aWithMode})) | ||
.on('finish', function () { | ||
var files = fs.readdirSync(b).sort() | ||
var stat = fs.statSync(path.join(b, 'a')) | ||
t.same(files.length, 1) | ||
if (!win32) { | ||
t.same(stat.mode & parseInt(777, 8), parseInt(700, 8)) | ||
} | ||
}) | ||
.pipe(tar.extract(b, { map: aWithMode })) | ||
.on('finish', function () { | ||
var files = fs.readdirSync(b).sort() | ||
var stat = fs.statSync(path.join(b, 'a')) | ||
t.same(files.length, 1) | ||
if (!win32) { | ||
t.same(stat.mode & parseInt(777, 8), parseInt(700, 8)) | ||
} | ||
}) | ||
}) | ||
@@ -207,3 +207,3 @@ | ||
rimraf.sync(b) | ||
tar.pack(a, {entries: entries}) | ||
tar.pack(a, { entries: entries }) | ||
.pipe(tar.extract(b)) | ||
@@ -257,5 +257,5 @@ .on('finish', function () { | ||
pack = tar.pack(a, {map: countPackEntry, finish: onPackFinish}) | ||
pack = tar.pack(a, { map: countPackEntry, finish: onPackFinish }) | ||
pack.pipe(tar.extract(b, {map: countExtractEntry, finish: onExtractFinish})) | ||
pack.pipe(tar.extract(b, { map: countExtractEntry, finish: onExtractFinish })) | ||
.on('finish', function () { | ||
@@ -290,3 +290,3 @@ t.end() | ||
function packB (pack) { | ||
tar.pack(b, {pack: pack, map: prefixer('b-files')}) | ||
tar.pack(b, { pack: pack, map: prefixer('b-files') }) | ||
.pipe(tar.extract(out)) | ||
@@ -293,0 +293,0 @@ .on('finish', assertResults) |
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
27705
549
+ Addedbase64-js@1.5.1(transitive)
+ Addedbl@4.1.0(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedtar-stream@2.2.0(transitive)
- Removedbl@1.2.3(transitive)
- Removedbuffer-alloc@1.2.0(transitive)
- Removedbuffer-alloc-unsafe@1.1.0(transitive)
- Removedbuffer-fill@1.0.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpump@1.0.3(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedtar-stream@1.6.2(transitive)
- Removedto-buffer@1.1.1(transitive)
- Removedxtend@4.0.2(transitive)
Updatedchownr@^1.1.1
Updatedpump@^3.0.0
Updatedtar-stream@^2.0.0