@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
@@ -15695,7 +15695,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
15695
15695
|
}();
|
15696
15696
|
|
15697
15697
|
var logInstance = new Logger("");
|
15698
|
-
var version = "0.13.
|
15698
|
+
var version = "0.13.11-rc.0";
|
15699
15699
|
/**
|
15700
15700
|
* Settings container for the Twilsock client library
|
15701
15701
|
*/
|
@@ -34307,7 +34307,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
34307
34307
|
return Network;
|
34308
34308
|
}();
|
34309
34309
|
|
34310
|
-
var version = "0.6.
|
34310
|
+
var version = "0.6.12-rc.0";
|
34311
34311
|
|
34312
34312
|
var _class;
|
34313
34313
|
|
@@ -41793,7 +41793,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
41793
41793
|
this.data = data.data || {};
|
41794
41794
|
});
|
41795
41795
|
|
41796
|
-
var version = "2.6.
|
41796
|
+
var version = "2.6.4-rc.1";
|
41797
41797
|
|
41798
41798
|
function _isNativeFunction(fn) {
|
41799
41799
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
@@ -43463,6 +43463,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
43463
43463
|
|
43464
43464
|
if (startTwilsock) {
|
43465
43465
|
_this._services.twilsockClient.connect();
|
43466
|
+
} else {
|
43467
|
+
var currentState = _this._services.twilsockClient.state;
|
43468
|
+
|
43469
|
+
if (currentState === "disconnected" || currentState === "unknown") {
|
43470
|
+
Client_1._logger.debug("TwilsockClient was passed externally and is not connected.");
|
43471
|
+
}
|
43466
43472
|
}
|
43467
43473
|
|
43468
43474
|
return _this;
|
@@ -44363,8 +44369,19 @@ this.Twilio.Conversations = (function (exports) {
|
|
44363
44369
|
var _this6 = this;
|
44364
44370
|
|
44365
44371
|
this._ensureReady = new Promise(function (resolve, reject) {
|
44366
|
-
_this6._resolveEnsureReady =
|
44367
|
-
|
44372
|
+
_this6._resolveEnsureReady = function () {
|
44373
|
+
Client_1._logger.debug("ConversationsClient initialized");
|
44374
|
+
|
44375
|
+
resolve();
|
44376
|
+
|
44377
|
+
_this6.emit(Client_1.initialized);
|
44378
|
+
};
|
44379
|
+
|
44380
|
+
_this6._rejectEnsureReady = function (error) {
|
44381
|
+
Client_1._logger.debug("ConversationsClient initialization failed", error);
|
44382
|
+
|
44383
|
+
reject(error);
|
44384
|
+
};
|
44368
44385
|
}).catch(function (error) {
|
44369
44386
|
if (throwErrorsAlways) {
|
44370
44387
|
throw error;
|
@@ -44372,6 +44389,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
44372
44389
|
return void 0;
|
44373
44390
|
}
|
44374
44391
|
});
|
44392
|
+
|
44393
|
+
if (throwErrorsAlways) {
|
44394
|
+
this._ensureReady.catch(function (error) {
|
44395
|
+
Client_1._logger.error("ConversationsClient initialization failed", error);
|
44396
|
+
});
|
44397
|
+
}
|
44375
44398
|
}
|
44376
44399
|
}], [{
|
44377
44400
|
key: "create",
|