tar 4.4.0 → 4.4.1
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/buffer.js +11 -0
- package/lib/header.js +1 -0
- package/lib/list.js +2 -0
- package/lib/pack.js +2 -0
- package/lib/parse.js +1 -1
- package/lib/pax.js +1 -0
- package/lib/replace.js +1 -0
- package/lib/write-entry.js +1 -0
- package/package.json +6 -5
package/lib/buffer.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// Buffer in node 4.x < 4.5.0 doesn't have working Buffer.from
|
|
4
|
+
// or Buffer.alloc, and Buffer in node 10 deprecated the ctor.
|
|
5
|
+
// .M, this is fine .\^/M..
|
|
6
|
+
let B = Buffer
|
|
7
|
+
/* istanbul ignore next */
|
|
8
|
+
if (!B.alloc) {
|
|
9
|
+
B = require('safe-buffer').Buffer
|
|
10
|
+
}
|
|
11
|
+
module.exports = B
|
package/lib/header.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// the data could not be faithfully encoded in a simple header.
|
|
5
5
|
// (Also, check header.needPax to see if it needs a pax header.)
|
|
6
6
|
|
|
7
|
+
const Buffer = require('./buffer.js')
|
|
7
8
|
const types = require('./types.js')
|
|
8
9
|
const pathModule = require('path')
|
|
9
10
|
const large = require('./large-numbers.js')
|
package/lib/list.js
CHANGED
package/lib/pack.js
CHANGED
package/lib/parse.js
CHANGED
|
@@ -30,7 +30,7 @@ const Entry = require('./read-entry.js')
|
|
|
30
30
|
const Pax = require('./pax.js')
|
|
31
31
|
const zlib = require('minizlib')
|
|
32
32
|
|
|
33
|
-
const gzipHeader =
|
|
33
|
+
const gzipHeader = Buffer.from([0x1f, 0x8b])
|
|
34
34
|
const STATE = Symbol('state')
|
|
35
35
|
const WRITEENTRY = Symbol('writeEntry')
|
|
36
36
|
const READENTRY = Symbol('readEntry')
|
package/lib/pax.js
CHANGED
package/lib/replace.js
CHANGED
package/lib/write-entry.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
3
3
|
"name": "tar",
|
|
4
4
|
"description": "tar for node",
|
|
5
|
-
"version": "4.4.
|
|
5
|
+
"version": "4.4.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/npm/node-tar.git"
|
|
@@ -17,19 +17,20 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"chownr": "^1.0.1",
|
|
20
|
-
"fs-minipass": "^1.2.
|
|
21
|
-
"minipass": "^2.2.
|
|
20
|
+
"fs-minipass": "^1.2.5",
|
|
21
|
+
"minipass": "^2.2.4",
|
|
22
22
|
"minizlib": "^1.1.0",
|
|
23
23
|
"mkdirp": "^0.5.0",
|
|
24
|
+
"safe-buffer": "^5.1.1",
|
|
24
25
|
"yallist": "^3.0.2"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"chmodr": "^1.0.2",
|
|
28
|
-
"end-of-stream": "^1.4.
|
|
29
|
+
"end-of-stream": "^1.4.1",
|
|
29
30
|
"events-to-array": "^1.1.2",
|
|
30
31
|
"mutate-fs": "^2.1.1",
|
|
31
32
|
"rimraf": "^2.6.2",
|
|
32
|
-
"tap": "^11.
|
|
33
|
+
"tap": "^11.1.3",
|
|
33
34
|
"tar-fs": "^1.16.0",
|
|
34
35
|
"tar-stream": "^1.5.2"
|
|
35
36
|
},
|