Comparing version 1.2.0 to 1.2.1
@@ -123,5 +123,3 @@ "use strict"; | ||
var model = _this.buildModel(dataItem.type, dataItem.id); | ||
if (model) { | ||
relationModels_1.push(model); | ||
} | ||
relationModels_1.push(model || dataItem); | ||
}); | ||
@@ -131,3 +129,3 @@ return relationModels_1; | ||
else if (data.id && data.type) { | ||
return this.buildModel(data.type, data.id); | ||
return this.buildModel(data.type, data.id) || data; | ||
} | ||
@@ -134,0 +132,0 @@ return null; |
{ | ||
"name": "jsona", | ||
"description": "Provide data formatters (data model builder & json builder) to work with JSON API specification v1.0 in your JavaScript / TypeScript code", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "json-api", |
@@ -174,5 +174,3 @@ import { | ||
const model = this.buildModel(dataItem.type, dataItem.id); | ||
if (model) { | ||
relationModels.push(model); | ||
} | ||
relationModels.push(model || dataItem); | ||
}); | ||
@@ -182,3 +180,3 @@ | ||
} else if (data.id && data.type) { | ||
return this.buildModel(data.type, data.id); | ||
return this.buildModel(data.type, data.id) || data; | ||
} | ||
@@ -190,2 +188,2 @@ | ||
export default ReduxObjectDenormalizer; | ||
export default ReduxObjectDenormalizer; |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
126343
1990
2