Socket
Socket
Sign inDemoInstall

tar

Package Overview
Dependencies
6
Maintainers
7
Versions
123
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.1 to 6.1.2

22

lib/unpack.js

@@ -468,2 +468,15 @@ 'use strict'

[CHECKFS2] (entry, done) {
// 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 => {

@@ -533,2 +546,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, neverCalled)

@@ -535,0 +557,0 @@ if (er)

2

package.json

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

"description": "tar for node",
"version": "6.1.1",
"version": "6.1.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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