Comparing version 1.1.14 to 1.2.0
@@ -35,3 +35,2 @@ "use strict"; | ||
var body = {}; | ||
var included = []; | ||
var uniqueIncluded = {}; | ||
@@ -56,3 +55,3 @@ if (stuff && Array.isArray(stuff)) { | ||
body['included'] = []; | ||
var includeUniqueKeys = Object.keys(uniqueIncluded).sort(); | ||
var includeUniqueKeys = Object.keys(uniqueIncluded); | ||
includeUniqueKeys.forEach(function (k) { | ||
@@ -59,0 +58,0 @@ body['included'].push(uniqueIncluded[k]); |
{ | ||
"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.1.14", | ||
"version": "1.2.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "json-api", |
@@ -53,3 +53,2 @@ import { | ||
const body: TJsonApiBody = {}; | ||
const included: Array<TJsonApiData> = []; | ||
const uniqueIncluded: TJsonaUniqueIncluded = {}; | ||
@@ -89,3 +88,3 @@ | ||
body['included'] = []; | ||
const includeUniqueKeys = Object.keys(uniqueIncluded).sort(); | ||
const includeUniqueKeys = Object.keys(uniqueIncluded); | ||
includeUniqueKeys.forEach((k) => { | ||
@@ -92,0 +91,0 @@ body['included'].push(uniqueIncluded[k]); |
Sorry, the diff of this file is not supported yet
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
126437
1993