tar 1.0.2 → 1.0.3

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/extract.js CHANGED
@@ -61,6 +61,10 @@ function Extract (opts) {
61
61
  me.emit('error', err)
62
62
  })
63
63
 
64
+ this._fst.on('drain', function() {
65
+ me.emit('drain')
66
+ })
67
+
64
68
  // this._fst.on("end", function () {
65
69
  // console.error("\nEEEE Extract End", me._fst.path)
66
70
  // })
package/lib/parse.js CHANGED
@@ -146,7 +146,7 @@ Parse.prototype._startEntry = function (c) {
146
146
  e.header = header
147
147
  e.tar_file_offset = this.position
148
148
  e.tar_block = this.position / 512
149
- this.emit("error", e)
149
+ return this.emit("error", e)
150
150
  }
151
151
 
152
152
  switch (tar.types[header.type]) {
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": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git://github.com/isaacs/node-tar.git"