@twilio/mcs-client 0.6.8 → 0.6.9-rc.0

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/browser.js CHANGED
@@ -1142,7 +1142,7 @@ var Network = /*#__PURE__*/function () {
1142
1142
  return Network;
1143
1143
  }();
1144
1144
 
1145
- var version = "0.6.8";
1145
+ var version = "0.6.9-rc.0";
1146
1146
 
1147
1147
  var _class;
1148
1148
  var log = Logger.scope("");
package/builds/lib.js CHANGED
@@ -1108,7 +1108,7 @@ var Network = /*#__PURE__*/function () {
1108
1108
  return Network;
1109
1109
  }();
1110
1110
 
1111
- var version = "0.6.8";
1111
+ var version = "0.6.9-rc.0";
1112
1112
 
1113
1113
  var _class;
1114
1114
  var log = Logger.scope("");
@@ -8877,137 +8877,10 @@ this.Twilio.McsClient = (function (exports) {
8877
8877
  return Network;
8878
8878
  }();
8879
8879
 
8880
- var version = "0.6.8";
8880
+ var version = "0.6.9-rc.0";
8881
8881
 
8882
8882
  var browser = {};
8883
8883
 
8884
- var DESCRIPTORS$4 = descriptors;
8885
- var defineProperty$3 = objectDefineProperty.f;
8886
-
8887
- var FunctionPrototype = Function.prototype;
8888
- var FunctionPrototypeToString = FunctionPrototype.toString;
8889
- var nameRE = /^\s*function ([^ (]*)/;
8890
- var NAME = 'name';
8891
-
8892
- // Function instances `.name` property
8893
- // https://tc39.es/ecma262/#sec-function-instances-name
8894
- if (DESCRIPTORS$4 && !(NAME in FunctionPrototype)) {
8895
- defineProperty$3(FunctionPrototype, NAME, {
8896
- configurable: true,
8897
- get: function () {
8898
- try {
8899
- return FunctionPrototypeToString.call(this).match(nameRE)[1];
8900
- } catch (error) {
8901
- return '';
8902
- }
8903
- }
8904
- });
8905
- }
8906
-
8907
- var slicedToArray = {exports: {}};
8908
-
8909
- var arrayWithHoles = {exports: {}};
8910
-
8911
- (function (module) {
8912
- function _arrayWithHoles(arr) {
8913
- if (Array.isArray(arr)) return arr;
8914
- }
8915
-
8916
- module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
8917
- })(arrayWithHoles);
8918
-
8919
- var iterableToArrayLimit = {exports: {}};
8920
-
8921
- (function (module) {
8922
- function _iterableToArrayLimit(arr, i) {
8923
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
8924
-
8925
- if (_i == null) return;
8926
- var _arr = [];
8927
- var _n = true;
8928
- var _d = false;
8929
-
8930
- var _s, _e;
8931
-
8932
- try {
8933
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
8934
- _arr.push(_s.value);
8935
-
8936
- if (i && _arr.length === i) break;
8937
- }
8938
- } catch (err) {
8939
- _d = true;
8940
- _e = err;
8941
- } finally {
8942
- try {
8943
- if (!_n && _i["return"] != null) _i["return"]();
8944
- } finally {
8945
- if (_d) throw _e;
8946
- }
8947
- }
8948
-
8949
- return _arr;
8950
- }
8951
-
8952
- module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
8953
- })(iterableToArrayLimit);
8954
-
8955
- var unsupportedIterableToArray = {exports: {}};
8956
-
8957
- var arrayLikeToArray = {exports: {}};
8958
-
8959
- (function (module) {
8960
- function _arrayLikeToArray(arr, len) {
8961
- if (len == null || len > arr.length) len = arr.length;
8962
-
8963
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
8964
- arr2[i] = arr[i];
8965
- }
8966
-
8967
- return arr2;
8968
- }
8969
-
8970
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
8971
- })(arrayLikeToArray);
8972
-
8973
- (function (module) {
8974
- var arrayLikeToArray$1 = arrayLikeToArray.exports;
8975
-
8976
- function _unsupportedIterableToArray(o, minLen) {
8977
- if (!o) return;
8978
- if (typeof o === "string") return arrayLikeToArray$1(o, minLen);
8979
- var n = Object.prototype.toString.call(o).slice(8, -1);
8980
- if (n === "Object" && o.constructor) n = o.constructor.name;
8981
- if (n === "Map" || n === "Set") return Array.from(o);
8982
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray$1(o, minLen);
8983
- }
8984
-
8985
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
8986
- })(unsupportedIterableToArray);
8987
-
8988
- var nonIterableRest = {exports: {}};
8989
-
8990
- (function (module) {
8991
- function _nonIterableRest() {
8992
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8993
- }
8994
-
8995
- module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
8996
- })(nonIterableRest);
8997
-
8998
- (function (module) {
8999
- var arrayWithHoles$1 = arrayWithHoles.exports;
9000
- var iterableToArrayLimit$1 = iterableToArrayLimit.exports;
9001
- var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
9002
- var nonIterableRest$1 = nonIterableRest.exports;
9003
-
9004
- function _slicedToArray(arr, i) {
9005
- return arrayWithHoles$1(arr) || iterableToArrayLimit$1(arr, i) || unsupportedIterableToArray$1(arr, i) || nonIterableRest$1();
9006
- }
9007
-
9008
- module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
9009
- })(slicedToArray);
9010
-
9011
8884
  // TODO: Remove from `core-js@4` since it's moved to entry points
