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

unexpected-mitm

Package Overview
Dependencies
Maintainers
2
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 2.3.4 to 2.4.0

6

lib/unexpectedMitm.js

@@ -574,6 +574,6 @@ /* global setImmediate, after, console */

getMockResponse(responseProperties, passError(cb, function (mockResponse) {
httpConversationSatisfySpec.exchanges.push(new messy.HttpExchange({
request: new messy.HttpRequest(expectedRequestProperties),
httpConversationSatisfySpec.exchanges.push({
request: expectedRequestProperties,
response: mockResponse
}));
});
cb();

@@ -580,0 +580,0 @@ }));

{
"name": "unexpected-mitm",
"version": "2.3.4",
"version": "2.4.0",
"description": "Unexpected plugin for the mitm library",

@@ -18,4 +18,4 @@ "main": "lib/unexpectedMitm.js",

"unexpected": "6.0.3",
"unexpected-http": "1.8.1",
"unexpected-messy": "2.11.1"
"unexpected-http": "1.9.0",
"unexpected-messy": "2.13.0"
},

@@ -22,0 +22,0 @@ "dependencies": {

@@ -306,3 +306,3 @@ /*global describe, it, __dirname, setImmediate, beforeEach, afterEach*/

url: 'GET /foo',
headers: { Foo: /bar/ }
headers: { Foo: expect.it("to match", /bar/) }
},

@@ -330,3 +330,3 @@ response: 200

'// GET /foo\n' +
'// Foo: /bar/\n' +
"// Foo: // should satisfy expect.it('to match', /bar/)\n" +
'//\n' +

@@ -333,0 +333,0 @@ '// HTTP/1.1 200 OK');

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