Comparing version 0.1.30 to 0.1.31
@@ -98,24 +98,33 @@ var util = require('util'); | ||
util.log(str); | ||
if (offramp.routeResponse) { | ||
util.log('routing response....'); | ||
var responseObj = JSON.parse(str); | ||
if (response.statusCode == 200) { | ||
if (offramp.mergeResponse) { | ||
if (offramp.routeResponse) { | ||
util.log('routing response....'); | ||
var responseObj = JSON.parse(str); | ||
for(var prop in responseObj) { | ||
message.payload[prop] = responseObj[prop]; | ||
} | ||
if (offramp.mergeResponse) { | ||
offramp.publish(message.payload); | ||
for(var prop in responseObj) { | ||
message.payload[prop] = responseObj[prop]; | ||
} | ||
} else { | ||
offramp.publish(message.payload); | ||
offramp.publish(responseObj); | ||
} | ||
} | ||
} else { | ||
offramp.publish(responseObj); | ||
} | ||
} | ||
} else { | ||
util.log('HttpOffRamp - > problem with response '); | ||
util.log('HttpOffRamp - > original message: '); | ||
console.log(message); | ||
} | ||
}); | ||
@@ -122,0 +131,0 @@ }; |
{ "author": "Phil Taylor" | ||
, "name": "simpleesb" | ||
, "description": "Provides basic ESB services to transfer data between applications." | ||
, "version": "0.1.30" | ||
, "version": "0.1.31" | ||
, "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
152261
1034