Comparing version 4.3.2 to 4.3.3
@@ -68,4 +68,6 @@ "use strict"; | ||
if(data && typeof data.pipe == "function") | ||
if(data && typeof data.pipe == "function") { | ||
data.on('error', chain); | ||
return data.pipe(req); | ||
} | ||
@@ -72,0 +74,0 @@ if(data) |
{ | ||
"name": "nyks", | ||
"version": "4.3.2", | ||
"version": "4.3.3", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -17,4 +17,5 @@ "use strict"; | ||
return new Promise(function(resolve) { | ||
return new Promise(function(resolve, reject) { | ||
src.pipe(dest); | ||
src.on('error', reject); | ||
dest.on('close', resolve); | ||
@@ -21,0 +22,0 @@ }); |
58736
1567