You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tar-fs

Package Overview
Dependencies
Maintainers
2
Versions
71
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

to
2.1.3

16

index.js

@@ -275,9 +275,13 @@ var chownr = require('chownr')

xfs.link(srcpath, name, function (err) {
if (err && err.code === 'EPERM' && opts.hardlinkAsFilesFallback) {
stream = xfs.createReadStream(srcpath)
return onfile()
}
xfs.realpath(srcpath, function (err, dst) {
if (err || !dst.startsWith(path.resolve(cwd))) return next(new Error(name + ' is not a valid hardlink'))
stat(err)
xfs.link(dst, name, function (err) {
if (err && err.code === 'EPERM' && opts.hardlinkAsFilesFallback) {
stream = xfs.createReadStream(srcpath)
return onfile()
}
stat(err)
})
})

@@ -284,0 +288,0 @@ })

{
"name": "tar-fs",
"version": "2.1.2",
"version": "2.1.3",
"description": "filesystem bindings for tar-stream",

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