concat-stream
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -7,5 +7,5 @@ var stream = require('stream') | ||
this.writable = true | ||
this.cb = cb | ||
if (cb) this.cb = cb | ||
this.body = [] | ||
this.on('error', cb) | ||
if (this.cb) this.on('error', cb) | ||
} | ||
@@ -42,3 +42,3 @@ | ||
ConcatStream.prototype.end = function() { | ||
this.cb(false, this.getBody()) | ||
if (this.cb) this.cb(false, this.getBody()) | ||
} | ||
@@ -45,0 +45,0 @@ |
{ "name" : "concat-stream" | ||
, "description" : "writable stream that concatenates strings or data and calls a callback with the result" | ||
, "tags" : ["stream", "simple", "util", "utility"] | ||
, "version" : "0.0.7" | ||
, "version" : "0.0.8" | ||
, "author" : "Max Ogden <max@maxogden.com>" | ||
@@ -6,0 +6,0 @@ , "repository" : |
3167