http-request-manager 18.16.17 → 18.16.19

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.
@@ -7149,8 +7149,8 @@ class HTTPManagerStateService extends ComponentStore {
7149
7149
  this.fetchRecord = (options, method) => this.effect(() => of(RequestOptions.adapt(options)).pipe(tap(() => console.log('🔄 fetchRecord effect triggered with path:', options?.path, 'method:', method)), switchMap((options) => {
7150
7150
  this.streamedResponse = [];
7151
7151
  const requestOptions = this.updateRequestOptions(options?.headers);
7152
- console.log('🌐 Making GET request to path:', [...(requestOptions.path || []), ...(options?.path || [])]);
7153
- return this.httpManagerService.getRequest(requestOptions, options?.path)
7152
+ const effectiveParams = this.getEffectiveParams(options?.path);
7153
+ return this.httpManagerService.getRequest(requestOptions, effectiveParams)
7154
7154
  .pipe(tap((data) => {
7155
7155
  console.log('📦 fetchRecord received data:', data);
7156
7156
  // Apply adapter if provided
@@ -7506,7 +7506,7 @@ class HTTPManagerStateService extends ComponentStore {
7506
7506
  this._requestCachePaths.set(this.databaseOptions.table, this.resolvePath().filter(p => typeof p === 'string' || typeof p === 'number').map(String));
7507
7507
  }
7508
7508
  }
7509
- if (this.apiOptions.ws && this.apiOptions.ws.id !== '') {
7509
+ if (typeof this.apiOptions.ws?.id === 'string' && this.apiOptions.ws.id !== '') {
7510
7510
  // Auto-prefix channel ID for private state manager channels
7511
7511
  // This ensures state manager channels are separate from user-defined channels
7512
7512
  this.apiOptions.ws.id = this.prefixChannel(this.apiOptions.ws.id, ChannelType.STATE);
@@ -7740,7 +7740,7 @@ class HTTPManagerStateService extends ComponentStore {
7740
7740
  */
7741
7741
  sendWsCommunication(method, path) {
7742
7742
  if (this.apiOptions.ws) {
7743
- const wsServer = this.apiOptions.ws.id;
7743
+ const wsServer = this.apiOptions.ws?.id || '';
7744
7744
  // Guard: Don't send if channel is empty
7745
7745
  if (!wsServer || wsServer === '') {
7746
7746
  console.error('❌ Cannot send WS message: Channel ID is empty!');