taxtank-core 0.31.16 → 0.31.17

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.
@@ -10328,8 +10328,7 @@ let RestService$1 = class RestService extends DataService {
10328
10328
  this.setCache([]);
10329
10329
  return this.http.get(path)
10330
10330
  .pipe(map((response) => this.isApiPlatform ? response['hydra:member'] : toArray(response)), map((response) => {
10331
- const result = response.map((item) => this.createModelInstance(item));
10332
- this.handleResponse(result, 'get');
10331
+ this.setCache(response, true);
10333
10332
  return this.cache;
10334
10333
  }));
10335
10334
  }
@@ -10873,8 +10872,8 @@ class BasiqTokenService extends RestService$1 {
10873
10872
  * Access token to use basiq flow
10874
10873
  */
10875
10874
  get() {
10876
- if (this.cache && this.cache.first.isExpired()) {
10877
- this.setCache(undefined);
10875
+ if (this.cache && this.getCacheFirst().isExpired()) {
10876
+ this.cache = undefined;
10878
10877
  }
10879
10878
  return super.get();
10880
10879
  }