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.
- package/dist/browser.es.js +15 -9
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +15 -9
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +15 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +15 -9
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -1
package/dist/index.es.js
CHANGED
|
@@ -6018,7 +6018,8 @@ var ErrorFromResponse = /*#__PURE__*/function (_Error) {
|
|
|
6018
6018
|
return ErrorFromResponse;
|
|
6019
6019
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
6020
6020
|
|
|
6021
|
-
var _excluded = ["created_at", "updated_at", "last_active", "online"]
|
|
6021
|
+
var _excluded = ["created_at", "updated_at", "last_active", "online"],
|
|
6022
|
+
_excluded2 = ["params", "headers"];
|
|
6022
6023
|
|
|
6023
6024
|
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; } } }; }
|
|
6024
6025
|
|
|
@@ -10016,7 +10017,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10016
10017
|
}, {
|
|
10017
10018
|
key: "getUserAgent",
|
|
10018
10019
|
value: function getUserAgent() {
|
|
10019
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.4.
|
|
10020
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.4.1");
|
|
10020
10021
|
}
|
|
10021
10022
|
}, {
|
|
10022
10023
|
key: "setUserAgent",
|
|
@@ -10056,19 +10057,24 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10056
10057
|
});
|
|
10057
10058
|
}
|
|
10058
10059
|
|
|
10060
|
+
var _ref9 = this.options.axiosRequestConfig || {},
|
|
10061
|
+
axiosRequestConfigParams = _ref9.params,
|
|
10062
|
+
axiosRequestConfigHeaders = _ref9.headers,
|
|
10063
|
+
axiosRequestConfigRest = _objectWithoutProperties(_ref9, _excluded2);
|
|
10064
|
+
|
|
10059
10065
|
return _objectSpread(_objectSpread(_objectSpread({
|
|
10060
|
-
params: _objectSpread({
|
|
10066
|
+
params: _objectSpread(_objectSpread({
|
|
10061
10067
|
user_id: this.userID,
|
|
10062
10068
|
connection_id: this._getConnectionID(),
|
|
10063
10069
|
api_key: this.key
|
|
10064
|
-
}, options.params),
|
|
10065
|
-
headers: _objectSpread(_objectSpread({}, authorization), {}, {
|
|
10070
|
+
}, options.params), axiosRequestConfigParams || {}),
|
|
10071
|
+
headers: _objectSpread(_objectSpread(_objectSpread({}, authorization), {}, {
|
|
10066
10072
|
'stream-auth-type': this.getAuthType(),
|
|
10067
10073
|
'X-Stream-Client': this.getUserAgent()
|
|
10068
|
-
}, options.headers)
|
|
10074
|
+
}, options.headers), axiosRequestConfigHeaders || {})
|
|
10069
10075
|
}, signal ? {
|
|
10070
10076
|
signal: signal
|
|
10071
|
-
} : {}), options.config),
|
|
10077
|
+
} : {}), options.config), axiosRequestConfigRest || {});
|
|
10072
10078
|
}
|
|
10073
10079
|
}, {
|
|
10074
10080
|
key: "_getToken",
|
|
@@ -11224,13 +11230,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11224
11230
|
}, {
|
|
11225
11231
|
key: "deletePushProvider",
|
|
11226
11232
|
value: function () {
|
|
11227
|
-
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(
|
|
11233
|
+
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(_ref10) {
|
|
11228
11234
|
var type, name;
|
|
11229
11235
|
return _regeneratorRuntime.wrap(function _callee79$(_context79) {
|
|
11230
11236
|
while (1) {
|
|
11231
11237
|
switch (_context79.prev = _context79.next) {
|
|
11232
11238
|
case 0:
|
|
11233
|
-
type =
|
|
11239
|
+
type = _ref10.type, name = _ref10.name;
|
|
11234
11240
|
_context79.next = 3;
|
|
11235
11241
|
return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
|
|
11236
11242
|
|