Comparing version 5.0.2 to 5.0.3
# Changelog | ||
## `5.0.3` | ||
- Fixes another edge case when passing a model to `collection.set` | ||
## `5.0.2` | ||
@@ -4,0 +8,0 @@ |
@@ -822,4 +822,5 @@ 'use strict'; | ||
var model = id ? _this.get(id) : null; | ||
if (model && change) | ||
model.set(resource); | ||
if (model && change) { | ||
model.set(resource instanceof Model ? resource.toJS() : resource); | ||
} | ||
if (!model && add) | ||
@@ -826,0 +827,0 @@ _this.add([resource]); |
{ | ||
"name": "mobx-rest", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "REST conventions for mobx.", | ||
@@ -5,0 +5,0 @@ "jest": { |
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
70950
1287