@stream-io/feeds-client 0.2.3 → 0.2.4

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.
@@ -6344,7 +6344,7 @@ class BaseSearchSourceBase {
6344
6344
  updatePaginationStateFromQuery(result) {
6345
6345
  const { items, next } = result;
6346
6346
  const stateUpdate = {};
6347
- if (next || next === null) {
6347
+ if (Object.prototype.hasOwnProperty.call(result, 'next')) {
6348
6348
  stateUpdate.next = next;
6349
6349
  stateUpdate.hasNext = !!next;
6350
6350
  }
@@ -6459,9 +6459,9 @@ class ActivitySearchSource extends BaseSearchSource {
6459
6459
  class FeedSearchSource extends BaseSearchSource {
6460
6460
  constructor(client, options) {
6461
6461
  super(options);
6462
- this.type = 'feed';
6463
6462
  this.client = client;
6464
6463
  this.feedGroupId = options?.groupId;
6464
+ this.type = `${this.feedGroupId}-feed`;
6465
6465
  }
6466
6466
  async query(searchQuery) {
6467
6467
  const { connected_user: connectedUser } = this.client.state.getLatestValue();