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

unexpected-mitm

Package Overview
Dependencies
Maintainers
5
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected-mitm - npm Package Compare versions

Comparing version 9.5.0 to 9.5.1

15

lib/unexpectedMitm.js

@@ -1018,4 +1018,8 @@ /* global setImmediate, process, after, console */

trimHeadersLower(assertionMockRequest);
var assertionExchange = new messy.HttpExchange({request: assertionMockRequest, response: mockResponse || mockResponseError});
var assertionExchange = new messy.HttpExchange({request: assertionMockRequest});
if (mockResponse) {
assertionExchange.response = mockResponse;
} else if (mockResponseError) {
assertionExchange.response = mockResponseError;
}
return expect(assertionExchange, 'to satisfy', {request: expectedRequestProperties});

@@ -1052,3 +1056,8 @@ }).then(function () {

var mockRequest = new messy.HttpRequest(requestProperties);
var httpExchange = new messy.HttpExchange({request: mockRequest, response: mockResponse || mockResponseError});
var httpExchange = new messy.HttpExchange({request: mockRequest});
if (mockResponse) {
httpExchange.response = mockResponse;
} else if (mockResponseError) {
httpExchange.response = mockResponseError;
}
httpConversation.exchanges.push(httpExchange);

@@ -1055,0 +1064,0 @@ // only attempt request validation with a mock

3

package.json
{
"name": "unexpected-mitm",
"version": "9.5.0",
"version": "9.5.1",
"description": "Unexpected plugin for the mitm library",

@@ -39,2 +39,3 @@ "author": "Andreas Lind <andreas@one.com>",

"sinon": "1.17.2",
"socketerrors-papandreou": "0.2.0-patch2",
"unexpected": "10.15.1",

@@ -41,0 +42,0 @@ "unexpected-documentation-site-generator": "^4.0.0",

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