unexpected-mitm
Advanced tools
Comparing version 9.1.5 to 9.1.6
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52591
943