Comparing version 1.2.5 to 1.2.6
@@ -147,7 +147,7 @@ 'use strict'; | ||
if (!dottiesParts[i]) { | ||
return dottiesParts[i] = { count: 1, name: p }; | ||
return dottiesParts[i] = [p]; | ||
} | ||
if (dottiesParts[i].name !== p) { | ||
dottiesParts[i].count++; | ||
if (dottiesParts[i].indexOf(p) < 0) { | ||
dottiesParts[i].push(p); | ||
} | ||
@@ -160,4 +160,4 @@ }); | ||
for (var pi = 0, plen = dottiesParts.length; pi < plen; pi++) { | ||
if (dottiesParts[pi].count === 1) { | ||
toRemove += dottiesParts[pi].name; | ||
if (dottiesParts[pi].length === 1) { | ||
toRemove += dottiesParts[pi][0]; | ||
} else { | ||
@@ -164,0 +164,0 @@ break; |
{ | ||
"author": "adrai", | ||
"name": "cqrs-saga", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
## [v1.2.5](https://github.com/adrai/node-cqrs-saga/compare/v1.2.4...v1.2.5) | ||
## [v1.2.6](https://github.com/adrai/node-cqrs-saga/compare/v1.2.4...v1.2.6) | ||
- optimize structureParser | ||
@@ -3,0 +3,0 @@ |
Sorry, the diff of this file is not supported yet
255593