@brightspace-hmc/siren-sdk
Advanced tools
Comparing version 2.27.0 to 2.28.0
{ | ||
"name": "@brightspace-hmc/siren-sdk", | ||
"version": "2.27.0", | ||
"version": "2.28.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -95,6 +95,14 @@ import { Actions, Classes } from '../../../hypermedia-constants.js'; | ||
} | ||
enforcedTimeLimit() { | ||
enforcedTimeLimit(data) { | ||
const entity = this.getEnforcedTimingSubEntity(); | ||
if (!entity) return; | ||
return entity.properties && entity.properties.timeLimit; | ||
if (!entity || !entity.hasProperty('timeLimit')) return; | ||
if (data) { | ||
return { | ||
...entity.properties.timeLimit, | ||
value: data | ||
}; | ||
} | ||
return entity.properties.timeLimit; | ||
} | ||
@@ -132,6 +140,13 @@ | ||
recommendedTimeLimit() { | ||
recommendedTimeLimit(data) { | ||
const entity = this.getRecommendedTimingSubEntity(); | ||
if (!entity) return; | ||
return entity.properties && entity.properties.timeLimit; | ||
if (!entity || !entity.hasProperty('timeLimit')) return; | ||
if (data) { | ||
return { | ||
...entity.properties.timeLimit, | ||
value: data | ||
}; | ||
} | ||
return entity.properties.timeLimit; | ||
} | ||
@@ -138,0 +153,0 @@ |
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
340625
9387