http-request-manager 18.13.2 → 18.13.3

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.
@@ -906,6 +906,7 @@ const TRACKER_SESSION_INIT_KEY = 'query_params_tracker_initialized';
906
906
  const DEFAULT_TRACKER_OPTIONS = SettingOptions.adapt({
907
907
  storage: StorageType.GLOBAL,
908
908
  encrypted: false,
909
+ expiresIn: '1d',
909
910
  });
910
911
  class QueryParamsTrackerService {
911
912
  constructor() {
@@ -1163,7 +1164,6 @@ class QueryParamsTrackerService {
1163
1164
  .pipe(take(1))
1164
1165
  .subscribe({
1165
1166
  next: (storedState) => {
1166
- // Don't overwrite in-memory state if we've already tracked paths
1167
1167
  if (Object.keys(this.state.paths).length > 0) {
1168
1168
  return;
1169
1169
  }
@@ -2435,14 +2435,14 @@ class WebSocketManagerService {
2435
2435
  content
2436
2436
  };
2437
2437
  // DEBUG: Log the exact message being sent
2438
- console.log('🔍 [DEBUG] sendMessageInChannel:', {
2439
- channel,
2440
- channelType: typeof channel,
2441
- channelEmpty: channel === '' || channel === null || channel === undefined,
2442
- content,
2443
- fullMessage: message,
2444
- jsonString: JSON.stringify(message)
2445
- });
2438
+ // console.log('🔍 [DEBUG] sendMessageInChannel:', {
2439
+ // channel,
2440
+ // channelType: typeof channel,
2441
+ // channelEmpty: channel === '' || channel === null || channel === undefined,
2442
+ // content,
2443
+ // fullMessage: message,
2444
+ // jsonString: JSON.stringify(message)
2445
+ // });
2446
2446
  WebSocketManagerService.socket.send(JSON.stringify(message));
2447
2447
  console.log(`💬 Send message:`, content);
2448
2448
  }
@@ -7254,14 +7254,14 @@ class HTTPManagerStateService extends ComponentStore {
7254
7254
  return this.httpManagerService.getRequest(requestOptions, effectiveParams).pipe(map((apiData) => ({ data: apiData, fromCache: false })));
7255
7255
  })).pipe(tap((packet) => {
7256
7256
  const res = packet?.data;
7257
- console.log('[DEBUG] Streaming response received:', res);
7257
+ // console.log('[DEBUG] Streaming response received:', res)
7258
7258
  if (res && res.length > 0) {
7259
- console.log('[DEBUG] Updating state with streaming data:', res);
7259
+ // console.log('[DEBUG] Updating state with streaming data:', res)
7260
7260
  this.setData$(res);
7261
7261
  this.streamedResponse = res;
7262
7262
  }
7263
7263
  else {
7264
- console.log('[DEBUG] No streaming data or empty array:', res);
7264
+ // console.log('[DEBUG] No streaming data or empty array:', res)
7265
7265
  }
7266
7266
  // Reset pending once we have a response packet (cache or network)
7267
7267
  this.httpManagerService.isPending.next(false);
@@ -7271,33 +7271,33 @@ class HTTPManagerStateService extends ComponentStore {
7271
7271
  }
7272
7272
  return this.persistStreamDataToDb(packet?.data, options);
7273
7273
  }), map((res) => {
7274
- console.log('[DEBUG] Returning data to subscribers:', res);
7274
+ // console.log('[DEBUG] Returning data to subscribers:', res)
7275
7275
  return res;
7276
7276
  }), catchError((error) => {
7277
- console.error('[DEBUG] Streaming error:', error);
7277
+ // console.error('[DEBUG] Streaming error:', error)
7278
7278
  this.httpManagerService.isPending.next(false);
7279
7279
  return of([]);
7280
7280
  }));
7281
7281
  }
7282
7282
  return this.httpManagerService.getRequest(requestOptions, effectiveParams)
7283
7283
  .pipe(tap((res) => {
7284
- console.log('[DEBUG] Streaming response received:', res);
7284
+ // console.log('[DEBUG] Streaming response received:', res)
7285
7285
  // Always update state with streaming data
7286
7286
  if (res && res.length > 0) {
7287
- console.log('[DEBUG] Updating state with streaming data:', res);
7287
+ // console.log('[DEBUG] Updating state with streaming data:', res)
7288
7288
  this.setData$(res);
7289
7289
  this.streamedResponse = res;
7290
7290
  }
7291
7291
  else {
7292
- console.log('[DEBUG] No streaming data or empty array:', res);
7292
+ // console.log('[DEBUG] No streaming data or empty array:', res)
7293
7293
  }
7294
7294
  // Reset pending once we have a response packet
7295
7295
  this.httpManagerService.isPending.next(false);
7296
7296
  }), concatMap((res) => this.persistStreamDataToDb(res, options)), map((res) => {
7297
- console.log('[DEBUG] Returning data to subscribers:', res);
7297
+ // console.log('[DEBUG] Returning data to subscribers:', res)
7298
7298
  return res; // Return the data so subscribers can receive it
7299
7299
  }), catchError((error) => {
7300
- console.error('[DEBUG] Streaming error:', error);
7300
+ // console.error('[DEBUG] Streaming error:', error)
7301
7301
  this.httpManagerService.isPending.next(false);
7302
7302
  return of([]);
7303
7303
  }));
@@ -7662,15 +7662,15 @@ class HTTPManagerStateService extends ComponentStore {
7662
7662
  return;
7663
7663
  }
7664
7664
  // DEBUG: Log what we're sending
7665
- console.log('🔍 [DEBUG] sendWsCommunication called:', {
7666
- wsServer,
7667
- wsServerType: typeof wsServer,
7668
- wsServerEmpty: wsServer === '' || wsServer === null || wsServer === undefined,
7669
- method,
7670
- path,
7671
- user: this.apiOptions.ws.user,
7672
- fullPayload: { method, path, user: this.apiOptions.ws.user }
7673
- });
7665
+ // console.log('🔍 [DEBUG] sendWsCommunication called:', {
7666
+ // wsServer,
7667
+ // wsServerType: typeof wsServer,
7668
+ // wsServerEmpty: wsServer === '' || wsServer === null || wsServer === undefined,
7669
+ // method,
7670
+ // path,
7671
+ // user: this.apiOptions.ws.user,
7672
+ // fullPayload: { method, path, user: this.apiOptions.ws.user }
7673
+ // });
7674
7674
  this.httpManagerService.sendMessageInChannel(wsServer, { method, path, user: this.apiOptions.ws.user });
7675
7675
  }
7676
7676
  else {