@twilio/conversations 3.0.0-rc.6 → 3.0.0-rc.9
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/CHANGELOG.md +24 -0
- package/README.md +2 -2
- package/builds/browser.js +10 -8
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +1 -1
- package/builds/lib.js +10 -8
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +13 -11
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/client.js +8 -5
- package/dist/client.js.map +1 -1
- package/dist/data/participants.js +1 -1
- package/dist/data/participants.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/push-notification.js.map +1 -1
- package/docs/index.html +3 -3
- package/docs/interfaces/PushNotificationData.html +1 -1
- package/docs/modules.html +2 -2
- package/package.json +9 -9
package/builds/lib.d.ts
CHANGED
package/builds/lib.js
CHANGED
@@ -1767,7 +1767,7 @@ var Participants = /*#__PURE__*/function (_ReplayEventEmitter) {
|
|
1767
1767
|
sid = data.sid, responseAttributes = data.attributes, dateCreated = data.date_created, dateUpdated = data.date_updated, responseIdentity = data.identity, roleSid = data.role_sid, messagingBinding = data.messaging_binding;
|
1768
1768
|
_context2.next = 3;
|
1769
1769
|
return this.upsertParticipant(sid, {
|
1770
|
-
attributes:
|
1770
|
+
attributes: responseAttributes,
|
1771
1771
|
dateCreated: new Date(dateCreated),
|
1772
1772
|
dateUpdated: new Date(dateUpdated),
|
1773
1773
|
identity: responseIdentity,
|
@@ -7170,7 +7170,7 @@ function PushNotification(data) {
|
|
7170
7170
|
this.data = data.data || {};
|
7171
7171
|
});
|
7172
7172
|
|
7173
|
-
var version = "3.0.0-rc.
|
7173
|
+
var version = "3.0.0-rc.9";
|
7174
7174
|
|
7175
7175
|
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; }
|
7176
7176
|
|
@@ -7759,14 +7759,16 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
|
|
7759
7759
|
});
|
7760
7760
|
};
|
7761
7761
|
|
7762
|
-
|
7763
|
-
|
7764
|
-
_this._services.twilsockClient.onceWithReplay("disconnected", function () {
|
7765
|
-
return emitFailed({
|
7762
|
+
var emitDisconnected = function emitDisconnected() {
|
7763
|
+
emitFailed({
|
7766
7764
|
terminal: true,
|
7767
7765
|
message: "Twilsock has disconnected."
|
7768
7766
|
});
|
7769
|
-
}
|
7767
|
+
};
|
7768
|
+
|
7769
|
+
_this._services.twilsockClient.onceWithReplay("connectionError", emitFailed);
|
7770
|
+
|
7771
|
+
_this._services.twilsockClient.onceWithReplay("disconnected", emitDisconnected);
|
7770
7772
|
|
7771
7773
|
_this._services.twilsockClient.onceWithReplay("connected", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
|
7772
7774
|
var startupEvent, connectionError;
|
@@ -7778,7 +7780,7 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
|
|
7778
7780
|
|
7779
7781
|
_this._services.twilsockClient.off("connectionError", emitFailed);
|
7780
7782
|
|
7781
|
-
_this._services.twilsockClient.off("disconnected",
|
7783
|
+
_this._services.twilsockClient.off("disconnected", emitDisconnected);
|
7782
7784
|
|
7783
7785
|
_context.prev = 3;
|
7784
7786
|
startupEvent = "conversations.client.startup";
|