@onehat/data 1.8.0 → 1.8.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.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -102,6 +102,11 @@ class AjaxRepository extends Repository {
102
102
  */
103
103
  this.allowsMultiSort = false;
104
104
 
105
+ /**
106
+ * @member {object} lastSendOptions - Last options sent to server
107
+ */
108
+ this.lastSendOptions = null;
109
+
105
110
  /**
106
111
  * @member {Object} _params - Object of query params to submit to server
107
112
  * @private
@@ -786,6 +791,8 @@ class AjaxRepository extends Repository {
786
791
  console.log(url, options);
787
792
  }
788
793
 
794
+ this.lastSendOptions = options;
795
+
789
796
  return this.axios(options)
790
797
  .catch(error => {
791
798
  if (this.debugMode) {
@@ -113,6 +113,8 @@ class OneBuildRepository extends AjaxRepository {
113
113
  console.log(url, options);
114
114
  }
115
115
 
116
+ this.lastSendOptions = options;
117
+
116
118
  return this.axios(options)
117
119
  .catch(error => {
118
120
  // BEGIN MOD