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 5.11.1 to 5.11.2

18

mockServerClient.js

@@ -27,3 +27,7 @@ /*

var makeRequest = (typeof require !== 'undefined' ? require('./sendRequest').sendRequest(tls, caCertPemFilePath) : function (host, port, path, jsonBody, resolveCallback) {
var runningInNode = function () {
return (typeof require !== 'undefined') && require('browser-or-node').isNode;
};
var makeRequest = (runningInNode() ? require('./sendRequest').sendRequest(tls, caCertPemFilePath) : function (host, port, path, jsonBody) {
var body = (typeof jsonBody === "string" ? jsonBody : JSON.stringify(jsonBody || ""));

@@ -175,3 +179,3 @@ var url = (tls ? 'https' : 'http') + '://' + host + ':' + port + path;

var WebSocketClient = (typeof require !== 'undefined' ? require('./webSocketClient').webSocketClient(tls, caCertPemFilePath) : function (host, port, contextPath) {
var WebSocketClient = (runningInNode() ? require('./webSocketClient').webSocketClient(tls, caCertPemFilePath) : function (host, port, contextPath) {
var clientId;

@@ -606,2 +610,4 @@ var clientIdHandler;

sucess(result.body && JSON.parse(result.body));
}, function (err) {
error(err);
});

@@ -627,2 +633,4 @@ }

sucess(result.body && JSON.parse(result.body));
}, function (err) {
error(err);
});

@@ -650,2 +658,4 @@ }

sucess(result.body && JSON.parse(result.body));
}, function (err) {
error(err);
});

@@ -673,2 +683,4 @@ }

sucess(result.body && JSON.parse(result.body));
}, function (err) {
error(err);
});

@@ -695,2 +707,4 @@ }

sucess(result.body && result.body.split("------------------------------------"));
}, function (err) {
error(err);
});

@@ -697,0 +711,0 @@ }

19

package.json
{
"name": "mockserver-client",
"description": "A node client for the MockServer",
"version": "5.11.1",
"version": "5.11.2",
"homepage": "http://mock-server.com",

@@ -37,14 +37,14 @@ "author": {

"grunt-contrib-clean": "~2.0",
"grunt-contrib-jshint": "~2.0",
"grunt-contrib-nodeunit": "~2.0",
"grunt-contrib-jshint": "~3.0",
"grunt-contrib-nodeunit": "~2.1",
"grunt-exec": "~3.0",
"grunt-karma": "~3.0",
"jasmine-core": "~3.3",
"karma": "^4.4.1",
"grunt-karma": "~4.0",
"jasmine-core": "~3.6",
"karma": "^5.2.2",
"karma-chrome-launcher": "~3.1",
"karma-firefox-launcher": "~1.2",
"karma-jasmine": "~2.0",
"karma-firefox-launcher": "~2.1",
"karma-jasmine": "~4.0",
"karma-spec-reporter": "0.0.32",
"karma-xvfb-chrome-launcher": "0.0.1",
"mockserver-node": "5.11.1",
"mockserver-node": "5.11.2",
"nodeunit": "^0.11.3"

@@ -58,2 +58,3 @@ },

"dependencies": {
"browser-or-node": "^1.3.0",
"grunt-ts": "^6.0.0-beta.22",

@@ -60,0 +61,0 @@ "q": "~2.0",

@@ -16,5 +16,3 @@ /*

var defer = function () {
var promise = (global.protractor && protractor.promise.USE_PROMISE_MANAGER !== false)
? protractor.promise
: Q;
var promise = (global.protractor && global.protractor.promise.USE_PROMISE_MANAGER !== false) ? global.protractor.promise : Q;
var deferred = promise.defer();

@@ -21,0 +19,0 @@

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