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.4.0 to 9.5.0

5

lib/unexpectedMitm.js

@@ -257,7 +257,2 @@ /* global setImmediate, process, after, console */

function createMockResponse(responseProperties) {
if (typeof responseProperties === 'object' && responseProperties.body && (typeof responseProperties.body === 'string' || (typeof Buffer !== 'undefined' && Buffer.isBuffer(responseProperties.body)))) {
responseProperties = _.extend({}, responseProperties);
responseProperties.unchunkedBody = responseProperties.body;
delete responseProperties.body;
}
var mockResponse = new messy.HttpResponse(responseProperties);

@@ -264,0 +259,0 @@ mockResponse.statusCode = mockResponse.statusCode || 200;

6

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

@@ -50,6 +50,6 @@ "author": "Andreas Lind <andreas@one.com>",

"memoizesync": "0.5.0",
"messy": "^6.12.0",
"messy": "^6.16.0",
"mitm-papandreou": "1.3.2-patch1",
"underscore": "1.7.0",
"unexpected-messy": "^6.2.0"
"unexpected-messy": "^6.6.0"
},

@@ -56,0 +56,0 @@ "nyc": {

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