http-request-manager 18.12.4 → 18.12.9

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.12.4",
3
+ "version": "18.12.9",
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",
@@ -633,7 +633,7 @@ declare class HTTPManagerStateService<T extends {
633
633
  private percentage;
634
634
  percentage$: Observable<number>;
635
635
  private hasDatabase;
636
- streamedResponse: never[];
636
+ streamedResponse: any[];
637
637
  private maxRetries;
638
638
  private retryDelay;
639
639
  private shouldRetry;
@@ -698,6 +698,13 @@ declare class HTTPManagerStateService<T extends {
698
698
  readonly data$: Observable<T | T[] | null>;
699
699
  readonly selectRecord$: (id: number) => Observable<T | T[] | null>;
700
700
  private readonly setData$;
701
+ /**
702
+ * Streaming-only updater: replaces `data` with the incoming array.
703
+ *
704
+ * The streaming operator (`requestStreaming`) accumulates records via `scan`,
705
+ * so each emission is the full accumulated dataset. Replace, don't merge.
706
+ */
707
+ private readonly setStreamData$;
701
708
  private updateArrayState;
702
709
  private readonly addData$;
703
710
  private readonly deleteData$;
@@ -710,7 +717,7 @@ declare class HTTPManagerStateService<T extends {
710
717
  readonly updateRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
711
718
  readonly deleteRecord: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
712
719
  readonly createStream: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
713
- readonly fetchStream: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
720
+ readonly fetchStream: ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
714
721
  private wsCommunication;
715
722
  /**
716
723
  * Actually send the WebSocket message (called when connected or from queue)
@@ -2488,8 +2495,8 @@ declare class RequestManagerStateDemoComponent implements OnInit {
2488
2495
  POST$: BehaviorSubject<null>;
2489
2496
  PUT$: BehaviorSubject<null>;
2490
2497
  DELETE$: BehaviorSubject<null>;
2491
- STREAM: BehaviorSubject<null>;
2492
- STREAM$: Observable<null>;
2498
+ STREAM: BehaviorSubject<any[]>;
2499
+ STREAM$: Observable<any[]>;
2493
2500
  STREAM_AI: BehaviorSubject<{
2494
2501
  response: string;
2495
2502
  }[]>;
@@ -2500,7 +2507,7 @@ declare class RequestManagerStateDemoComponent implements OnInit {
2500
2507
  requestType: string;
2501
2508
  prompts: string[];
2502
2509
  AIType: number;
2503
- get dataObservable$(): BehaviorSubject<any> | BehaviorSubject<null> | BehaviorSubject<{
2510
+ get dataObservable$(): BehaviorSubject<any> | BehaviorSubject<any[]> | BehaviorSubject<null> | BehaviorSubject<{
2504
2511
  response: string;
2505
2512
  }[]>;
2506
2513
  sampleClientData: {
Binary file