jsonapi-mapper
Advanced tools
Comparing version
@@ -65,4 +65,3 @@ "use strict"; | ||
// Override type because we will overwrite relations | ||
var sampled = lodash_1.omit(lodash_1.clone(data), ['relations', 'attributes']); | ||
sampled.attributes = lodash_1.cloneDeep(data.attributes); | ||
var sampled = lodash_1.cloneDeep(lodash_1.omit(data, 'relations')); | ||
sampled.relations = lodash_1.mapValues(data.relations, sample); | ||
@@ -69,0 +68,0 @@ return sampled; |
{ | ||
"name": "jsonapi-mapper", | ||
"version": "1.0.0-beta.15", | ||
"version": "1.0.0-beta.16", | ||
"description": "JSON API-Compliant Serialization for your ORM", | ||
@@ -5,0 +5,0 @@ "main": "es5/index.js", |
Sorry, the diff of this file is not supported yet
44850
-0.35%635
-0.16%