fh-wfm-mediator
Advanced tools
Comparing version 1.0.0-pre.1 to 1.0.0-pre.2
@@ -19,3 +19,3 @@ 'use strict'; | ||
logErrors: true, | ||
timeout: 10000, | ||
timeout: 1000, | ||
run: true | ||
@@ -22,0 +22,0 @@ } |
@@ -90,6 +90,11 @@ const Promise = require('bluebird'); | ||
self.mediator.publish(topic, error); | ||
return Promise.reject(error); | ||
} | ||
return function() { | ||
return Promise.resolve(fn.apply(self, arguments)) | ||
var promise = fn.apply(self, arguments); | ||
promise = promise && _.isFunction(promise.then) ? promise : Promise.resolve(promise); | ||
return promise | ||
.then(publishDone) | ||
@@ -96,0 +101,0 @@ .catch(publishError); |
{ | ||
"name": "fh-wfm-mediator", | ||
"version": "1.0.0-pre.1", | ||
"version": "1.0.0-pre.2", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
75616
1688
0