fh-wfm-mediator
Advanced tools
Comparing version 0.4.0-alpha.629.2 to 0.4.0-alpha.629.3
@@ -95,3 +95,6 @@ // TODO Move from Q to bluebird | ||
//Creating a unique channel to get the response | ||
config = config || {}; // guard against no passed config param | ||
payload = payload || {}; // guard against no passed payload param | ||
var topicUid = payload.topicUid || shortid.generate(); | ||
@@ -117,5 +120,12 @@ | ||
Topics.prototype.execute = function execute(topicName, config, payload) { | ||
if (payload) { | ||
payload.topicUid = payload.topicUid || shortid.generate(); | ||
} | ||
/*if (payload) { | ||
payload.topicUid = payload.topicUid || shortid.generate(); | ||
}*/ | ||
config = config || {}; // guard against no passed config param | ||
payload = payload || {}; // guard against no passed payload param | ||
payload.topicUid = payload.topicUid || shortid.generate(); | ||
var promise = this.getErrorAndDoneTopicPromises(topicName, config, payload); | ||
@@ -122,0 +132,0 @@ this.mediator.publish(this.getTopic(topicName), payload); |
{ | ||
"name": "fh-wfm-mediator", | ||
"version": "0.4.0-alpha.629.2", | ||
"version": "0.4.0-alpha.629.3", | ||
"description": "An implementation of the mediator pattern for use with WFM", | ||
@@ -5,0 +5,0 @@ "main": "lib/angular/mediator-ng.js", |
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
41897
820