cqrs-domain
Advanced tools
Comparing version 2.14.5 to 2.14.6
@@ -217,6 +217,13 @@ var debug = require('debug')('domain'), | ||
if (this.definitions.event.commitStamp) { | ||
this.eventStore.defineEventMappings({ | ||
commitStamp: this.definitions.event.commitStamp | ||
}); | ||
if (this.definitions.event.commitStamp || this.definitions.event.position) { | ||
var mappings = {}; | ||
if (this.definitions.event.commitStamp) { | ||
mappings.commitStamp = this.definitions.event.commitStamp; | ||
} | ||
if (this.definitions.event.position) { | ||
mappings.position = this.definitions.event.position; | ||
} | ||
this.eventStore.defineEventMappings(mappings); | ||
} | ||
@@ -223,0 +230,0 @@ return this; |
{ | ||
"author": "adrai", | ||
"name": "cqrs-domain", | ||
"version": "2.14.5", | ||
"version": "2.14.6", | ||
"private": false, | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"dotty": "0.0.2", | ||
"eventstore": "1.14.2", | ||
"eventstore": "1.14.3", | ||
"jsondate": "0.0.1", | ||
@@ -20,0 +20,0 @@ "lodash": "4.17.11", |
@@ -408,3 +408,6 @@ | ||
// optional, if defined the commit date of the eventstore will be saved in this value | ||
commitStamp: 'commitStamp' | ||
commitStamp: 'commitStamp', | ||
// optional, if defined and the eventstore db implemntation supports this the position of the event in the eventstore will be saved in this value | ||
position: 'position' | ||
}); | ||
@@ -411,0 +414,0 @@ |
@@ -0,1 +1,4 @@ | ||
## [v2.14.6](https://github.com/adrai/node-cqrs-domain/compare/v2.14.5...v2.14.6) | ||
- updated node-eventstore and added optional position property to event | ||
## [v2.14.5](https://github.com/adrai/node-cqrs-domain/compare/v2.14.4...v2.14.5) | ||
@@ -2,0 +5,0 @@ - updated node-eventstore and lodash dependencies |
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
287071
6630
1281
+ Addedeventstore@1.14.3(transitive)
- Removedeventstore@1.14.2(transitive)
Updatedeventstore@1.14.3