Comparing version 5.0.8 to 5.0.9
@@ -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)) |
@@ -222,2 +222,4 @@ 'use strict' | ||
entry.linkpath = linkparts.slice(this.strip).join('/') | ||
else | ||
return false | ||
} | ||
@@ -224,0 +226,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"publishConfig": { | ||
@@ -8,0 +8,0 @@ "tag": "v5-legacy" |
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
155778
3477