Comparing version 3.4.1 to 3.4.2
@@ -51,5 +51,5 @@ 'use strict'; | ||
write(data, encoding) { | ||
write(data, encoding, callback) { | ||
super.write(data, encoding); | ||
super.write(data, encoding, callback); | ||
this._shot.payloadChunks.push(new Buffer(data, encoding)); | ||
@@ -59,5 +59,9 @@ return true; // Write always returns false when disconnected | ||
end(data, encoding) { | ||
end(data, encoding, callback) { | ||
super.end(data, encoding); | ||
if (data) { | ||
this.write(data, encoding); | ||
} | ||
super.end(callback); | ||
this.emit('finish'); | ||
@@ -64,0 +68,0 @@ } |
{ | ||
"name": "shot", | ||
"description": "Injects a fake HTTP request/response into a node HTTP server", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"repository": "git://github.com/hapijs/shot", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12301
257