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

cqrs-domain

Package Overview
Dependencies
Maintainers
2
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cqrs-domain - npm Package Compare versions

Comparing version 2.14.5 to 2.14.6

15

lib/domain.js

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

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