stream-chat 8.4.0 → 8.4.1

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.
@@ -6015,7 +6015,8 @@ var ErrorFromResponse = /*#__PURE__*/function (_Error) {
6015
6015
  return ErrorFromResponse;
6016
6016
  }( /*#__PURE__*/_wrapNativeSuper(Error));
6017
6017
 
6018
- var _excluded = ["created_at", "updated_at", "last_active", "online"];
6018
+ var _excluded = ["created_at", "updated_at", "last_active", "online"],
6019
+ _excluded2 = ["params", "headers"];
6019
6020
 
6020
6021
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
6021
6022
 
@@ -10013,7 +10014,7 @@ var StreamChat = /*#__PURE__*/function () {
10013
10014
  }, {
10014
10015
  key: "getUserAgent",
10015
10016
  value: function getUserAgent() {
10016
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.4.0");
10017
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.4.1");
10017
10018
  }
10018
10019
  }, {
10019
10020
  key: "setUserAgent",
@@ -10053,19 +10054,24 @@ var StreamChat = /*#__PURE__*/function () {
10053
10054
  });
10054
10055
  }
10055
10056
 
10057
+ var _ref9 = this.options.axiosRequestConfig || {},
10058
+ axiosRequestConfigParams = _ref9.params,
10059
+ axiosRequestConfigHeaders = _ref9.headers,
10060
+ axiosRequestConfigRest = _objectWithoutProperties(_ref9, _excluded2);
10061
+
10056
10062
  return _objectSpread(_objectSpread(_objectSpread({
10057
- params: _objectSpread({
10063
+ params: _objectSpread(_objectSpread({
10058
10064
  user_id: this.userID,
10059
10065
  connection_id: this._getConnectionID(),
10060
10066
  api_key: this.key
10061
- }, options.params),
10062
- headers: _objectSpread(_objectSpread({}, authorization), {}, {
10067
+ }, options.params), axiosRequestConfigParams || {}),
10068
+ headers: _objectSpread(_objectSpread(_objectSpread({}, authorization), {}, {
10063
10069
  'stream-auth-type': this.getAuthType(),
10064
10070
  'X-Stream-Client': this.getUserAgent()
10065
- }, options.headers)
10071
+ }, options.headers), axiosRequestConfigHeaders || {})
10066
10072
  }, signal ? {
10067
10073
  signal: signal
10068
- } : {}), options.config), this.options.axiosRequestConfig);
10074
+ } : {}), options.config), axiosRequestConfigRest || {});
10069
10075
  }
10070
10076
  }, {
10071
10077
  key: "_getToken",
@@ -11221,13 +11227,13 @@ var StreamChat = /*#__PURE__*/function () {
11221
11227
  }, {
11222
11228
  key: "deletePushProvider",
11223
11229
  value: function () {
11224
- var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(_ref9) {
11230
+ var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(_ref10) {
11225
11231
  var type, name;
11226
11232
  return _regeneratorRuntime.wrap(function _callee79$(_context79) {
11227
11233
  while (1) {
11228
11234
  switch (_context79.prev = _context79.next) {
11229
11235
  case 0:
11230
- type = _ref9.type, name = _ref9.name;
11236
+ type = _ref10.type, name = _ref10.name;
11231
11237
  _context79.next = 3;
11232
11238
  return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
11233
11239