@onehat/data 1.15.2 → 1.15.4

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.15.2",
3
+ "version": "1.15.4",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -835,7 +835,8 @@ class AjaxRepository extends Repository {
835
835
  console.log(url + ' error', error);
836
836
  console.log('response:', error.response);
837
837
  }
838
- this.emit('error', error);
838
+ this.throwError(error);
839
+ return;
839
840
  });
840
841
  }
841
842
 
@@ -134,7 +134,9 @@ class OneBuildRepository extends AjaxRepository {
134
134
  return false;
135
135
  }
136
136
  // END MOD
137
- this.emit('error', error);
137
+
138
+ this.throwError(error);
139
+ return;
138
140
  });
139
141
  }
140
142