http-request-manager 18.13.3 → 18.13.5
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.
|
@@ -1156,7 +1156,6 @@ class QueryParamsTrackerService {
|
|
|
1156
1156
|
if (initialized === '1') {
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
|
-
this.clearTracking();
|
|
1160
1159
|
sessionStorage.setItem(TRACKER_SESSION_INIT_KEY, '1');
|
|
1161
1160
|
}
|
|
1162
1161
|
restoreState() {
|
|
@@ -7926,7 +7925,8 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
7926
7925
|
if (!this.hasDatabase || !this.databaseOptions?.table)
|
|
7927
7926
|
return;
|
|
7928
7927
|
const tableName = this.databaseOptions.table;
|
|
7929
|
-
this.dbManagerService.clearTable(tableName)
|
|
7928
|
+
this.dbManagerService.clearTable(tableName)
|
|
7929
|
+
.subscribe({
|
|
7930
7930
|
next: () => {
|
|
7931
7931
|
this.clearRequestCacheMetadata(tableName);
|
|
7932
7932
|
if (this.dataType === DataType.ARRAY) {
|
|
@@ -7941,6 +7941,17 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
7941
7941
|
}
|
|
7942
7942
|
});
|
|
7943
7943
|
}
|
|
7944
|
+
clearTable(tableName) {
|
|
7945
|
+
this.dbManagerService.clearTable(tableName)
|
|
7946
|
+
.subscribe({
|
|
7947
|
+
next: () => {
|
|
7948
|
+
this.clearRequestCacheMetadata(tableName);
|
|
7949
|
+
},
|
|
7950
|
+
error: (err) => {
|
|
7951
|
+
console.error(`❌ Error clearing table ${tableName}:`, err);
|
|
7952
|
+
}
|
|
7953
|
+
});
|
|
7954
|
+
}
|
|
7944
7955
|
isEmpty(obj) {
|
|
7945
7956
|
return Object.keys(obj).length === 0;
|
|
7946
7957
|
}
|