@onehat/data 1.22.10 → 1.22.12

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.22.10",
3
+ "version": "1.22.12",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -319,6 +319,14 @@ class AjaxRepository extends Repository {
319
319
  return this._baseParams[name];
320
320
  }
321
321
 
322
+ /**
323
+ * Returns current value of base query params
324
+ * @param {object} params - Params to set. Key is parameter name, value is parameter value
325
+ */
326
+ getBaseParams() {
327
+ return this._baseParams;
328
+ }
329
+
322
330
  /**
323
331
  * Determines if query param exists
324
332
  * @param {string} name - Param name
@@ -385,6 +385,7 @@ class OneBuildRepository extends AjaxRepository {
385
385
  this.total++;
386
386
  this._setPaginationVars();
387
387
  this.emit('changeData', this.entities);
388
+ return entity;
388
389
  }
389
390
 
390
391
  async getSingleEntityFromServer(id) {