Comparing version 0.1.17 to 0.1.18
@@ -15,2 +15,3 @@ var util = require('util'); | ||
this.httpMethod = 'GET'; | ||
this.mergeResponse = false; | ||
} | ||
@@ -31,2 +32,7 @@ | ||
HttpScraper.prototype.MergeResponse = function() { | ||
this.mergeResponse = true; | ||
return this; | ||
}; | ||
HttpOffRamp.prototype.send = function(message) { | ||
@@ -77,5 +83,17 @@ | ||
var responseObj = JSON.parse(str); | ||
offramp.publish(responseObj); | ||
} | ||
if (offramp.mergeResponse) { | ||
for(var prop in responseObj) { | ||
message.payload[prop] = responseObj[prop]; | ||
} | ||
offramp.publish(message.payload); | ||
} else { | ||
offramp.publish(responseObj); | ||
} | ||
} | ||
@@ -82,0 +100,0 @@ }); |
{ "author": "Phil Taylor" | ||
, "name": "simpleesb" | ||
, "description": "Provides basic ESB services to transfer data between applications." | ||
, "version": "0.1.17" | ||
, "version": "0.1.18" | ||
, "repository": { | ||
@@ -6,0 +6,0 @@ "url": "https://bitbucket.org/phil_a_taylor/simpleesb" |
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
151092
994