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.
@@ -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('NFKD')
9
+ normalizeCache[s] = s.normalize('NFD')
10
10
  }
11
11
  return normalizeCache[s]
12
12
  }
@@ -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 normalize(stripSlashes(join(p))).toLowerCase()
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 => normalize(stripSlash(normPath(path)))
108
+ const cacheKeyNormalize = path => stripSlash(normPath(normalize(path)))
109
109
  .toLowerCase()
110
110
 
111
111
  const pruneCache = (cache, abs) => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "GitHub Inc.",
3
3
  "name": "tar",
4
4
  "description": "tar for node",
5
- "version": "6.1.14",
5
+ "version": "6.1.15",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/isaacs/node-tar.git"