mitm-papandreou
Advanced tools
Comparing version 1.3.0-patch1 to 1.3.1-patch1
@@ -0,3 +1,7 @@ | ||
## 1.3.1 (Sep 6, 2016) | ||
- Fixes calling `Socket.prototype.ref` and `Socket.prototype.unref` on the returned client and server sockets. | ||
Thanks, [Vincent Voyer](http://function.fr), for the help! | ||
## 1.3.0 (Aug 17, 2016) | ||
- Adds compatibility with Node v6.4. | ||
- Adds compatibility with Node v6.4. | ||
Thanks to [Andreas Lind](https://github.com/papandreou)! | ||
@@ -4,0 +8,0 @@ |
@@ -63,2 +63,4 @@ var DuplexStream = require("stream").Duplex | ||
InternalSocket.prototype._read = noop | ||
InternalSocket.prototype.ref = noop | ||
InternalSocket.prototype.unref = noop | ||
@@ -65,0 +67,0 @@ InternalSocket.prototype._write = function(data, encoding, done) { |
{ | ||
"name": "mitm-papandreou", | ||
"version": "1.3.0-patch1", | ||
"version": "1.3.1-patch1", | ||
"description": "Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -316,2 +316,26 @@ var _ = require("underscore") | ||
}) | ||
describe(".prototype.ref", function() { | ||
it("must allow calling on client", function() { | ||
Net.connect({host: "foo"}).ref() | ||
}) | ||
it("must allow calling on server", function() { | ||
var server; this.mitm.on("connection", function(s) { server = s }) | ||
Net.connect({host: "foo"}) | ||
server.ref() | ||
}) | ||
}) | ||
describe(".prototype.unref", function() { | ||
it("must allow calling on client", function() { | ||
Net.connect({host: "foo"}).unref() | ||
}) | ||
it("must allow calling on server", function() { | ||
var server; this.mitm.on("connection", function(s) { server = s }) | ||
Net.connect({host: "foo"}) | ||
server.unref() | ||
}) | ||
}) | ||
}) | ||
@@ -318,0 +342,0 @@ }) |
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
49618
14
801