@twilio/conversations 2.6.3-rc.9 → 2.6.4-rc.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/README.md +1 -1
- package/builds/browser.esm.js +26 -3
- package/builds/browser.esm.js.map +1 -1
- package/builds/browser.js +26 -3
- package/builds/browser.js.map +1 -1
- package/builds/lib.esm.js +26 -3
- package/builds/lib.js +26 -3
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +28 -5
- package/builds/twilio-conversations.js.map +1 -1
- package/builds/twilio-conversations.min.js +1 -1
- package/builds/twilio-conversations.min.js.map +1 -1
- package/dist/client.js +20 -2
- package/dist/client.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/docs/index.html +2 -2
- package/docs/modules.html +1 -1
- package/package.json +8 -8
package/builds/browser.js
CHANGED
@@ -8069,7 +8069,7 @@ function PushNotification(data) {
|
|
8069
8069
|
this.data = data.data || {};
|
8070
8070
|
});
|
8071
8071
|
|
8072
|
-
var version = "2.6.
|
8072
|
+
var version = "2.6.4-rc.1";
|
8073
8073
|
|
8074
8074
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
8075
8075
|
|
@@ -9653,6 +9653,12 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
|
|
9653
9653
|
|
9654
9654
|
if (startTwilsock) {
|
9655
9655
|
_this._services.twilsockClient.connect();
|
9656
|
+
} else {
|
9657
|
+
var currentState = _this._services.twilsockClient.state;
|
9658
|
+
|
9659
|
+
if (currentState === "disconnected" || currentState === "unknown") {
|
9660
|
+
Client_1._logger.debug("TwilsockClient was passed externally and is not connected.");
|
9661
|
+
}
|
9656
9662
|
}
|
9657
9663
|
|
9658
9664
|
return _this;
|
@@ -10553,8 +10559,19 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
|
|
10553
10559
|
var _this6 = this;
|
10554
10560
|
|
10555
10561
|
this._ensureReady = new Promise(function (resolve, reject) {
|
10556
|
-
_this6._resolveEnsureReady =
|
10557
|
-
|
10562
|
+
_this6._resolveEnsureReady = function () {
|
10563
|
+
Client_1._logger.debug("ConversationsClient initialized");
|
10564
|
+
|
10565
|
+
resolve();
|
10566
|
+
|
10567
|
+
_this6.emit(Client_1.initialized);
|
10568
|
+
};
|
10569
|
+
|
10570
|
+
_this6._rejectEnsureReady = function (error) {
|
10571
|
+
Client_1._logger.debug("ConversationsClient initialization failed", error);
|
10572
|
+
|
10573
|
+
reject(error);
|
10574
|
+
};
|
10558
10575
|
}).catch(function (error) {
|
10559
10576
|
if (throwErrorsAlways) {
|
10560
10577
|
throw error;
|
@@ -10562,6 +10579,12 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
|
|
10562
10579
|
return void 0;
|
10563
10580
|
}
|
10564
10581
|
});
|
10582
|
+
|
10583
|
+
if (throwErrorsAlways) {
|
10584
|
+
this._ensureReady.catch(function (error) {
|
10585
|
+
Client_1._logger.error("ConversationsClient initialization failed", error);
|
10586
|
+
});
|
10587
|
+
}
|
10565
10588
|
}
|
10566
10589
|
}], [{
|
10567
10590
|
key: "create",
|