@twilio/conversations 3.0.0-rc.5 → 3.0.0-rc.8

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/builds/lib.d.ts CHANGED
@@ -1834,7 +1834,7 @@ interface PushNotificationData {
1834
1834
  */
1835
1835
  media?: Media;
1836
1836
  /**
1837
- * Amount of the attached media of the message.
1837
+ * Count of the attached media of the message.
1838
1838
  */
1839
1839
  mediaCount?: number;
1840
1840
  }
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: JSON.parse(responseAttributes),
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.5";
7173
+ var version = "3.0.0-rc.8";
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
- _this._services.twilsockClient.onceWithReplay("connectionError", emitFailed);
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", emitFailed);
7783
+ _this._services.twilsockClient.off("disconnected", emitDisconnected);
7782
7784
 
7783
7785
  _context.prev = 3;
7784
7786
  startupEvent = "conversations.client.startup";