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 4.4.16 to 4.4.17

7

lib/path-reservations.js

@@ -11,2 +11,3 @@ // A path exclusive reservation system

const normPath = require('./normalize-windows-path.js')
const { join } = require('path')

@@ -23,6 +24,5 @@ module.exports = () => {

// return a set of parent dirs for a given path
const { join } = require('path')
const getDirs = path =>
normPath(join(path)).split('/').slice(0, -1).reduce((set, path) =>
set.length ? set.concat(normPath(join(set[set.length-1], path)))
path.split('/').slice(0, -1).reduce((set, path) =>
set.length ? set.concat(normPath(join(set[set.length - 1], path)))
: [path], [])

@@ -104,2 +104,3 @@

const reserve = (paths, fn) => {
paths = paths.map(p => normPath(join(p)).toLowerCase())
const dirs = new Set(

@@ -106,0 +107,0 @@ paths.map(path => getDirs(path)).reduce((a, b) => a.concat(b))

@@ -212,2 +212,4 @@ 'use strict'

entry.linkpath = linkparts.slice(this.strip).join('/')
else
return false
}

@@ -214,0 +216,0 @@ }

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

"description": "tar for node",
"version": "4.4.16",
"version": "4.4.17",
"publishConfig": {

@@ -8,0 +8,0 @@ "tag": "v4-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