Comparing version 0.9.5 to 0.9.6
@@ -125,3 +125,3 @@ "use strict"; | ||
var _camelDot$camelDotMat, prop, props, detectChange, payload, result, prevState, state; | ||
var _camelDot$camelDotMat, prop, props, detectChange, payload, result, prevState; | ||
@@ -143,3 +143,2 @@ return _regenerator2.default.wrap(function _callee2$(_context2) { | ||
props: props, | ||
state: this.state, | ||
store: this, | ||
@@ -153,10 +152,7 @@ value: value | ||
result = _dotPropImmutable2.default[op](this.state, prop, value); | ||
prevState = void 0, state = void 0; | ||
prevState = this.state; | ||
if (op == "get") { | ||
prevState = state = this.state; | ||
} else { | ||
prevState = this.state; | ||
this.state = state = result; | ||
if (op != "get") { | ||
this.state = result; | ||
} | ||
@@ -172,4 +168,3 @@ | ||
detectChange: detectChange, | ||
prevState: prevState, | ||
state: state | ||
prevState: prevState | ||
}); | ||
@@ -270,3 +265,3 @@ | ||
_context3.next = 17; | ||
return fn(payload); | ||
return fn((0, _extends3.default)({}, payload, { state: this.state })); | ||
@@ -273,0 +268,0 @@ case 17: |
{ | ||
"name": "dot-store", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "Like Redux, but easy", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
27956
440