Comparing version 1.6.0 to 1.7.0
@@ -0,1 +1,4 @@ | ||
## 1.7.0 (Jan 30, 2019) | ||
- Adds compatibility with Node v10.15.1. | ||
## 1.6.0 (Jan 26, 2019) | ||
@@ -2,0 +5,0 @@ - Adds compatibility with Node v11.8. |
@@ -7,8 +7,11 @@ var DuplexStream = require("stream").Duplex | ||
var STREAM_BYTES_READ | ||
var NODE_VERSION = process.version | ||
exports = module.exports = InternalSocket | ||
exports.pair = pair | ||
var NODE_0_10 = Semver.satisfies(process.version, ">= 0.10 < 0.11") | ||
var NODE_10_AND_LATER = Semver.satisfies(process.version, ">= 10") | ||
var NODE_11_1_AND_LATER = Semver.satisfies(process.version, ">= 11.1") | ||
var NODE_0_10 = Semver.satisfies(NODE_VERSION, ">= 0.10 < 0.11") | ||
var NODE_10_AND_LATER = Semver.satisfies(NODE_VERSION, ">= 10") | ||
var NODE_11_1_AND_LATER = Semver.satisfies(NODE_VERSION, ">= 11.1") | ||
var NODE_11_2_AND_LATER = Semver.satisfies(NODE_VERSION, ">= 11.2") | ||
var NODE_10_15_1_AND_MAJOR = Semver.satisfies(NODE_VERSION, ">= 10.15.1 < 11") | ||
if (!NODE_0_10) var UV_EOF = process.binding("uv").UV_EOF | ||
@@ -124,3 +127,6 @@ | ||
// "showdown". | ||
if (NODE_11_1_AND_LATER) InternalSocket.prototype.shutdown = function(req) { | ||
if ( | ||
NODE_11_2_AND_LATER || | ||
NODE_10_15_1_AND_MAJOR | ||
) InternalSocket.prototype.shutdown = function(req) { | ||
this.once("end", req.oncomplete.bind(req, NO_ERROR, req.handle)) | ||
@@ -127,0 +133,0 @@ this.end() |
{ | ||
"name": "mitm", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"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": [ |
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
55347
911