mockserver-client
Advanced tools
Comparing version 1.0.13 to 1.0.14
{ | ||
"name": "mockserver-client", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"homepage": "https://github.com/jamesdbloom/mockserver-client-node", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -216,3 +216,3 @@ /* | ||
* | ||
* mockServerClient("localhost", 1080).mockAnyExpectation( | ||
* mockServerClient("localhost", 1080).mockAnyResponse( | ||
* { | ||
@@ -243,3 +243,3 @@ * 'httpRequest': { | ||
*/ | ||
var mockAnyExpectation = function (expectation) { | ||
var mockAnyResponse = function (expectation) { | ||
if (expectation.httpRequest.headers) { | ||
@@ -319,3 +319,3 @@ expectation.httpRequest.headers = arrayUniqueConcatenate(expectation.httpRequest.headers, defaultRequestHeaders); | ||
var mockSimpleResponse = function (path, responseBody, statusCode) { | ||
return mockAnyExpectation(createExpectation(path, responseBody, statusCode)); | ||
return mockAnyResponse(createExpectation(path, responseBody, statusCode)); | ||
}; | ||
@@ -326,3 +326,3 @@ /** | ||
* - default headers that are used to specify the response headers in mockSimpleResponse(...) | ||
* (note: if you use mockAnyExpectation(...) the default headers are not used) | ||
* (note: if you use mockAnyResponse(...) the default headers are not used) | ||
* | ||
@@ -514,3 +514,3 @@ * - headers added to every request matcher, this is particularly useful for running tests in parallel | ||
var _this = { | ||
mockAnyExpectation: mockAnyExpectation, | ||
mockAnyResponse: mockAnyResponse, | ||
mockWithCallback: mockWithCallback, | ||
@@ -517,0 +517,0 @@ mockSimpleResponse: mockSimpleResponse, |
{ | ||
"name": "mockserver-client", | ||
"description": "A node client for the MockServer", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"homepage": "https://github.com/jamesdbloom/mockserver", | ||
@@ -39,2 +39,3 @@ "author": { | ||
"karma-spec-reporter": "~0.0", | ||
"karma-xvfb-chrome-launcher": "0.0.1", | ||
"mockserver-grunt": "~1.0", | ||
@@ -41,0 +42,0 @@ "nodeunit": "~0.11" |
@@ -40,3 +40,3 @@ # mockserver-client-node | ||
```js | ||
mockServerClient("localhost", 1080).mockAnyExpectation( | ||
mockServerClient("localhost", 1080).mockAnyResponse( | ||
{ | ||
@@ -109,2 +109,3 @@ 'httpRequest': { | ||
* 2017-04-30 v1.0.13 Added websocket (i.e. method callbacks) | ||
* 2017-05-03 v1.0.14 Backward compatibility for mockAnyResponse | ||
@@ -111,0 +112,0 @@ --- |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
533155
113
5
19