cqrs-eventdenormalizer
Advanced tools
Comparing version 1.9.17 to 1.9.18
@@ -9,2 +9,3 @@ 'use strict'; | ||
sift = require('sift'), | ||
flatten = require('flat'), | ||
debug = require('debug')('denormalizer:collection'); | ||
@@ -209,3 +210,16 @@ /** | ||
// Clone the values to be sure no reference mistakes happen! | ||
vm.attributes = _.cloneDeep(vm.attributes); | ||
if (vm.attributes) { | ||
var flatAttr = flatten(vm.attributes); | ||
var undefines = []; | ||
_.each(flatAttr, function (v, k) { | ||
if (v === undefined) { | ||
undefines.push(k); | ||
} | ||
}); | ||
vm.attributes = vm.toJSON(); | ||
_.each(undefines, function (k) { | ||
vm.set(k, undefined); | ||
}); | ||
} | ||
this.replayingVms[vm.id] = vm; | ||
@@ -212,0 +226,0 @@ if (vm.actionOnCommit === 'delete') { |
{ | ||
"author": "adrai", | ||
"name": "cqrs-eventdenormalizer", | ||
"version": "1.9.17", | ||
"version": "1.9.18", | ||
"private": false, | ||
@@ -17,2 +17,3 @@ "main": "index.js", | ||
"dotty": "0.0.2", | ||
"flat": "1.6.0", | ||
"jsondate": "0.0.1", | ||
@@ -19,0 +20,0 @@ "lodash": "3.10.1", |
@@ -1,2 +0,2 @@ | ||
## [v1.9.17](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.9.15...v1.9.17) | ||
## [v1.9.18](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.9.15...v1.9.18) | ||
- fix a replay inmemory issue | ||
@@ -3,0 +3,0 @@ |
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
166223
3878
11
+ Addedflat@1.6.0
+ Addedflat@1.6.0(transitive)