stream-chat 8.3.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 +16 -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 +16 -9
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +16 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts +2 -0
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +2 -0
- package/src/client.ts +6 -1
package/dist/browser.es.js
CHANGED
|
@@ -1506,6 +1506,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1506
1506
|
* @param {boolean} [options.skip_push] Skip sending push notifications
|
|
1507
1507
|
* @param {boolean} [options.is_pending_message] Make this message pending
|
|
1508
1508
|
* @param {Record<string,string>} [options.pending_message_metadata] Metadata for the pending message
|
|
1509
|
+
* @param {boolean} [options.force_moderation] Apply force moderation for server-side requests
|
|
1509
1510
|
*
|
|
1510
1511
|
* @return {Promise<SendMessageAPIResponse<StreamChatGenerics>>} The Server Response
|
|
1511
1512
|
*/
|
|
@@ -6014,7 +6015,8 @@ var ErrorFromResponse = /*#__PURE__*/function (_Error) {
|
|
|
6014
6015
|
return ErrorFromResponse;
|
|
6015
6016
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
6016
6017
|
|
|
6017
|
-
var _excluded = ["created_at", "updated_at", "last_active", "online"]
|
|
6018
|
+
var _excluded = ["created_at", "updated_at", "last_active", "online"],
|
|
6019
|
+
_excluded2 = ["params", "headers"];
|
|
6018
6020
|
|
|
6019
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; } } }; }
|
|
6020
6022
|
|
|
@@ -10012,7 +10014,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10012
10014
|
}, {
|
|
10013
10015
|
key: "getUserAgent",
|
|
10014
10016
|
value: function getUserAgent() {
|
|
10015
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
10017
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.4.1");
|
|
10016
10018
|
}
|
|
10017
10019
|
}, {
|
|
10018
10020
|
key: "setUserAgent",
|
|
@@ -10052,19 +10054,24 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10052
10054
|
});
|
|
10053
10055
|
}
|
|
10054
10056
|
|
|
10057
|
+
var _ref9 = this.options.axiosRequestConfig || {},
|
|
10058
|
+
axiosRequestConfigParams = _ref9.params,
|
|
10059
|
+
axiosRequestConfigHeaders = _ref9.headers,
|
|
10060
|
+
axiosRequestConfigRest = _objectWithoutProperties(_ref9, _excluded2);
|
|
10061
|
+
|
|
10055
10062
|
return _objectSpread(_objectSpread(_objectSpread({
|
|
10056
|
-
params: _objectSpread({
|
|
10063
|
+
params: _objectSpread(_objectSpread({
|
|
10057
10064
|
user_id: this.userID,
|
|
10058
10065
|
connection_id: this._getConnectionID(),
|
|
10059
10066
|
api_key: this.key
|
|
10060
|
-
}, options.params),
|
|
10061
|
-
headers: _objectSpread(_objectSpread({}, authorization), {}, {
|
|
10067
|
+
}, options.params), axiosRequestConfigParams || {}),
|
|
10068
|
+
headers: _objectSpread(_objectSpread(_objectSpread({}, authorization), {}, {
|
|
10062
10069
|
'stream-auth-type': this.getAuthType(),
|
|
10063
10070
|
'X-Stream-Client': this.getUserAgent()
|
|
10064
|
-
}, options.headers)
|
|
10071
|
+
}, options.headers), axiosRequestConfigHeaders || {})
|
|
10065
10072
|
}, signal ? {
|
|
10066
10073
|
signal: signal
|
|
10067
|
-
} : {}), options.config),
|
|
10074
|
+
} : {}), options.config), axiosRequestConfigRest || {});
|
|
10068
10075
|
}
|
|
10069
10076
|
}, {
|
|
10070
10077
|
key: "_getToken",
|
|
@@ -11220,13 +11227,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11220
11227
|
}, {
|
|
11221
11228
|
key: "deletePushProvider",
|
|
11222
11229
|
value: function () {
|
|
11223
|
-
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(
|
|
11230
|
+
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(_ref10) {
|
|
11224
11231
|
var type, name;
|
|
11225
11232
|
return _regeneratorRuntime.wrap(function _callee79$(_context79) {
|
|
11226
11233
|
while (1) {
|
|
11227
11234
|
switch (_context79.prev = _context79.next) {
|
|
11228
11235
|
case 0:
|
|
11229
|
-
type =
|
|
11236
|
+
type = _ref10.type, name = _ref10.name;
|
|
11230
11237
|
_context79.next = 3;
|
|
11231
11238
|
return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
|
|
11232
11239
|
|