@onehat/data 1.19.28 → 1.19.29

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.19.28",
3
+ "version": "1.19.29",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -2194,6 +2194,7 @@ export default class Repository extends EventEmitter {
2194
2194
  if (this.errorHandler) {
2195
2195
  this.errorHandler(obj);
2196
2196
  } else {
2197
+ this.emit('error', obj);
2197
2198
  throw Error(obj);
2198
2199
  }
2199
2200
  }