tar 6.1.13 → 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
  }
package/lib/pack.js CHANGED
@@ -22,7 +22,7 @@ class PackJob {
22
22
  }
23
23
  }
24
24
 
25
- const MiniPass = require('minipass')
25
+ const { Minipass } = require('minipass')
26
26
  const zlib = require('minizlib')
27
27
  const ReadEntry = require('./read-entry.js')
28
28
  const WriteEntry = require('./write-entry.js')
@@ -56,7 +56,7 @@ const path = require('path')
56
56
  const warner = require('./warn-mixin.js')
57
57
  const normPath = require('./normalize-windows-path.js')
58
58
 
59
- const Pack = warner(class Pack extends MiniPass {
59
+ const Pack = warner(class Pack extends Minipass {
60
60
  constructor (opt) {
61
61
  super(opt)
62
62
  opt = opt || Object.create(null)
@@ -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/read-entry.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict'
2
- const MiniPass = require('minipass')
2
+ const { Minipass } = require('minipass')
3
3
  const normPath = require('./normalize-windows-path.js')
4
4
 
5
5
  const SLURP = Symbol('slurp')
6
- module.exports = class ReadEntry extends MiniPass {
6
+ module.exports = class ReadEntry extends Minipass {
7
7
  constructor (header, ex, gex) {
8
8
  super()
9
9
  // read entries always start life paused. this is to avoid the
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) => {
@@ -1,5 +1,5 @@
1
1
  'use strict'
2
- const MiniPass = require('minipass')
2
+ const { Minipass } = require('minipass')
3
3
  const Pax = require('./pax.js')
4
4
  const Header = require('./header.js')
5
5
  const fs = require('fs')
@@ -41,7 +41,7 @@ const stripAbsolutePath = require('./strip-absolute-path.js')
41
41
 
42
42
  const modeFix = require('./mode-fix.js')
43
43
 
44
- const WriteEntry = warner(class WriteEntry extends MiniPass {
44
+ const WriteEntry = warner(class WriteEntry extends Minipass {
45
45
  constructor (p, opt) {
46
46
  opt = opt || {}
47
47
  super(opt)
@@ -417,7 +417,7 @@ class WriteEntrySync extends WriteEntry {
417
417
  }
418
418
  }
419
419
 
420
- const WriteEntryTar = warner(class WriteEntryTar extends MiniPass {
420
+ const WriteEntryTar = warner(class WriteEntryTar extends Minipass {
421
421
  constructor (readEntry, opt) {
422
422
  opt = opt || {}
423
423
  super(opt)
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "author": "GitHub Inc.",
3
3
  "name": "tar",
4
4
  "description": "tar for node",
5
- "version": "6.1.13",
5
+ "version": "6.1.15",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/npm/node-tar.git"
8
+ "url": "https://github.com/isaacs/node-tar.git"
9
9
  },
10
10
  "scripts": {
11
11
  "genparse": "node scripts/generate-parse-fixtures.js",
@@ -20,14 +20,14 @@
20
20
  "dependencies": {
21
21
  "chownr": "^2.0.0",
22
22
  "fs-minipass": "^2.0.0",
23
- "minipass": "^4.0.0",
23
+ "minipass": "^5.0.0",
24
24
  "minizlib": "^2.1.1",
25
25
  "mkdirp": "^1.0.3",
26
26
  "yallist": "^4.0.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@npmcli/eslint-config": "^4.0.0",
30
- "@npmcli/template-oss": "4.10.0",
30
+ "@npmcli/template-oss": "4.11.0",
31
31
  "chmodr": "^1.2.0",
32
32
  "end-of-stream": "^1.4.3",
33
33
  "events-to-array": "^2.0.3",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "templateOSS": {
57
57
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
58
- "version": "4.10.0",
58
+ "version": "4.11.0",
59
59
  "content": "scripts/template-oss",
60
60
  "engines": ">=10",
61
61
  "distPaths": [