@stream-io/feeds-client 0.3.3 → 0.3.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.
@@ -3782,7 +3782,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
3782
3782
  };
3783
3783
  return result;
3784
3784
  };
3785
- const version = "0.3.3";
3785
+ const version = "0.3.4";
3786
3786
  class ApiClient {
3787
3787
  constructor(apiKey, tokenManager, connectionIdManager, options) {
3788
3788
  this.apiKey = apiKey;
@@ -6600,9 +6600,17 @@ const _Feed = class _Feed extends FeedApi {
6600
6600
  });
6601
6601
  return response;
6602
6602
  }
6603
+ /**
6604
+ * Fetches the next page of activities for the feed.
6605
+ * @returns The response from the API or `undefined` if there is no next page.
6606
+ */
6603
6607
  async getNextPage() {
6604
6608
  const currentState = this.currentState;
6609
+ if (!currentState.next) {
6610
+ return;
6611
+ }
6605
6612
  return await this.getOrCreate({
6613
+ ...currentState.last_get_or_create_request_config,
6606
6614
  member_pagination: {
6607
6615
  limit: 0
6608
6616
  },
@@ -6612,9 +6620,8 @@ const _Feed = class _Feed extends FeedApi {
6612
6620
  following_pagination: {
6613
6621
  limit: 0
6614
6622
  },
6615
- filter: currentState.last_get_or_create_request_config?.filter,
6616
- next: currentState.next,
6617
- limit: currentState.last_get_or_create_request_config?.limit ?? 20
6623
+ watch: void 0,
6624
+ next: currentState.next
6618
6625
  });
6619
6626
  }
6620
6627
  async addActivity(request) {
@@ -7324,4 +7331,4 @@ exports.replaceUniqueArrayMerge = replaceUniqueArrayMerge;
7324
7331
  exports.shouldUpdateState = shouldUpdateState;
7325
7332
  exports.uniqueArrayMerge = uniqueArrayMerge;
7326
7333
  exports.updateEntityInArray = updateEntityInArray;
7327
- //# sourceMappingURL=feeds-client-Ddac-BnP.js.map
7334
+ //# sourceMappingURL=feeds-client-HvoTzr-z.js.map