@twilio/mcs-client 0.5.2-rc.4 → 0.5.3

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.
@@ -7444,7 +7444,7 @@ this.Twilio.McsClient = (function (exports) {
7444
7444
 
7445
7445
  }
7446
7446
 
7447
- var version = "0.5.2-rc.4";
7447
+ var version = "0.5.3";
7448
7448
 
7449
7449
  var browser = {};
7450
7450
 
@@ -9472,11 +9472,11 @@ this.Twilio.McsClient = (function (exports) {
9472
9472
  }))
9473
9473
  };
9474
9474
  _context4.next = 3;
9475
- return _this4.network.post("".concat(_this4.config.mediaSetUrl), null, JSON.stringify(query), "application/json");
9475
+ return _this4.network.post("".concat(_this4.config.mediaSetUrl), null, query, "application/json");
9476
9476
 
9477
9477
  case 3:
9478
9478
  response = _context4.sent;
9479
- return _context4.abrupt("return", response.map(item => {
9479
+ return _context4.abrupt("return", response.body.map(item => {
9480
9480
  if (item.code !== 200) {
9481
9481
  throw new Error("Failed to obtain detailed information about Media items (failed SID ".concat(item.media_record.sid, ")"));
9482
9482
  }
@@ -9499,7 +9499,7 @@ this.Twilio.McsClient = (function (exports) {
9499
9499
 
9500
9500
  __decorate([validateTypesAsync_1(nonEmptyString_1), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", Promise)], exports['default'].prototype, "get", null);
9501
9501
 
9502
- exports['default'] = __decorate([validateConstructorTypes_1(nonEmptyString_1, nonEmptyString_1, [nonEmptyString_1, literal_1(null)], [pureObject_1, 'undefined']), __metadata("design:paramtypes", [String, String, Object, Object])], exports['default']); // Proper renames should happen in index.ts,
9502
+ exports['default'] = __decorate([validateConstructorTypes_1(nonEmptyString_1, nonEmptyString_1, [nonEmptyString_1, literal_1(null)], [pureObject_1, "undefined"]), __metadata("design:paramtypes", [String, String, Object, Object])], exports['default']); // Proper renames should happen in index.ts,
9503
9503
 
9504
9504
  exports.Client = exports['default'];
9505
9505
  exports.McsClient = exports['default'];