Comparing version 6.1.7 to 6.1.8
@@ -11,2 +11,3 @@ // A path exclusive reservation system | ||
const normPath = require('./normalize-windows-path.js') | ||
const { join } = require('path') | ||
@@ -23,5 +24,4 @@ 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) => | ||
path.split('/').slice(0, -1).reduce((set, path) => | ||
set.length ? set.concat(normPath(join(set[set.length - 1], path))) | ||
@@ -104,2 +104,3 @@ : [path], []) | ||
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)) |
@@ -223,2 +223,4 @@ 'use strict' | ||
entry.linkpath = linkparts.slice(this.strip).join('/') | ||
else | ||
return false | ||
} | ||
@@ -225,0 +227,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "6.1.7", | ||
"version": "6.1.8", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
156589
3470