@onehat/data 1.15.2 → 1.15.3

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