tar 6.1.14 → 6.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/normalize-unicode.js +1 -1
- package/lib/path-reservations.js +1 -1
- package/lib/unpack.js +1 -1
- package/package.json +1 -1
package/lib/normalize-unicode.js
CHANGED
|
@@ -6,7 +6,7 @@ const normalizeCache = Object.create(null)
|
|
|
6
6
|
const { hasOwnProperty } = Object.prototype
|
|
7
7
|
module.exports = s => {
|
|
8
8
|
if (!hasOwnProperty.call(normalizeCache, s)) {
|
|
9
|
-
normalizeCache[s] = s.normalize('
|
|
9
|
+
normalizeCache[s] = s.normalize('NFD')
|
|
10
10
|
}
|
|
11
11
|
return normalizeCache[s]
|
|
12
12
|
}
|
package/lib/path-reservations.js
CHANGED
|
@@ -123,7 +123,7 @@ module.exports = () => {
|
|
|
123
123
|
// effectively removing all parallelization on windows.
|
|
124
124
|
paths = isWindows ? ['win32 parallelization disabled'] : paths.map(p => {
|
|
125
125
|
// don't need normPath, because we skip this entirely for windows
|
|
126
|
-
return
|
|
126
|
+
return stripSlashes(join(normalize(p))).toLowerCase()
|
|
127
127
|
})
|
|
128
128
|
|
|
129
129
|
const dirs = new Set(
|
package/lib/unpack.js
CHANGED
|
@@ -105,7 +105,7 @@ const uint32 = (a, b, c) =>
|
|
|
105
105
|
// Note that on windows, we always drop the entire cache whenever a
|
|
106
106
|
// symbolic link is encountered, because 8.3 filenames are impossible
|
|
107
107
|
// to reason about, and collisions are hazards rather than just failures.
|
|
108
|
-
const cacheKeyNormalize = path =>
|
|
108
|
+
const cacheKeyNormalize = path => stripSlash(normPath(normalize(path)))
|
|
109
109
|
.toLowerCase()
|
|
110
110
|
|
|
111
111
|
const pruneCache = (cache, abs) => {
|