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

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.9-rc.0";
1145
+ var version = "0.6.9";
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.9-rc.0";
1111
+ var version = "0.6.9";
1112
1112
 
1113
1113
  var _class;
1114
1114
  var log = Logger.scope("");
@@ -8877,10 +8877,137 @@ this.Twilio.McsClient = (function (exports) {
8877
8877
  return Network;
8878
8878
  }();
8879
8879
 
8880
- var version = "0.6.9-rc.0";
8880
+ var version = "0.6.9";
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
+
8884
9011
  // TODO: Remove from `core-js@4` since it's moved to entry points
8885
9012
 
8886
9013
  var $$5 = _export;
@@ -8926,11 +9053,11 @@ this.Twilio.McsClient = (function (exports) {
8926
9053
  var path = path$1;
8927
9054
  var has$3 = has$e;
8928
9055
  var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
8929
- var defineProperty$3 = objectDefineProperty.f;
9056
+ var defineProperty$2 = objectDefineProperty.f;
8930
9057
 
8931
9058
  var defineWellKnownSymbol$2 = function (NAME) {
8932
9059
  var Symbol = path.Symbol || (path.Symbol = {});
8933
- if (!has$3(Symbol, NAME)) defineProperty$3(Symbol, NAME, {
9060
+ if (!has$3(Symbol, NAME)) defineProperty$2(Symbol, NAME, {
8934
9061
  value: wrappedWellKnownSymbolModule$1.f(NAME)
8935
9062
  });
8936
9063
  };
@@ -8938,7 +9065,7 @@ this.Twilio.McsClient = (function (exports) {
8938
9065
  var $$4 = _export;
8939
9066
  var global$3 = global$u;
8940
9067
  var getBuiltIn = getBuiltIn$a;
8941
- var DESCRIPTORS$4 = descriptors;
9068
+ var DESCRIPTORS$3 = descriptors;
8942
9069
  var NATIVE_SYMBOL = nativeSymbol$1;
8943
9070
  var fails$1 = fails$p;
8944
9071
  var has$2 = has$e;
@@ -8995,7 +9122,7 @@ this.Twilio.McsClient = (function (exports) {
8995
9122
  var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
8996
9123
 
8997
9124
  // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
8998
- var setSymbolDescriptor = DESCRIPTORS$4 && fails$1(function () {
9125
+ var setSymbolDescriptor = DESCRIPTORS$3 && fails$1(function () {
8999
9126
  return nativeObjectCreate(nativeDefineProperty({}, 'a', {
9000
9127
  get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
9001
9128
  })).a != 7;
@@ -9015,7 +9142,7 @@ this.Twilio.McsClient = (function (exports) {
9015
9142
  tag: tag,
9016
9143
  description: description
9017
9144
  });
9018
- if (!DESCRIPTORS$4) symbol.description = description;
9145
+ if (!DESCRIPTORS$3) symbol.description = description;
9019
9146
  return symbol;
9020
9147
  };
9021
9148
 
@@ -9040,7 +9167,7 @@ this.Twilio.McsClient = (function (exports) {
9040
9167
  var properties = toIndexedObject$1(Properties);
9041
9168
  var keys = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));
9042
9169
  $forEach(keys, function (key) {
9043
- if (!DESCRIPTORS$4 || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
9170
+ if (!DESCRIPTORS$3 || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
9044
9171
  });
9045
9172
  return O;
9046
9173
  };
@@ -9100,7 +9227,7 @@ this.Twilio.McsClient = (function (exports) {
9100
9227
  if (has$2(this, HIDDEN) && has$2(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
9101
9228
  setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
9102
9229
  };
9103
- if (DESCRIPTORS$4 && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
9230
+ if (DESCRIPTORS$3 && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
9104
9231
  return wrap(tag, description);
9105
9232
  };
9106
9233
 
@@ -9122,7 +9249,7 @@ this.Twilio.McsClient = (function (exports) {
9122
9249
  return wrap(wellKnownSymbol(name), name);
9123
9250
  };
9124
9251
 
9125
- if (DESCRIPTORS$4) {
9252
+ if (DESCRIPTORS$3) {
9126
9253
  // https://github.com/tc39/proposal-Symbol-description
9127
9254
  nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
9128
9255
  configurable: true,
@@ -9165,7 +9292,7 @@ this.Twilio.McsClient = (function (exports) {
9165
9292
  useSimple: function () { USE_SETTER = false; }
9166
9293
  });
9167
9294
 
9168
- $$4({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$4 }, {
9295
+ $$4({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$3 }, {
9169
9296
  // `Object.create` method
9170
9297
  // https://tc39.es/ecma262/#sec-object.create
9171
9298
  create: $create,
@@ -9241,16 +9368,16 @@ this.Twilio.McsClient = (function (exports) {
9241
9368
  hiddenKeys[HIDDEN] = true;
9242
9369
 
9243
9370
  var $$3 = _export;
9244
- var DESCRIPTORS$3 = descriptors;
9371
+ var DESCRIPTORS$2 = descriptors;
9245
9372
  var global$2 = global$u;
9246
9373
  var has$1 = has$e;
9247
9374
  var isObject$1 = isObject$m;
9248
- var defineProperty$2 = objectDefineProperty.f;
9375
+ var defineProperty$1 = objectDefineProperty.f;
9249
9376
  var copyConstructorProperties = copyConstructorProperties$2;
9250
9377
 
9251
9378
  var NativeSymbol = global$2.Symbol;
9252
9379
 
9253
- if (DESCRIPTORS$3 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
9380
+ if (DESCRIPTORS$2 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
9254
9381
  // Safari 12 bug
9255
9382
  NativeSymbol().description !== undefined
9256
9383
  )) {
@@ -9272,7 +9399,7 @@ this.Twilio.McsClient = (function (exports) {
9272
9399
  var symbolToString = symbolPrototype.toString;
9273
9400
  var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
9274
9401
  var regexp = /^Symbol\((.*)\)[^)]+$/;
9275
- defineProperty$2(symbolPrototype, 'description', {
9402
+ defineProperty$1(symbolPrototype, 'description', {
9276
9403
  configurable: true,
9277
9404
  get: function description() {
9278
9405
  var symbol = isObject$1(this) ? this.valueOf() : this;
@@ -9294,133 +9421,6 @@ this.Twilio.McsClient = (function (exports) {
9294
9421
  // https://tc39.es/ecma262/#sec-symbol.iterator
9295
9422
  defineWellKnownSymbol('iterator');
9296
9423
 
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,82 +9706,6 @@ 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
-
9785
9709
  var type = function type() {
9786
9710
  for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
9787
9711
  checks[_key] = arguments[_key];
@@ -9791,108 +9715,23 @@ this.Twilio.McsClient = (function (exports) {
9791
9715
  var isValid = false;
9792
9716
  var expectedTypes = [];
9793
9717
 
9794
- var _iterator = _createForOfIteratorHelper$4(checks),
9795
- _step;
9718
+ for (var _i = 0, _checks = checks; _i < _checks.length; _i++) {
9719
+ var _type = _checks[_i];
9796
9720
 
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
- }
9806
-
9807
- isValid = isValid || value instanceof _type;
9808
- expectedTypes.push("an instance of ".concat(_type.name));
9721
+ if (typeof _type === "string") {
9722
+ isValid = isValid || _typeof__default["default"](value) === _type;
9723
+ expectedTypes.push("of type ".concat(_type));
9724
+ continue;
9809
9725
  }
9810
- } catch (err) {
9811
- _iterator.e(err);
9812
- } finally {
9813
- _iterator.f();
9726
+
9727
+ isValid = isValid || value instanceof _type;
9728
+ expectedTypes.push("an instance of ".concat(_type.name));
9814
9729
  }
9815
9730
 
9816
9731
  return [isValid, expectedTypes];
9817
9732
  });
9818
9733
  };
9819
9734
 
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
-
9896
9735
  var literal = function literal() {
9897
9736
  for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
9898
9737
  checks[_key] = arguments[_key];
@@ -9902,19 +9741,10 @@ this.Twilio.McsClient = (function (exports) {
9902
9741
  var isValid = false;
9903
9742
  var expectedTypes = [];
9904
9743
 
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();
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));
9918
9748
  }
9919
9749
 
9920
9750
  return [isValid, expectedTypes];