cqrs-domain
Advanced tools
Comparing version 2.14.6 to 2.14.7
@@ -741,2 +741,4 @@ var Definition = require('../definitionBase'), | ||
var previousModel = new AggregateModel(aggregateModel.id, aggregateModel); | ||
this.checkPreConditions(cmd, aggregateModel, function (err) { | ||
@@ -747,4 +749,2 @@ if (err) { | ||
var previousModel = new AggregateModel(aggregateModel.id, aggregateModel); | ||
// attach apply function | ||
@@ -751,0 +751,0 @@ aggregateModel.apply = applyHelper(self, aggregateModel, cmd); |
{ | ||
"author": "adrai", | ||
"name": "cqrs-domain", | ||
"version": "2.14.6", | ||
"version": "2.14.7", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
## [v2.14.7](https://github.com/adrai/node-cqrs-domain/compare/v2.14.6...v2.14.7) | ||
- prepare previousModel before evaluating preConditions in order to prevent model mutation inside them | ||
## [v2.14.6](https://github.com/adrai/node-cqrs-domain/compare/v2.14.5...v2.14.6) | ||
@@ -2,0 +5,0 @@ - updated node-eventstore and added optional position property to event |
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
287256