@onehat/data 1.20.0 → 1.20.1

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.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -265,7 +265,9 @@ class Entity extends EventEmitter {
265
265
  */
266
266
  emit(name) { // NOTE: Purposefully do not use an arrow-function, so we have access to arguments
267
267
 
268
- this.rehash();
268
+ if (!this.isDestroyed) {
269
+ this.rehash();
270
+ }
269
271
 
270
272
  return super.emit(...arguments);
271
273
  }