http-request-manager 18.13.26 → 18.13.28

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.
@@ -7078,8 +7078,7 @@ class HTTPManagerStateService extends ComponentStore {
7078
7078
  return this.dbManagerService.clearTable(this.databaseOptions.table).pipe(switchMap(() => this.dbManagerService.createDatabaseTable(tableDef)), switchMap(() => fetchFromAPI()));
7079
7079
  }
7080
7080
  const trackerAllowsRequest = this.queryParamsTrackerService.checkRequestOptions(this.resolvePath(effectiveParams), this.buildQueryTrackerOptions(options));
7081
- const shouldMakeRequest = trackerAllowsRequest;
7082
- if (shouldMakeRequest) {
7081
+ if (trackerAllowsRequest) {
7083
7082
  return fetchFromAPI();
7084
7083
  }
7085
7084
  return this.dbManagerService.getTableRecords(this.databaseOptions.table).pipe(switchMap((dbData) => {
@@ -7265,8 +7264,7 @@ class HTTPManagerStateService extends ComponentStore {
7265
7264
  return this.dbManagerService.clearTable(this.databaseOptions.table).pipe(tap(() => this.setCachedRequestSignature(this.databaseOptions.table, 'STREAM', requestSignature)), switchMap(() => this.httpManagerService.getRequest(requestOptions, effectiveParams)), map((apiData) => ({ data: apiData, fromCache: false })));
7266
7265
  }
7267
7266
  const trackerAllowsRequest = this.queryParamsTrackerService.checkRequestOptions(this.resolvePath(effectiveParams), this.buildQueryTrackerOptions(options));
7268
- const shouldMakeRequest = trackerAllowsRequest;
7269
- if (!shouldMakeRequest) {
7267
+ if (!trackerAllowsRequest) {
7270
7268
  return this.dbManagerService.getTableRecords(this.databaseOptions.table).pipe(switchMap((dbData) => {
7271
7269
  if (Array.isArray(dbData) && dbData.length > 0) {
7272
7270
  return of({ data: dbData, fromCache: true });