handle-thing
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -50,3 +50,3 @@ var assert = require('assert'); | ||
this.emit('_stream'); | ||
this.emit('stream', stream); | ||
}; | ||
@@ -56,3 +56,3 @@ | ||
if (!this._stream) { | ||
this.once('_stream', this.readStart); | ||
this.once('stream', this.readStart); | ||
return 0; | ||
@@ -117,3 +117,3 @@ } | ||
if (!this._stream) { | ||
this.once('_stream', this.readStop); | ||
this.once('stream', this.readStop); | ||
return 0; | ||
@@ -128,3 +128,3 @@ } | ||
if (!this._stream) { | ||
this.once('_stream', function() { | ||
this.once('stream', function() { | ||
this.shutdown(req); | ||
@@ -147,3 +147,3 @@ }); | ||
if (!this._stream) { | ||
this.once('_stream', function() { | ||
this.once('stream', function() { | ||
this.shutdown(req); | ||
@@ -165,3 +165,3 @@ }); | ||
if (!this._stream) { | ||
this.once('_stream', function() { | ||
this.once('stream', function() { | ||
this.close(callback); | ||
@@ -181,3 +181,3 @@ }); | ||
if (!this._stream) | ||
this.once('_stream', this.close); | ||
this.once('stream', this.close); | ||
else if (this._options.close) | ||
@@ -192,3 +192,3 @@ this._options.close(function() {}); | ||
if (!this._stream) { | ||
this.once('_stream', function() { | ||
this.once('stream', function() { | ||
this.writeEnc(req, data, enc); | ||
@@ -215,3 +215,3 @@ }); | ||
if (!this._stream) { | ||
this.once('_stream', function() { | ||
this.once('stream', function() { | ||
this.writeEnc(data, ignored, enc, req); | ||
@@ -218,0 +218,0 @@ }); |
{ | ||
"name": "handle-thing", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Wrap Streams2 instance into a HandleWrap", | ||
@@ -5,0 +5,0 @@ "main": "lib/handle.js", |
10355