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

tar-fs

Package Overview
Dependencies
Maintainers
0
Versions
66
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 3.0.6 to 3.0.7

15

index.js

@@ -123,2 +123,4 @@ const tar = require('tar-stream')

cwd = path.resolve(cwd)
const xfs = opts.fs || fs

@@ -220,2 +222,5 @@ const ignore = opts.ignore || opts.filter || noop

xfs.unlink(name, function () {
const dst = path.resolve(path.dirname(name), header.linkname)
if (!inCwd(dst)) return next(new Error(name + ' is not a valid symlink'))
xfs.symlink(header.linkname, name, stat)

@@ -228,7 +233,7 @@ })

xfs.unlink(name, function () {
const srcpath = path.join(cwd, path.join('/', header.linkname))
const dst = path.join(cwd, path.join('/', header.linkname))
xfs.link(srcpath, name, function (err) {
xfs.link(dst, name, function (err) {
if (err && err.code === 'EPERM' && opts.hardlinkAsFilesFallback) {
stream = xfs.createReadStream(srcpath)
stream = xfs.createReadStream(dst)
return onfile()

@@ -242,2 +247,6 @@ }

function inCwd (dst) {
return dst.startsWith(cwd)
}
function onfile () {

@@ -244,0 +253,0 @@ const ws = xfs.createWriteStream(name)

2

package.json
{
"name": "tar-fs",
"version": "3.0.6",
"version": "3.0.7",
"description": "filesystem bindings for tar-stream",

@@ -5,0 +5,0 @@ "dependencies": {

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