stream-chat 8.27.0 → 8.28.0

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.
package/dist/index.es.js CHANGED
@@ -3124,16 +3124,19 @@ var Channel = /*#__PURE__*/function () {
3124
3124
  }, {
3125
3125
  key: "getReplies",
3126
3126
  value: function () {
3127
- var _getReplies = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(parent_id, options) {
3128
- var data;
3127
+ var _getReplies = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(parent_id, options, sort) {
3128
+ var normalizedSort, data;
3129
3129
  return _regeneratorRuntime.wrap(function _callee30$(_context30) {
3130
3130
  while (1) {
3131
3131
  switch (_context30.prev = _context30.next) {
3132
3132
  case 0:
3133
- _context30.next = 2;
3134
- return this.getClient().get(this.getClient().baseURL + "/messages/".concat(parent_id, "/replies"), _objectSpread$6({}, options));
3133
+ normalizedSort = sort ? normalizeQuerySort(sort) : undefined;
3134
+ _context30.next = 3;
3135
+ return this.getClient().get(this.getClient().baseURL + "/messages/".concat(parent_id, "/replies"), _objectSpread$6({
3136
+ sort: normalizedSort
3137
+ }, options));
3135
3138
 
3136
- case 2:
3139
+ case 3:
3137
3140
  data = _context30.sent;
3138
3141
 
3139
3142
  // add any messages to our thread state
@@ -3143,7 +3146,7 @@ var Channel = /*#__PURE__*/function () {
3143
3146
 
3144
3147
  return _context30.abrupt("return", data);
3145
3148
 
3146
- case 5:
3149
+ case 6:
3147
3150
  case "end":
3148
3151
  return _context30.stop();
3149
3152
  }
@@ -3151,7 +3154,7 @@ var Channel = /*#__PURE__*/function () {
3151
3154
  }, _callee30, this);
3152
3155
  }));
3153
3156
 
3154
- function getReplies(_x31, _x32) {
3157
+ function getReplies(_x31, _x32, _x33) {
3155
3158
  return _getReplies.apply(this, arguments);
3156
3159
  }
3157
3160
 
@@ -3195,7 +3198,7 @@ var Channel = /*#__PURE__*/function () {
3195
3198
  }, _callee31, this);
3196
3199
  }));
3197
3200
 
3198
- function getPinnedMessages(_x33) {
3201
+ function getPinnedMessages(_x34) {
3199
3202
  return _getPinnedMessages.apply(this, arguments);
3200
3203
  }
3201
3204
 
@@ -3425,7 +3428,7 @@ var Channel = /*#__PURE__*/function () {
3425
3428
  }, _callee32, this);
3426
3429
  }));
3427
3430
 
3428
- function query(_x34) {
3431
+ function query(_x35) {
3429
3432
  return _query.apply(this, arguments);
3430
3433
  }
3431
3434
 
@@ -3466,7 +3469,7 @@ var Channel = /*#__PURE__*/function () {
3466
3469
  }, _callee33, this);
3467
3470
  }));
3468
3471
 
3469
- function banUser(_x35, _x36) {
3472
+ function banUser(_x36, _x37) {
3470
3473
  return _banUser.apply(this, arguments);
3471
3474
  }
3472
3475
 
@@ -3597,7 +3600,7 @@ var Channel = /*#__PURE__*/function () {
3597
3600
  }, _callee36, this);
3598
3601
  }));
3599
3602
 
3600
- function unbanUser(_x37) {
3603
+ function unbanUser(_x38) {
3601
3604
  return _unbanUser.apply(this, arguments);
3602
3605
  }
3603
3606
 
@@ -3638,7 +3641,7 @@ var Channel = /*#__PURE__*/function () {
3638
3641
  }, _callee37, this);
3639
3642
  }));
3640
3643
 
3641
- function shadowBan(_x38, _x39) {
3644
+ function shadowBan(_x39, _x40) {
3642
3645
  return _shadowBan.apply(this, arguments);
3643
3646
  }
3644
3647
 
@@ -3678,7 +3681,7 @@ var Channel = /*#__PURE__*/function () {
3678
3681
  }, _callee38, this);
3679
3682
  }));
3680
3683
 
3681
- function removeShadowBan(_x40) {
3684
+ function removeShadowBan(_x41) {
3682
3685
  return _removeShadowBan.apply(this, arguments);
3683
3686
  }
3684
3687
 
@@ -3713,7 +3716,7 @@ var Channel = /*#__PURE__*/function () {
3713
3716
  }, _callee39, this);
3714
3717
  }));
3715
3718
 
3716
- function createCall(_x41) {
3719
+ function createCall(_x42) {
3717
3720
  return _createCall.apply(this, arguments);
3718
3721
  }
3719
3722
 
@@ -3748,7 +3751,7 @@ var Channel = /*#__PURE__*/function () {
3748
3751
  }, _callee40, this);
3749
3752
  }));
3750
3753
 
3751
- function vote(_x42, _x43, _x44) {
3754
+ function vote(_x43, _x44, _x45) {
3752
3755
  return _vote2.apply(this, arguments);
3753
3756
  }
3754
3757
 
@@ -3776,7 +3779,7 @@ var Channel = /*#__PURE__*/function () {
3776
3779
  }, _callee41, this);
3777
3780
  }));
3778
3781
 
3779
- function removeVote(_x45, _x46, _x47) {
3782
+ function removeVote(_x46, _x47, _x48) {
3780
3783
  return _removeVote.apply(this, arguments);
3781
3784
  }
3782
3785
 
@@ -11395,7 +11398,7 @@ var StreamChat = /*#__PURE__*/function () {
11395
11398
  }, {
11396
11399
  key: "getUserAgent",
11397
11400
  value: function getUserAgent() {
11398
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.27.0");
11401
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.28.0");
11399
11402
  }
11400
11403
  }, {
11401
11404
  key: "setUserAgent",