mockserver-client
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "mockserver-client", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://github.com/jamesdbloom/mockserver-client-node", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -16,4 +16,10 @@ /* | ||
function sendRequest(host, port, path, jsonBody) { | ||
var deferred = Q.defer(); | ||
var promise = (global.protractor ? protractor.promise : Q); | ||
var deferred = promise.defer(); | ||
if (global.protractor) | ||
{ | ||
deferred.resolve = deferred.fulfill; | ||
} | ||
var body = (typeof jsonBody === "string" ? jsonBody : JSON.stringify(jsonBody || "")); | ||
@@ -20,0 +26,0 @@ var options = { |
{ | ||
"name": "mockserver-client", | ||
"description": "A node client for the MockServer", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://github.com/jamesdbloom/mockserver", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -99,2 +99,3 @@ # mockserver-client-node | ||
* 2014-04-12 v1.0.3 Improved connection error handling | ||
* 2014-04-12 v1.0.4 Supporting protractor based promises | ||
@@ -101,0 +102,0 @@ --- |
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
183230
4490
104