@brightspace-hmc/siren-sdk
Advanced tools
Comparing version 2.60.0 to 2.61.0
{ | ||
"name": "@brightspace-hmc/siren-sdk", | ||
"version": "2.60.0", | ||
"version": "2.61.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -119,2 +119,16 @@ import { Actions, Classes, Rels } from '../../hypermedia-constants.js'; | ||
} | ||
equals(restrictionsEntity) { | ||
const diffs = [ | ||
[restrictionsEntity.isUnRestricted, this.isUnRestricted()] | ||
]; | ||
for (const [current, initial] of diffs) { | ||
if (current !== initial) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
} |
370193
10219