http-request-manager 18.15.21 → 18.15.22
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.
|
@@ -7302,11 +7302,11 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
7302
7302
|
}
|
|
7303
7303
|
}));
|
|
7304
7304
|
};
|
|
7305
|
-
console.log('[DB STORAGE] Checking database storage:', {
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
})
|
|
7305
|
+
// console.log('[DB STORAGE] Checking database storage:', {
|
|
7306
|
+
// hasDatabase: this.hasDatabase,
|
|
7307
|
+
// table: this.databaseOptions?.table,
|
|
7308
|
+
// databaseOptions: this.databaseOptions
|
|
7309
|
+
// })
|
|
7310
7310
|
if (this.hasDatabase && this.databaseOptions?.table) {
|
|
7311
7311
|
return this.dbManagerService.databaseExists().pipe(switchMap((dbExists) => {
|
|
7312
7312
|
if (!dbExists) {
|
|
@@ -7600,7 +7600,7 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
7600
7600
|
const res = packet?.data;
|
|
7601
7601
|
// console.log('[DEBUG] Streaming response received:', res)
|
|
7602
7602
|
if (res && res.length > 0) {
|
|
7603
|
-
console.log('[DEBUG] Updating state with streaming data:', res)
|
|
7603
|
+
// console.log('[DEBUG] Updating state with streaming data:', res)
|
|
7604
7604
|
this.setData$(res);
|
|
7605
7605
|
this.streamedResponse = [...this.streamedResponse, ...res];
|
|
7606
7606
|
}
|
|
@@ -7610,7 +7610,7 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
7610
7610
|
}
|
|
7611
7611
|
return this.persistStreamDataToDb(packet?.data, options);
|
|
7612
7612
|
}), map((res) => {
|
|
7613
|
-
console.log('[DEBUG] Returning data to subscribers:', res)
|
|
7613
|
+
// console.log('[DEBUG] Returning data to subscribers:', res)
|
|
7614
7614
|
return res;
|
|
7615
7615
|
}), catchError((error) => {
|
|
7616
7616
|
console.error('[DEBUG] Streaming error:', error);
|
|
@@ -7623,15 +7623,15 @@ class HTTPManagerStateService extends ComponentStore {
|
|
|
7623
7623
|
console.log('[DEBUG] Streaming response received:', res);
|
|
7624
7624
|
// Always update state with streaming data
|
|
7625
7625
|
if (res && res.length > 0) {
|
|
7626
|
-
console.log('[DEBUG] Updating state with streaming data:', res)
|
|
7626
|
+
// console.log('[DEBUG] Updating state with streaming data:', res)
|
|
7627
7627
|
this.setData$(res);
|
|
7628
7628
|
this.streamedResponse = [...this.streamedResponse, ...res];
|
|
7629
7629
|
}
|
|
7630
7630
|
else {
|
|
7631
|
-
console.log('[DEBUG] No streaming data or empty array:', res)
|
|
7631
|
+
// console.log('[DEBUG] No streaming data or empty array:', res)
|
|
7632
7632
|
}
|
|
7633
7633
|
}), concatMap((res) => this.persistStreamDataToDb(res, options)), map((res) => {
|
|
7634
|
-
console.log('[DEBUG] Returning data to subscribers:', res)
|
|
7634
|
+
// console.log('[DEBUG] Returning data to subscribers:', res)
|
|
7635
7635
|
return res; // Return the data so subscribers can receive it
|
|
7636
7636
|
}), catchError((error) => {
|
|
7637
7637
|
// console.error('[DEBUG] Streaming error:', error)
|