ts-japi
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -121,6 +121,8 @@ "use strict"; | ||
// Constructing base document. | ||
document.jsonapi = { version: version }; | ||
if (version) { | ||
document.jsonapi = { version: version }; | ||
} | ||
// Handling document metadata. | ||
if (metaizers.jsonapi) { | ||
document.jsonapi.meta = metaizers.jsonapi.metaize(); | ||
document.jsonapi = __assign(__assign({}, document.jsonapi), { meta: metaizers.jsonapi.metaize() }); | ||
} | ||
@@ -127,0 +129,0 @@ if (metaizers.document) { |
@@ -67,3 +67,3 @@ import Linker from "../classes/linker"; | ||
*/ | ||
version: string; | ||
version: string | null; | ||
/** | ||
@@ -70,0 +70,0 @@ * An object of attribute names to use in place of the |
{ | ||
"name": "ts-japi", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A highly-modular (typescript-friendly)-framework agnostic library for serializing data to the JSON:API specification", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
193948
2436