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.
- package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
- package/esm2020/lib/services/http/rest/rest.service.mjs +2 -3
- package/fesm2015/taxtank-core.mjs +3 -4
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +3 -4
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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.
|
|
10877
|
-
this.
|
|
10875
|
+
if (this.cache && this.getCacheFirst().isExpired()) {
|
|
10876
|
+
this.cache = undefined;
|
|
10878
10877
|
}
|
|
10879
10878
|
return super.get();
|
|
10880
10879
|
}
|