stream-chat 8.18.2 → 8.19.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 +7 -5
- 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 +7 -5
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +7 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/types/campaign.d.ts +4 -1
- package/dist/types/campaign.d.ts.map +1 -1
- package/dist/types/client.d.ts +4 -1
- package/dist/types/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/campaign.ts +2 -2
- package/src/client.ts +6 -2
package/dist/browser.es.js
CHANGED
|
@@ -6158,14 +6158,14 @@ var Campaign = /*#__PURE__*/function () {
|
|
|
6158
6158
|
}, {
|
|
6159
6159
|
key: "start",
|
|
6160
6160
|
value: function () {
|
|
6161
|
-
var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(
|
|
6161
|
+
var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(options) {
|
|
6162
6162
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
6163
6163
|
while (1) {
|
|
6164
6164
|
switch (_context2.prev = _context2.next) {
|
|
6165
6165
|
case 0:
|
|
6166
6166
|
this.verifyCampaignId();
|
|
6167
6167
|
_context2.next = 3;
|
|
6168
|
-
return this.client.startCampaign(this.id,
|
|
6168
|
+
return this.client.startCampaign(this.id, options);
|
|
6169
6169
|
|
|
6170
6170
|
case 3:
|
|
6171
6171
|
return _context2.abrupt("return", _context2.sent);
|
|
@@ -7336,6 +7336,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7336
7336
|
|
|
7337
7337
|
for (var _channelID2 in refMap) {
|
|
7338
7338
|
var _channel3 = _this.activeChannels[_channelID2];
|
|
7339
|
+
if (!_channel3) continue;
|
|
7339
7340
|
var state = _channel3.state;
|
|
7340
7341
|
/** update the messages from this user. */
|
|
7341
7342
|
|
|
@@ -11070,7 +11071,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11070
11071
|
}, {
|
|
11071
11072
|
key: "getUserAgent",
|
|
11072
11073
|
value: function getUserAgent() {
|
|
11073
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
11074
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.19.1");
|
|
11074
11075
|
}
|
|
11075
11076
|
}, {
|
|
11076
11077
|
key: "setUserAgent",
|
|
@@ -11844,14 +11845,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11844
11845
|
}, {
|
|
11845
11846
|
key: "startCampaign",
|
|
11846
11847
|
value: function () {
|
|
11847
|
-
var _startCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(id,
|
|
11848
|
+
var _startCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(id, options) {
|
|
11848
11849
|
return _regeneratorRuntime.wrap(function _callee76$(_context76) {
|
|
11849
11850
|
while (1) {
|
|
11850
11851
|
switch (_context76.prev = _context76.next) {
|
|
11851
11852
|
case 0:
|
|
11852
11853
|
this.validateServerSideAuth();
|
|
11853
11854
|
return _context76.abrupt("return", this.post(this.baseURL + "/campaigns/".concat(id, "/start"), {
|
|
11854
|
-
scheduled_for: scheduledFor
|
|
11855
|
+
scheduled_for: options === null || options === void 0 ? void 0 : options.scheduledFor,
|
|
11856
|
+
stop_at: options === null || options === void 0 ? void 0 : options.stopAt
|
|
11855
11857
|
}));
|
|
11856
11858
|
|
|
11857
11859
|
case 2:
|