redux-state-branch
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -49,3 +49,3 @@ export declare const makeType: (prefix: string, suffix?: string | undefined) => string; | ||
type: string; | ||
items: any; | ||
items: any[]; | ||
}; | ||
@@ -52,0 +52,0 @@ update(items: ItemsT<T>, devToolsSuffix?: string): { |
@@ -61,3 +61,3 @@ "use strict"; | ||
var _this = this; | ||
var newCreateItems = exports.ensureArray(items || {}).reduce(function (acc, item) { | ||
var newCreateItems = exports.ensureArray(items || {}).map(function (item) { | ||
if (item.id === undefined) { | ||
@@ -68,5 +68,4 @@ item.id = "-" + Math.random() | ||
} | ||
acc[item.id] = __assign({}, _this.defaultItem, item); | ||
return acc; | ||
}, {}); | ||
return __assign({}, _this.defaultItem, item); | ||
}); | ||
return { | ||
@@ -73,0 +72,0 @@ type: exports.makeType(this.constant.CREATE, devToolsSuffix), |
{ | ||
"name": "redux-state-branch", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "A redux wrapper for sane people.", |
Sorry, the diff of this file is not supported yet
21849
429