@onehat/data 1.8.15 → 1.8.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Entity.js +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.8.15",
3
+ "version": "1.8.16",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/Entity.js CHANGED
@@ -1322,10 +1322,7 @@ class Entity extends EventEmitter {
1322
1322
  }
1323
1323
 
1324
1324
  get [Symbol.toStringTag]() {
1325
- if (this.isDestroyed) {
1326
- throw Error('this.toStringTag is no longer valid. Entity has been destroyed.');
1327
- }
1328
- return 'Entity {' + this.id + '} - ' + this.displayValue;
1325
+ return 'Entity {' + this.id + '} - ' + (this.isDestroyed ? 'destroyed' : this.displayValue);
1329
1326
  }
1330
1327
 
1331
1328
  get toJSON() {