jsonapi-circular-deserializer
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -54,7 +54,7 @@ const initializeResource = (flatResources, resource) => { | ||
if (Array.isArray(json.data)) { | ||
return parseResource(flatResources, json.data) | ||
} else { | ||
return json.data | ||
.map(resource => parseResource(flatResources, resource)) | ||
} else { | ||
return parseResource(flatResources, json.data) | ||
} | ||
} |
{ | ||
"name": "jsonapi-circular-deserializer", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "memory optimized json api deserializer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |