rest-client-sdk
Advanced tools
Comparing version 2.0.0-rc.9 to 2.0.0-rc.10
@@ -5,2 +5,5 @@ # Changelog | ||
## 2.0.0-rc.10 | ||
deserialize + normalize item in unitofwork | ||
## 2.0.0-rc.9 | ||
@@ -7,0 +10,0 @@ creating or updating an "complex" entity (not a basic JS object) would throw an error |
{ | ||
"name": "rest-client-sdk", | ||
"version": "2.0.0-rc.9", | ||
"version": "2.0.0-rc.10", | ||
"description": "Rest Client SDK for API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -151,6 +151,5 @@ import URI from 'urijs'; | ||
const identifier = this._getEntityIdentifier(decodedItem); | ||
this.sdk.unitOfWork.registerClean(identifier, decodedItem); | ||
// and finally return the denormalized item | ||
return this.serializer.denormalizeItem( | ||
const item = this.serializer.denormalizeItem( | ||
decodedItem, | ||
@@ -160,2 +159,9 @@ this.metadata, | ||
); | ||
this.sdk.unitOfWork.registerClean( | ||
identifier, | ||
this.serializer.normalizeItem(item) | ||
); | ||
return item; | ||
}); | ||
@@ -162,0 +168,0 @@ } |
@@ -8,2 +8,6 @@ import { isImmutable } from 'immutable'; | ||
function objectDiffers(left, right) { | ||
if (typeof left !== 'object' || typeof right !== 'object') { | ||
return false; | ||
} | ||
const result = diff(left, right); | ||
@@ -10,0 +14,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1854246
19774