Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mitm

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mitm - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

3

CHANGELOG.md

@@ -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.

14

lib/internal_socket.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc