Comparing version 0.0.10 to 0.0.11
@@ -103,4 +103,5 @@ 'use strict'; | ||
var data = Object.assign({}, attributes); | ||
var originalAttributes = this.attributes.toJS(); | ||
var newAttributes = void 0; | ||
var data = void 0; | ||
@@ -114,5 +115,7 @@ if (!this.get('id')) { | ||
if (patch) { | ||
newAttributes = Object.assign({}, originalAttributes, attributes); | ||
data = Object.assign({}, attributes); | ||
} else { | ||
newAttributes = Object.assign({}, attributes); | ||
data = Object.assign({}, originalAttributes, attributes); | ||
} else { | ||
data = attributes; | ||
} | ||
@@ -128,3 +131,3 @@ | ||
if (optimistic) this.attributes = (0, _mobx.asMap)(data); | ||
if (optimistic) this.attributes = (0, _mobx.asMap)(newAttributes); | ||
@@ -131,0 +134,0 @@ this.request = { label: label, abort: abort }; |
{ | ||
"name": "mobx-rest", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "REST conventions for mobx.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
38542
884
15