tar
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -40,2 +40,3 @@ | ||
me.position = 0 | ||
me._ended = false | ||
@@ -122,9 +123,9 @@ me._stream.on("error", function (e) { | ||
if (zero) { | ||
this._ended = this._eofStarted | ||
if (this._eofStarted) | ||
this._ended = true | ||
this._eofStarted = true | ||
} else { | ||
this._ended = this._eofStarted = false | ||
this._eofStarted = false | ||
this._startEntry(c) | ||
} | ||
} | ||
@@ -131,0 +132,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"repository": { | ||
@@ -16,5 +16,5 @@ "type": "git", | ||
"dependencies": { | ||
"inherits": "2", | ||
"block-stream": "*", | ||
"fstream": "~0.1.8" | ||
"fstream": "~0.1.28", | ||
"inherits": "2" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
@@ -22,2 +22,4 @@ # node-tar | ||
This only works with directories, it does not work with individual files. | ||
The optional `properties` object are used to set properties in the tar | ||
@@ -24,0 +26,0 @@ 'Global Extended Header'. |
@@ -0,1 +1,4 @@ | ||
// Set the umask, so that it works the same everywhere. | ||
process.umask(parseInt('22', 8)) | ||
var tap = require("tap") | ||
@@ -117,2 +120,9 @@ , tar = require("../tar.js") | ||
nlink: 2 }, | ||
{ path: '/200LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL', | ||
mode: '120755', | ||
type: 'SymbolicLink', | ||
depth: 1, | ||
size: 200, | ||
linkpath: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc', | ||
nlink: 1 }, | ||
{ path: '/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc', | ||
@@ -125,9 +135,2 @@ mode: '100644', | ||
nlink: 2 }, | ||
{ path: '/200LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL', | ||
mode: '120777', | ||
type: 'SymbolicLink', | ||
depth: 1, | ||
size: 200, | ||
linkpath: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc', | ||
nlink: 1 }, | ||
{ path: '/c.txt', | ||
@@ -285,2 +288,8 @@ mode: '100644', | ||
tap.test("preclean", function (t) { | ||
require("rimraf").sync(__dirname + "/tmp/extract-test") | ||
t.pass("cleaned!") | ||
t.end() | ||
}) | ||
tap.test("extract test", function (t) { | ||
@@ -287,0 +296,0 @@ var extract = tar.Extract(target) |
144593
27
4187
49
18
Updatedfstream@~0.1.28