@onehat/data 1.22.9 → 1.22.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.22.9",
3
+ "version": "1.22.10",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -1832,7 +1832,7 @@ class Entity extends EventEmitter {
1832
1832
  * @fires destroy
1833
1833
  */
1834
1834
  destroy = () => {
1835
- if (this.isFrozen) {
1835
+ if (this.isFrozen || this.isDestroyed) {
1836
1836
  return;
1837
1837
  }
1838
1838