Socket
Socket
Sign inDemoInstall

tar

Package Overview
Dependencies
7
Maintainers
7
Versions
123
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.2 to 3.2.3

23

lib/unpack.js

@@ -316,2 +316,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 => {

@@ -378,2 +392,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)

@@ -380,0 +403,0 @@ if (er)

2

package.json

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

"description": "tar for node",
"version": "3.2.2",
"version": "3.2.3",
"publishConfig": {

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc