@twilio/conversations 2.2.0-rc.10 → 2.2.0-rc.11

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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.0-rc.11](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.0-rc.10...@twilio/conversations@2.2.0-rc.11) (2022-07-26)
7
+
8
+ **Note:** Version bump only for package @twilio/conversations
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.2.0-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.2.0-rc.9...@twilio/conversations@2.2.0-rc.10) (2022-07-26)
7
15
 
8
16
  **Note:** Version bump only for package @twilio/conversations
package/builds/browser.js CHANGED
@@ -7326,7 +7326,7 @@ function PushNotification(data) {
7326
7326
  this.data = data.data || {};
7327
7327
  });
7328
7328
 
7329
- var version = "2.2.0-rc.10";
7329
+ var version = "2.2.0-rc.11";
7330
7330
 
7331
7331
  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; }
7332
7332
 
package/builds/lib.js CHANGED
@@ -7326,7 +7326,7 @@ function PushNotification(data) {
7326
7326
  this.data = data.data || {};
7327
7327
  });
7328
7328
 
7329
- var version = "2.2.0-rc.10";
7329
+ var version = "2.2.0-rc.11";
7330
7330
 
7331
7331
  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; }
7332
7332
 
@@ -50489,18 +50489,43 @@ this.Twilio.Conversations = (function (exports) {
50489
50489
 
50490
50490
  var log__default = /*#__PURE__*/_interopDefaultLegacy$1(log$4);
50491
50491
 
50492
- function deprecated(oldName, newName, link) {
50493
- return function () {
50494
- deprecationWarning("The method ".concat(oldName, " is deprecated").concat(newName ? ", use " + newName + " instead" : "").concat(link ? ", " + link : "."));
50492
+ var deprecated = function deprecated(oldName, newName, link) {
50493
+ return function (target, propertyKey, descriptor) {
50494
+ if (typeof descriptor.value !== "function" && (descriptor === null || descriptor === void 0 ? void 0 : descriptor.get) === undefined) {
50495
+ throw new Error("The deprecated decorator can only be applied to methods or getters");
50496
+ }
50497
+
50498
+ if (typeof descriptor.value === "function") {
50499
+ var originalMethod = descriptor.value;
50500
+
50501
+ descriptor.value = function () {
50502
+ deprecationWarning("The method ".concat(oldName, " is deprecated").concat(newName ? ", use " + newName + " instead" : "").concat(link ? ", " + link : "."));
50503
+
50504
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
50505
+ args[_key] = arguments[_key];
50506
+ }
50507
+
50508
+ return originalMethod.apply(this, args);
50509
+ };
50510
+
50511
+ return;
50512
+ }
50513
+
50514
+ var originalGet = descriptor.get;
50515
+
50516
+ descriptor.get = function () {
50517
+ deprecationWarning("The getter ".concat(oldName, " is deprecated").concat(newName ? ", use " + newName + " instead" : "").concat(link ? ", " + link : "."));
50518
+ return originalGet === null || originalGet === void 0 ? void 0 : originalGet.apply(this);
50519
+ };
50495
50520
  };
50496
- }
50521
+ };
50497
50522
 
50498
- function deprecationWarning(warning) {
50523
+ var deprecationWarning = function deprecationWarning(warning) {
50499
50524
  var currentLevel = log__default["default"].getLevel();
50500
50525
  log__default["default"].setLevel("warn");
50501
50526
  log__default["default"].warn(warning);
50502
50527
  log__default["default"].setLevel(currentLevel);
50503
- }
50528
+ };
50504
50529
 
50505
50530
  var deprecated_1 = browser.deprecated = deprecated;
50506
50531
  var deprecationWarning_1 = browser.deprecationWarning = deprecationWarning;
@@ -55305,7 +55330,7 @@ this.Twilio.Conversations = (function (exports) {
55305
55330
  this.data = data.data || {};
55306
55331
  });
55307
55332
 
55308
- var version = "2.2.0-rc.10";
55333
+ var version = "2.2.0-rc.11";
55309
55334
 
55310
55335
  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; }
55311
55336