@onehat/data 1.22.33 → 1.22.35

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.33",
3
+ "version": "1.22.35",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -325,6 +325,10 @@ class OneBuildRepository extends AjaxRepository {
325
325
  }),
326
326
  method: 'POST',
327
327
  baseURL: this.api.baseURL,
328
+ headers: _.merge({
329
+ Accept: 'application/json',
330
+ }, this.headers),
331
+ timeout: this.timeout,
328
332
  };
329
333
 
330
334
  if (this.debugMode) {
@@ -395,8 +399,7 @@ class OneBuildRepository extends AjaxRepository {
395
399
  async loadOneAdditionalEntity(id) {
396
400
  const entity = await this.getSingleEntityFromServer(id);
397
401
  if (!entity) {
398
- this.throwError('entity not found');
399
- return;
402
+ return null;
400
403
  }
401
404
 
402
405
  this._relayEntityEvents(entity);