Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tar-fs

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar-fs - npm Package Compare versions

Comparing version 1.16.3 to 2.0.0

5

index.js

@@ -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)

14

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc