Socket
Socket
Sign inDemoInstall

tar

Package Overview
Dependencies
Maintainers
7
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar - npm Package Compare versions

Comparing version 4.4.14 to 4.4.15

23

lib/unpack.js

@@ -417,2 +417,16 @@ 'use strict'

this[PEND]()
// if we are not creating a directory, and the path is in the dirCache,
// then that means we are about to delete the directory we created
// previously, and it is no longer going to be a directory, and neither
// is any of its children.
if (entry.type !== 'Directory') {
for (const path of this.dirCache.keys()) {
if (path === entry.absolute ||
path.indexOf(entry.absolute + '/') === 0 ||
path.indexOf(entry.absolute + '\\') === 0)
this.dirCache.delete(path)
}
}
this[MKDIR](path.dirname(entry.absolute), this.dmode, er => {

@@ -479,2 +493,11 @@ if (er)

[CHECKFS] (entry) {
if (entry.type !== 'Directory') {
for (const path of this.dirCache.keys()) {
if (path === entry.absolute ||
path.indexOf(entry.absolute + '/') === 0 ||
path.indexOf(entry.absolute + '\\') === 0)
this.dirCache.delete(path)
}
}
const er = this[MKDIR](path.dirname(entry.absolute), this.dmode)

@@ -481,0 +504,0 @@ if (er)

2

package.json

@@ -5,3 +5,3 @@ {

"description": "tar for node",
"version": "4.4.14",
"version": "4.4.15",
"publishConfig": {

@@ -8,0 +8,0 @@ "tag": "v4-legacy"

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