http-request-manager 18.15.12 → 18.15.13
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-request-manager",
|
|
3
|
-
"version": "18.15.
|
|
3
|
+
"version": "18.15.13",
|
|
4
4
|
"homepage": "https://wavecoders.ca",
|
|
5
5
|
"author": "Mike Bonifacio <wavecoders@gmail.com> (http://wavecoders@gmail.com/)",
|
|
6
6
|
"description": "This is an Angular Module containing Components/Services using Material",
|
|
@@ -713,6 +713,20 @@ declare class HTTPManagerStateService<T extends {
|
|
|
713
713
|
private readonly deleteData$;
|
|
714
714
|
private readonly updateData$;
|
|
715
715
|
readonly clearRecords: (observableOrValue?: void | Observable<void> | undefined) => Subscription;
|
|
716
|
+
/**
|
|
717
|
+
* Resolves whether a request should use cached/DB data or call the API.
|
|
718
|
+
* Shared by both fetchRecords (GET) and fetchStream (STREAM) to ensure parity.
|
|
719
|
+
*
|
|
720
|
+
* Decision order:
|
|
721
|
+
* 1. forceRefresh → API
|
|
722
|
+
* 2. cache expired → clear + API
|
|
723
|
+
* 3. schema mismatch → clear + rebuild + API
|
|
724
|
+
* 4. tracker blocks request → DB/state fallback
|
|
725
|
+
* 5. tracker allows request → API (with optional no-query DB shortcut)
|
|
726
|
+
*
|
|
727
|
+
* Returns an observable of the result data.
|
|
728
|
+
*/
|
|
729
|
+
private resolveCacheDecision;
|
|
716
730
|
readonly fetchRecords: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
717
731
|
private initDBStorageAsync;
|
|
718
732
|
private buildSchemaFromAdapter;
|
|
Binary file
|