decorated-redux
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -56,4 +56,5 @@ "use strict"; | ||
var key = Array.isArray(path) ? path[0] : path; | ||
var cloned = clone(object); | ||
cloned[path[0]] = newValue; | ||
cloned[key] = newValue; | ||
@@ -68,6 +69,7 @@ return cloned; | ||
var key = Array.isArray(path) ? path[0] : path; | ||
var cloned = clone(object); | ||
delete cloned[path[0]]; | ||
delete cloned[key]; | ||
return cloned; | ||
} |
{ | ||
"name": "decorated-redux", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
"main": "./index.js", | ||
"scripts": { | ||
"prepublisha": "babel --out-dir . src --presets es2015", | ||
"prepublish": "babel --out-dir . src --presets es2015", | ||
"watch": "babel --out-dir . src --presets es2015 --watch", | ||
"test": "cd test && tsc && mocha specs" | ||
@@ -9,0 +10,0 @@ }, |
@@ -44,4 +44,5 @@ export function createActions(ActionDefinitions) { | ||
const key = Array.isArray(path) ? path[0] : path; | ||
const cloned = clone(object); | ||
cloned[path[0]] = newValue; | ||
cloned[key] = newValue; | ||
@@ -56,6 +57,7 @@ return cloned; | ||
const key = Array.isArray(path) ? path[0] : path; | ||
const cloned = clone(object); | ||
delete cloned[path[0]]; | ||
delete cloned[key]; | ||
return cloned; | ||
} |
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
18064
513