Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fh-wfm-mediator

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-wfm-mediator - npm Package Compare versions

Comparing version 0.4.0-alpha.629.2 to 0.4.0-alpha.629.3

18

lib/topics/index.js

@@ -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",

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