@untool/core
Advanced tools
Comparing version 1.9.3 to 1.9.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.9.4](https://github.com/untool/untool/compare/v1.9.3...v1.9.4) (2019-07-23) | ||
### Bug Fixes | ||
* **core:** arrays in config should override previous value ([a964808](https://github.com/untool/untool/commit/a964808)) | ||
## [1.9.3](https://github.com/untool/untool/compare/v1.9.2...v1.9.3) (2019-07-19) | ||
@@ -8,0 +19,0 @@ |
@@ -38,6 +38,9 @@ 'use strict'; | ||
mergeWith({}, ...args, (objValue, srcValue, key) => { | ||
if (Array.isArray(objValue) && 'mixins' === key) { | ||
return [...objValue, ...srcValue].filter( | ||
(curr, index, self) => self.indexOf(curr) === index | ||
); | ||
if (Array.isArray(objValue)) { | ||
if ('mixins' === key) { | ||
return [...objValue, ...srcValue].filter( | ||
(curr, index, self) => self.indexOf(curr) === index | ||
); | ||
} | ||
return srcValue; | ||
} | ||
@@ -44,0 +47,0 @@ }); |
{ | ||
"name": "@untool/core", | ||
"version": "1.9.3", | ||
"version": "1.9.4", | ||
"description": "untool core", | ||
@@ -35,3 +35,4 @@ "repository": { | ||
"node": ">8.6.0" | ||
} | ||
}, | ||
"gitHead": "4e2a7815bbc17847bad2b9064732e254e210ddda" | ||
} |
34831
10
315