http-request-manager 18.13.29 → 18.13.31

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.
@@ -5148,6 +5148,7 @@ class LocalStorageManagerService extends ComponentStore {
5148
5148
  ? data.localStores.find(item => item.id === foundStore.id)
5149
5149
  : data.sessionStores.find(item => item.id === foundStore.id);
5150
5150
  if (!found) {
5151
+ console.warn('[CacheDebug] store$: settings entry found but no data entry in localStores/sessionStores', { store, foundStoreId: foundStore.id, storageType: foundStore.options?.storage });
5151
5152
  this.deleteStore({ name: store });
5152
5153
  return;
5153
5154
  }
@@ -7047,6 +7048,7 @@ class HTTPManagerStateService extends ComponentStore {
7047
7048
  }));
7048
7049
  }
7049
7050
  return this.localStorageManagerService.store$(this.databaseOptions.table).pipe(take(1), switchMap((storeData) => {
7051
+ console.log('[CacheDebug] storeData for table:', this.databaseOptions.table, { storeData, requestCache: storeData?.requestCache, expires: storeData?.expires });
7050
7052
  const forceRefresh = !!options?.forceRefresh;
7051
7053
  const storedSchemaSignature = this.getStoredSchemaSignature(storeData);
7052
7054
  const expires = storeData?.expires || 0;
@@ -7059,6 +7061,7 @@ class HTTPManagerStateService extends ComponentStore {
7059
7061
  }
7060
7062
  const expectedSchema = this.buildSchemaFromAdapter();
7061
7063
  const expectedSchemaSignature = this.buildSchemaSignature(expectedSchema);
7064
+ console.log('[CacheDebug] schema check:', { tableName: this.databaseOptions.table, storedSchemaSignature, expectedSchemaSignature, mismatch: storedSchemaSignature && storedSchemaSignature !== expectedSchemaSignature });
7062
7065
  if (storedSchemaSignature && storedSchemaSignature !== expectedSchemaSignature) {
7063
7066
  const tableDef = TableSchemaDef.adapt({ table: this.databaseOptions.table, schema: expectedSchema });
7064
7067
  return this.dbManagerService.clearTable(this.databaseOptions.table).pipe(switchMap(() => this.dbManagerService.createDatabaseTable(tableDef)), switchMap(() => fetchFromAPI()));
@@ -8221,7 +8224,9 @@ class HTTPManagerStateService extends ComponentStore {
8221
8224
  const normalized = this.trackerNormalizePath(path);
8222
8225
  const ignoreQueryParams = Array.isArray(options?.ignoreQueryParams) ? options.ignoreQueryParams : [];
8223
8226
  if (!normalized.hasQuery || ignoreQueryParams.length === 0) {
8224
- return !this.getRequestCacheMetadata(storeData, 'GET');
8227
+ const meta = this.getRequestCacheMetadata(storeData, 'GET');
8228
+ console.log('[CacheDebug] checkTrackerAllowsRequest: no query params path', { tableName, requestCacheMeta: meta, allowsRequest: !meta });
8229
+ return !meta;
8225
8230
  }
8226
8231
  const filtered = this.trackerFilterQuery(normalized.query, ignoreQueryParams);
8227
8232
  const keys = Object.keys(filtered);