tar-stream
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -82,3 +82,3 @@ var stream = require('stream'); | ||
} catch (err) { | ||
self.emit('error', err) | ||
self.emit('error', err); | ||
} | ||
@@ -85,0 +85,0 @@ b.consume(512); |
@@ -199,21 +199,19 @@ var ZEROS = '0000000000000000000'; | ||
//valid checksum | ||
if (c === decodeOct(buf, 148)) | ||
return { | ||
name: name, | ||
mode: mode, | ||
uid: uid, | ||
gid: gid, | ||
size: size, | ||
mtime: new Date(1000 * mtime), | ||
type: toType(typeflag), | ||
linkname: linkname, | ||
uname: uname, | ||
gname: gname, | ||
devmajor: devmajor, | ||
devminor: devminor | ||
}; | ||
if (c !== decodeOct(buf, 148)) throw new Error('invalid header'); | ||
//invalid checksum | ||
throw new Error('invalid header'); | ||
return { | ||
name: name, | ||
mode: mode, | ||
uid: uid, | ||
gid: gid, | ||
size: size, | ||
mtime: new Date(1000 * mtime), | ||
type: toType(typeflag), | ||
linkname: linkname, | ||
uname: uname, | ||
gname: gname, | ||
devmajor: devmajor, | ||
devminor: devminor | ||
}; | ||
}; | ||
{ | ||
"name": "tar-stream", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.", | ||
@@ -11,9 +11,9 @@ "repository": "git://github.com:mafintosh/tar-stream.git", | ||
"dependencies": { | ||
"bl": "~0.6.0", | ||
"end-of-stream": "~0.1.3", | ||
"bl": "~0.6.0" | ||
"readable-stream": "~1.0.26-4" | ||
}, | ||
"devDependencies": { | ||
"tap": "~0.4.6", | ||
"concat-stream": "~1.2.1", | ||
"readable-stream": "~1.1.9" | ||
"concat-stream": "~1.2.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "scripts": { |
2
120943
3
941
+ Addedreadable-stream@~1.0.26-4