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

mockserver-client

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mockserver-client - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

2

bower.json
{
"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

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