easy-state
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -47,6 +47,6 @@ 'use strict'; | ||
(0, _utils.checkForUndefinedKeys)(previousState, nextState); | ||
currentState = Object.assign({}, initialState, nextState); | ||
currentState = Object.assign({}, currentState, nextState); | ||
} else if (typeof nextState === 'function') { | ||
(0, _utils.checkForUndefinedKeys)(previousState, nextState(previousState)); | ||
currentState = Object.assign({}, initialState, nextState(previousState)); | ||
currentState = Object.assign({}, currentState, nextState(previousState)); | ||
} else { | ||
@@ -53,0 +53,0 @@ throw new Error('Expected nextState to be a plain object or a callback function.'); |
{ | ||
"name": "easy-state", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Simple state manipulation without any frameworks.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
147034
10