9012
8885
 
9013
8886
  var $$5 = _export;
@@ -9053,11 +8926,11 @@ this.Twilio.McsClient = (function (exports) {
9053
8926
  var path = path$1;
9054
8927
  var has$3 = has$e;
9055
8928
  var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
9056
- var defineProperty$2 = objectDefineProperty.f;
8929
+ var defineProperty$3 = objectDefineProperty.f;
9057
8930
 
9058
8931
  var defineWellKnownSymbol$2 = function (NAME) {
9059
8932
  var Symbol = path.Symbol || (path.Symbol = {});
9060
- if (!has$3(Symbol, NAME)) defineProperty$2(Symbol, NAME, {
8933
+ if (!has$3(Symbol, NAME)) defineProperty$3(Symbol, NAME, {
9061
8934
  value: wrappedWellKnownSymbolModule$1.f(NAME)
9062
8935
  });
9063
8936
  };
@@ -9065,7 +8938,7 @@ this.Twilio.McsClient = (function (exports) {
9065
8938
  var $$4 = _export;
9066
8939
  var global$3 = global$u;
9067
8940
  var getBuiltIn = getBuiltIn$a;
9068
- var DESCRIPTORS$3 = descriptors;
8941
+ var DESCRIPTORS$4 = descriptors;
9069
8942
  var NATIVE_SYMBOL = nativeSymbol$1;
9070
8943
  var fails$1 = fails$p;
9071
8944
  var has$2 = has$e;
@@ -9122,7 +8995,7 @@ this.Twilio.McsClient = (function (exports) {
9122
8995
  var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
9123
8996
 
9124
8997
  // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
9125
- var setSymbolDescriptor = DESCRIPTORS$3 && fails$1(function () {
8998
+ var setSymbolDescriptor = DESCRIPTORS$4 && fails$1(function () {
9126
8999
  return nativeObjectCreate(nativeDefineProperty({}, 'a', {
9127
9000
  get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
9128
9001
  })).a != 7;
@@ -9142,7 +9015,7 @@ this.Twilio.McsClient = (function (exports) {
9142
9015
  tag: tag,
9143
9016
  description: description
9144
9017
  });
9145
- if (!DESCRIPTORS$3) symbol.description = description;
9018
+ if (!DESCRIPTORS$4) symbol.description = description;
9146
9019
  return symbol;
9147
9020
  };
9148
9021
 
@@ -9167,7 +9040,7 @@ this.Twilio.McsClient = (function (exports) {
9167
9040
  var properties = toIndexedObject$1(Properties);
9168
9041
  var keys = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));
9169
9042
  $forEach(keys, function (key) {
9170
- if (!DESCRIPTORS$3 || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
9043
+ if (!DESCRIPTORS$4 || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
9171
9044
  });
9172
9045
  return O;
9173
9046
  };
@@ -9227,7 +9100,7 @@ this.Twilio.McsClient = (function (exports) {
9227
9100
  if (has$2(this, HIDDEN) && has$2(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
9228
9101
  setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
9229
9102
  };
9230
- if (DESCRIPTORS$3 && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
9103
+ if (DESCRIPTORS$4 && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
9231
9104
  return wrap(tag, description);
9232
9105
  };
9233
9106
 
@@ -9249,7 +9122,7 @@ this.Twilio.McsClient = (function (exports) {
9249
9122
  return wrap(wellKnownSymbol(name), name);
9250
9123
  };
9251
9124
 
9252
- if (DESCRIPTORS$3) {
9125
+ if (DESCRIPTORS$4) {
9253
9126
  // https://github.com/tc39/proposal-Symbol-description
9254
9127
  nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
9255
9128
  configurable: true,
@@ -9292,7 +9165,7 @@ this.Twilio.McsClient = (function (exports) {
9292
9165
  useSimple: function () { USE_SETTER = false; }
9293
9166
  });
9294
9167
 
9295
- $$4({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$3 }, {
9168
+ $$4({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$4 }, {
9296
9169
  // `Object.create` method
9297
9170
  // https://tc39.es/ecma262/#sec-object.create
9298
9171
  create: $create,
@@ -9368,16 +9241,16 @@ this.Twilio.McsClient = (function (exports) {
9368
9241
  hiddenKeys[HIDDEN] = true;
9369
9242
 
9370
9243
  var $$3 = _export;
9371
- var DESCRIPTORS$2 = descriptors;
9244
+ var DESCRIPTORS$3 = descriptors;
9372
9245
  var global$2 = global$u;
9373
9246
  var has$1 = has$e;
9374
9247
  var isObject$1 = isObject$m;
9375
- var defineProperty$1 = objectDefineProperty.f;
9248
+ var defineProperty$2 = objectDefineProperty.f;
9376
9249
  var copyConstructorProperties = copyConstructorProperties$2;
9377
9250
 
9378
9251
  var NativeSymbol = global$2.Symbol;
9379
9252
 
9380
- if (DESCRIPTORS$2 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
9253
+ if (DESCRIPTORS$3 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
9381
9254
  // Safari 12 bug
9382
9255
  NativeSymbol().description !== undefined
9383
9256
  )) {
@@ -9399,7 +9272,7 @@ this.Twilio.McsClient = (function (exports) {
9399
9272
  var symbolToString = symbolPrototype.toString;
9400
9273
  var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
9401
9274
  var regexp = /^Symbol\((.*)\)[^)]+$/;
9402
- defineProperty$1(symbolPrototype, 'description', {
9275
+ defineProperty$2(symbolPrototype, 'description', {
9403
9276
  configurable: true,
9404
9277
  get: function description() {
9405
9278
  var symbol = isObject$1(this) ? this.valueOf() : this;
@@ -9421,6 +9294,133 @@ this.Twilio.McsClient = (function (exports) {
9421
9294
  // https://tc39.es/ecma262/#sec-symbol.iterator
9422
9295
  defineWellKnownSymbol('iterator');
9423
9296
 
9297
+ var DESCRIPTORS$2 = descriptors;
9298
+ var defineProperty$1 = objectDefineProperty.f;
9299
+
9300
+ var FunctionPrototype = Function.prototype;
9301
+ var FunctionPrototypeToString = FunctionPrototype.toString;
9302
+ var nameRE = /^\s*function ([^ (]*)/;
9303
+ var NAME = 'name';
9304
+
9305
+ // Function instances `.name` property
9306
+ // https://tc39.es/ecma262/#sec-function-instances-name
9307
+ if (DESCRIPTORS$2 && !(NAME in FunctionPrototype)) {
9308
+ defineProperty$1(FunctionPrototype, NAME, {
9309
+ configurable: true,
9310
+ get: function () {
9311
+ try {
9312
+ return FunctionPrototypeToString.call(this).match(nameRE)[1];
9313
+ } catch (error) {
9314
+ return '';
9315
+ }
9316
+ }
9317
+ });
9318
+ }
9319
+
9320
+ var slicedToArray = {exports: {}};
9321
+
9322
+ var arrayWithHoles = {exports: {}};
9323
+
9324
+ (function (module) {
9325
+ function _arrayWithHoles(arr) {
9326
+ if (Array.isArray(arr)) return arr;
9327
+ }
9328
+
9329
+ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
9330
+ })(arrayWithHoles);
9331
+
9332
+ var iterableToArrayLimit = {exports: {}};
9333
+
9334
+ (function (module) {
9335
+ function _iterableToArrayLimit(arr, i) {
9336
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
9337
+
9338
+ if (_i == null) return;
9339
+ var _arr = [];
9340
+ var _n = true;
9341
+ var _d = false;
9342
+
9343
+ var _s, _e;
9344
+
9345
+ try {
9346
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
9347
+ _arr.push(_s.value);
9348
+
9349
+ if (i && _arr.length === i) break;
9350
+ }
9351
+ } catch (err) {
9352
+ _d = true;
9353
+ _e = err;
9354
+ } finally {
9355
+ try {
9356
+ if (!_n && _i["return"] != null) _i["return"]();
9357
+ } finally {
9358
+ if (_d) throw _e;
9359
+ }
9360
+ }
9361
+
9362
+ return _arr;
9363
+ }
9364
+
9365
+ module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
9366
+ })(iterableToArrayLimit);
9367
+
9368
+ var unsupportedIterableToArray = {exports: {}};
9369
+
9370
+ var arrayLikeToArray = {exports: {}};
9371
+
9372
+ (function (module) {
9373
+ function _arrayLikeToArray(arr, len) {
9374
+ if (len == null || len > arr.length) len = arr.length;
9375
+
9376
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
9377
+ arr2[i] = arr[i];
9378
+ }
9379
+
9380
+ return arr2;
9381
+ }
9382
+
9383
+ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
9384
+ })(arrayLikeToArray);
9385
+
9386
+ (function (module) {
9387
+ var arrayLikeToArray$1 = arrayLikeToArray.exports;
9388
+
9389
+ function _unsupportedIterableToArray(o, minLen) {
9390
+ if (!o) return;
9391
+ if (typeof o === "string") return arrayLikeToArray$1(o, minLen);
9392
+ var n = Object.prototype.toString.call(o).slice(8, -1);
9393
+ if (n === "Object" && o.constructor) n = o.constructor.name;
9394
+ if (n === "Map" || n === "Set") return Array.from(o);
9395
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray$1(o, minLen);
9396
+ }
9397
+
9398
+ module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
9399
+ })(unsupportedIterableToArray);
9400
+
9401
+ var nonIterableRest = {exports: {}};
9402
+
9403
+ (function (module) {
9404
+ function _nonIterableRest() {
9405
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9406
+ }
9407
+
9408
+ module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
9409
+ })(nonIterableRest);
9410
+
9411
+ (function (module) {
9412
+ var arrayWithHoles$1 = arrayWithHoles.exports;
9413
+ var iterableToArrayLimit$1 = iterableToArrayLimit.exports;
9414
+ var unsupportedIterableToArray$1 = unsupportedIterableToArray.exports;
9415
+ var nonIterableRest$1 = nonIterableRest.exports;
9416
+
9417
+ function _slicedToArray(arr, i) {
9418
+ return arrayWithHoles$1(arr) || iterableToArrayLimit$1(arr, i) || unsupportedIterableToArray$1(arr, i) || nonIterableRest$1();
9419
+ }
9420
+
9421
+ module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
9422
+ })(slicedToArray);
9423
+
9424
9424
  var toConsumableArray = {exports: {}};
9425
9425
 
9426
9426
  var arrayWithoutHoles = {exports: {}};
@@ -9706,6 +9706,82 @@ this.Twilio.McsClient = (function (exports) {
9706
9706
  };
9707
9707
  };
9708
9708
 
9709
+ function _createForOfIteratorHelper$4(o, allowArrayLike) {
9710
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
9711
+
9712
+ if (!it) {
9713
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") {
9714
+ if (it) o = it;
9715
+ var i = 0;
9716
+
9717
+ var F = function F() {};
9718
+
9719
+ return {
9720
+ s: F,
9721
+ n: function n() {
9722
+ if (i >= o.length) return {
9723
+ done: true
9724
+ };
9725
+ return {
9726
+ done: false,
9727
+ value: o[i++]
9728
+ };
9729
+ },
9730
+ e: function e(_e) {
9731
+ throw _e;
9732
+ },
9733
+ f: F
9734
+ };
9735
+ }
9736
+
9737
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9738
+ }
9739
+
9740
+ var normalCompletion = true,
9741
+ didErr = false,
9742
+ err;
9743
+ return {
9744
+ s: function s() {
9745
+ it = it.call(o);
9746
+ },
9747
+ n: function n() {
9748
+ var step = it.next();
9749
+ normalCompletion = step.done;
9750
+ return step;
9751
+ },
9752
+ e: function e(_e2) {
9753
+ didErr = true;
9754
+ err = _e2;
9755
+ },
9756
+ f: function f() {
9757
+ try {
9758
+ if (!normalCompletion && it.return != null) it.return();
9759
+ } finally {
9760
+ if (didErr) throw err;
9761
+ }
9762
+ }
9763
+ };
9764
+ }
9765
+
9766
+ function _unsupportedIterableToArray$4(o, minLen) {
9767
+ if (!o) return;
9768
+ if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
9769
+ var n = Object.prototype.toString.call(o).slice(8, -1);
9770
+ if (n === "Object" && o.constructor) n = o.constructor.name;
9771
+ if (n === "Map" || n === "Set") return Array.from(o);
9772
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
9773
+ }
9774
+
9775
+ function _arrayLikeToArray$4(arr, len) {
9776
+ if (len == null || len > arr.length) len = arr.length;
9777
+
9778
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
9779
+ arr2[i] = arr[i];
9780
+ }
9781
+
9782
+ return arr2;
9783
+ }
9784
+
9709
9785
  var type = function type() {
9710
9786
  for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
9711
9787
  checks[_key] = arguments[_key];
@@ -9715,23 +9791,108 @@ this.Twilio.McsClient = (function (exports) {
9715
9791
  var isValid = false;
9716
9792
  var expectedTypes = [];
9717
9793
 
9718
- for (var _i = 0, _checks = checks; _i < _checks.length; _i++) {
9719
- var _type = _checks[_i];
9794
+ var _iterator = _createForOfIteratorHelper$4(checks),
9795
+ _step;
9720
9796
 
9721
- if (typeof _type === "string") {
9722
- isValid = isValid || _typeof__default["default"](value) === _type;
9723
- expectedTypes.push("of type ".concat(_type));
9724
- continue;
9725
- }
9797
+ try {
9798
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
9799
+ var _type = _step.value;
9800
+
9801
+ if (typeof _type === "string") {
9802
+ isValid = isValid || _typeof__default["default"](value) === _type;
9803
+ expectedTypes.push("of type ".concat(_type));
9804
+ continue;
9805
+ }
9726
9806
 
9727
- isValid = isValid || value instanceof _type;
9728
- expectedTypes.push("an instance of ".concat(_type.name));
9807
+ isValid = isValid || value instanceof _type;
9808
+ expectedTypes.push("an instance of ".concat(_type.name));
9809
+ }
9810
+ } catch (err) {
9811
+ _iterator.e(err);
9812
+ } finally {
9813
+ _iterator.f();
9729
9814
  }
9730
9815
 
9731
9816
  return [isValid, expectedTypes];
9732
9817
  });
9733
9818
  };
9734
9819
 
9820
+ function _createForOfIteratorHelper$3(o, allowArrayLike) {
9821
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
9822
+
9823
+ if (!it) {
9824
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") {
9825
+ if (it) o = it;
9826
+ var i = 0;
9827
+
9828
+ var F = function F() {};
9829
+
9830
+ return {
9831
+ s: F,
9832
+ n: function n() {
9833
+ if (i >= o.length) return {
9834
+ done: true
9835
+ };
9836
+ return {
9837
+ done: false,
9838
+ value: o[i++]
9839
+ };
9840
+ },
9841
+ e: function e(_e) {
9842
+ throw _e;
9843
+ },
9844
+ f: F
9845
+ };
9846
+ }
9847
+
9848
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9849
+ }
9850
+
9851
+ var normalCompletion = true,
9852
+ didErr = false,
9853
+ err;
9854
+ return {
9855
+ s: function s() {
9856
+ it = it.call(o);
9857
+ },
9858
+ n: function n() {
9859
+ var step = it.next();
9860
+ normalCompletion = step.done;
9861
+ return step;
9862
+ },
9863
+ e: function e(_e2) {
9864
+ didErr = true;
9865
+ err = _e2;
9866
+ },
9867
+ f: function f() {
9868
+ try {
9869
+ if (!normalCompletion && it.return != null) it.return();
9870
+ } finally {
9871
+ if (didErr) throw err;
9872
+ }
9873
+ }
9874
+ };
9875
+ }
9876
+
9877
+ function _unsupportedIterableToArray$3(o, minLen) {
9878
+ if (!o) return;
9879
+ if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
9880
+ var n = Object.prototype.toString.call(o).slice(8, -1);
9881
+ if (n === "Object" && o.constructor) n = o.constructor.name;
9882
+ if (n === "Map" || n === "Set") return Array.from(o);
9883
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
9884
+ }
9885
+
9886
+ function _arrayLikeToArray$3(arr, len) {
9887
+ if (len == null || len > arr.length) len = arr.length;
9888
+
9889
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
9890
+ arr2[i] = arr[i];
9891
+ }
9892
+
9893
+ return arr2;
9894
+ }
9895
+
9735
9896
  var literal = function literal() {
9736
9897
  for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
9737
9898
  checks[_key] = arguments[_key];
@@ -9741,10 +9902,19 @@ this.Twilio.McsClient = (function (exports) {
9741
9902
  var isValid = false;
9742
9903
  var expectedTypes = [];
9743
9904
 
9744
- for (var _i = 0, _checks = checks; _i < _checks.length; _i++) {
9745
- var type = _checks[_i];
9746
- isValid = isValid || value === type;
9747
- expectedTypes.push(typeof type === "string" ? "\"".concat(type, "\"") : "".concat(type));
9905
+ var _iterator = _createForOfIteratorHelper$3(checks),
9906
+ _step;
9907
+
9908
+ try {
9909
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
9910
+ var type = _step.value;
9911
+ isValid = isValid || value === type;
9912
+ expectedTypes.push(typeof type === "string" ? "\"".concat(type, "\"") : "".concat(type));
9913
+ }
9914
+ } catch (err) {
9915
+ _iterator.e(err);
9916
+ } finally {
9917
+ _iterator.f();
9748
9918
  }
9749
9919
 
9750
9920
  return [isValid, expectedTypes];