@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/lib.esm.js
CHANGED
@@ -8030,7 +8030,7 @@ function PushNotification(data) {
|
|
8030
8030
|
this.data = data.data || {};
|
8031
8031
|
});
|
8032
8032
|
|
8033
|
-
var version = "2.6.
|
8033
|
+
var version = "2.6.4-rc.1";
|
8034
8034
|
|
8035
8035
|
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; }
|
8036
8036
|
|
@@ -9614,6 +9614,12 @@ var Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
9614
9614
|
|
9615
9615
|
if (startTwilsock) {
|
9616
9616
|
_this._services.twilsockClient.connect();
|
9617
|
+
} else {
|
9618
|
+
var currentState = _this._services.twilsockClient.state;
|
9619
|
+
|
9620
|
+
if (currentState === "disconnected" || currentState === "unknown") {
|
9621
|
+
Client_1._logger.debug("TwilsockClient was passed externally and is not connected.");
|
9622
|
+
}
|
9617
9623
|
}
|
9618
9624
|
|
9619
9625
|
return _this;
|
@@ -10514,8 +10520,19 @@ var Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
10514
10520
|
var _this6 = this;
|
10515
10521
|
|
10516
10522
|
this._ensureReady = new Promise(function (resolve, reject) {
|
10517
|
-
_this6._resolveEnsureReady =
|
10518
|
-
|
10523
|
+
_this6._resolveEnsureReady = function () {
|
10524
|
+
Client_1._logger.debug("ConversationsClient initialized");
|
10525
|
+
|
10526
|
+
resolve();
|
10527
|
+
|
10528
|
+
_this6.emit(Client_1.initialized);
|
10529
|
+
};
|
10530
|
+
|
10531
|
+
_this6._rejectEnsureReady = function (error) {
|
10532
|
+
Client_1._logger.debug("ConversationsClient initialization failed", error);
|
10533
|
+
|
10534
|
+
reject(error);
|
10535
|
+
};
|
10519
10536
|
}).catch(function (error) {
|
10520
10537
|
if (throwErrorsAlways) {
|
10521
10538
|
throw error;
|
@@ -10523,6 +10540,12 @@ var Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
10523
10540
|
return void 0;
|
10524
10541
|
}
|
10525
10542
|
});
|
10543
|
+
|
10544
|
+
if (throwErrorsAlways) {
|
10545
|
+
this._ensureReady.catch(function (error) {
|
10546
|
+
Client_1._logger.error("ConversationsClient initialization failed", error);
|
10547
|
+
});
|
10548
|
+
}
|
10526
10549
|
}
|
10527
10550
|
}], [{
|
10528
10551
|
key: "create",
|
package/builds/lib.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",
|