@brightspace-hmc/siren-sdk
Advanced tools
Comparing version 2.122.0 to 2.123.0
{ | ||
"name": "@brightspace-hmc/siren-sdk", | ||
"version": "2.122.0", | ||
"version": "2.123.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -52,2 +52,9 @@ import { Actions } from '../../hypermedia-constants.js'; | ||
/** | ||
* @returns {number|undefined} Depth of the content-module item | ||
*/ | ||
depth() { | ||
return this._entity && this._entity.properties && this._entity.properties.depth; | ||
} | ||
/** | ||
* Updates the module to have the given description | ||
@@ -109,2 +116,3 @@ * @param {string} richText description to set on the module | ||
[this.title(), contentModule.title], | ||
[this.depth(), contentModule.depth], | ||
[this.descriptionRichText(), contentModule.descriptionRichText], | ||
@@ -111,0 +119,0 @@ [this.rawDescriptionRichText(), contentModule.rawDescriptionRichText] |
403831
11193