http-request-manager 18.16.18 → 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.
@@ -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!');