@twilio/conversations 2.2.0 → 2.2.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.
@@ -41541,7 +41541,7 @@ this.Twilio.Conversations = (function (exports) {
41541
41541
  this.data = data.data || {};
41542
41542
  });
41543
41543
 
41544
- var version = "2.2.0";
41544
+ var version = "2.2.1";
41545
41545
 
41546
41546
  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; }
41547
41547
 
@@ -42398,13 +42398,16 @@ this.Twilio.Conversations = (function (exports) {
42398
42398
  break;
42399
42399
  }
42400
42400
 
42401
- deprecationWarning_1("The method getConversationBySid is deprecated to retrieve conversations you're not part of. Use peekConversationBySid instead.");
42402
- _context4.next = 11;
42401
+ _context4.next = 10;
42403
42402
  return this.peekConversationBySid(conversationSid);
42404
42403
 
42405
- case 11:
42404
+ case 10:
42406
42405
  conversation = _context4.sent;
42407
42406
 
42407
+ if (conversation) {
42408
+ deprecationWarning_1("The method getConversationBySid is deprecated to retrieve conversations you're not part of. Use peekConversationBySid instead.");
42409
+ }
42410
+
42408
42411
  case 12:
42409
42412
  if (conversation) {
42410
42413
  _context4.next = 14;