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.1.5 to 9.1.6

7

lib/unexpectedMitm.js

@@ -439,3 +439,3 @@ /* global setImmediate, process, after, console */

}
var searchRegExp = /([ ]*)(.*)(['"])with http recorded and injected\3,/g;
var searchRegExp = /([ ]*)(.*)(['"])with http recorded and injected(\3,| )/g;
/*

@@ -453,3 +453,4 @@ * Ensure the search for the for the assertion string occurs from

before = matchSearchRegExp[2],
quote = matchSearchRegExp[3];
quote = matchSearchRegExp[3],
after = matchSearchRegExp[4];

@@ -459,3 +460,3 @@ (injectionsBySourceFileName[sourceFileName] = injectionsBySourceFileName[sourceFileName] || []).push({

length: matchSearchRegExp[0].length,
replacement: lineIndentation + before + quote + 'with http mocked out' + quote + ', ' + stringify(recordedExchanges, indentationWidth).replace(/\n^/mg, '\n' + lineIndentation) + ','
replacement: lineIndentation + before + quote + 'with http mocked out' + quote + ', ' + stringify(recordedExchanges, indentationWidth).replace(/\n^/mg, '\n' + lineIndentation) + (after === ' ' ? ', ' + quote : ',')
});

@@ -462,0 +463,0 @@ } else {

{
"name": "unexpected-mitm",
"version": "9.1.5",
"version": "9.1.6",
"description": "Unexpected plugin for the mitm library",

@@ -5,0 +5,0 @@ "author": "Andreas Lind <andreas@one.com>",

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