cqrs-swissknife
Advanced tools
Comparing version 0.4.34 to 0.4.35
@@ -96,5 +96,4 @@ 'use strict'; | ||
if (item.preCondition) { | ||
if ('mode' in item) | ||
item.preCondition = async (cmd, agg) => item.preCondition(cmd, new AggregateApi(agg, cmd, item.mode)); | ||
result.preConditions.push(new PreCondition({ name: [commandName] }, asyncParamCustomErrorApiCallback(item.preCondition, errorBuilders.businessRule, customApiBuilder, 'cmd', 'agg'))); | ||
const condition = ('mode' in item) ? async (cmd, agg) => item.preCondition(cmd, new AggregateApi(agg, cmd, item.mode)) : item.preCondition; | ||
result.preConditions.push(new PreCondition({ name: [commandName] }, asyncParamCustomErrorApiCallback(condition, errorBuilders.businessRule, customApiBuilder, 'cmd', 'agg'))); | ||
} | ||
@@ -101,0 +100,0 @@ } |
{ | ||
"name": "cqrs-swissknife", | ||
"version": "0.4.34", | ||
"version": "0.4.35", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.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
31163
822