@twilio/conversations 2.6.0-rc.1 → 2.6.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.esm.js +1 -1
- package/builds/browser.js +1 -1
- package/builds/lib.esm.js +1 -1
- package/builds/lib.js +1 -1
- package/builds/twilio-conversations.js +152 -322
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/data/conversations.js +0 -10
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +6 -0
- package/dist/data/messages.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/dist/services/network.js +7 -0
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +0 -7
- package/dist/services/typing-indicator.js.map +1 -1
- package/docs/assets/js/search.js +1 -1
- package/docs/classes/CancellablePromise.html +3213 -0
- package/docs/classes/Client.html +4 -4
- package/docs/classes/Media.html +2 -2
- package/docs/classes/Message.html +8 -8
- package/docs/classes/MessageBuilder.html +2 -2
- package/docs/classes/UnsentMessage.html +2 -2
- package/docs/index.html +5 -1
- package/docs/modules.html +4 -0
- package/package.json +2 -2
package/builds/browser.esm.js
CHANGED
@@ -8025,7 +8025,7 @@ function PushNotification(data) {
|
|
8025
8025
|
this.data = data.data || {};
|
8026
8026
|
});
|
8027
8027
|
|
8028
|
-
var version = "2.6.0
|
8028
|
+
var version = "2.6.0";
|
8029
8029
|
|
8030
8030
|
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; }
|
8031
8031
|
|
package/builds/browser.js
CHANGED
@@ -8064,7 +8064,7 @@ function PushNotification(data) {
|
|
8064
8064
|
this.data = data.data || {};
|
8065
8065
|
});
|
8066
8066
|
|
8067
|
-
var version = "2.6.0
|
8067
|
+
var version = "2.6.0";
|
8068
8068
|
|
8069
8069
|
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; }
|
8070
8070
|
|
package/builds/lib.esm.js
CHANGED
@@ -8025,7 +8025,7 @@ function PushNotification(data) {
|
|
8025
8025
|
this.data = data.data || {};
|
8026
8026
|
});
|
8027
8027
|
|
8028
|
-
var version = "2.6.0
|
8028
|
+
var version = "2.6.0";
|
8029
8029
|
|
8030
8030
|
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; }
|
8031
8031
|
|
package/builds/lib.js
CHANGED
@@ -8064,7 +8064,7 @@ function PushNotification(data) {
|
|
8064
8064
|
this.data = data.data || {};
|
8065
8065
|
});
|
8066
8066
|
|
8067
|
-
var version = "2.6.0
|
8067
|
+
var version = "2.6.0";
|
8068
8068
|
|
8069
8069
|
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; }
|
8070
8070
|
|
@@ -5403,139 +5403,6 @@ this.Twilio.Conversations = (function (exports) {
|
|
5403
5403
|
|
5404
5404
|
var browser$7 = {};
|
5405
5405
|
|
5406
|
-
var $$i = _export;
|
5407
|
-
var isObject$b = isObject$q;
|
5408
|
-
var isArray = isArray$4;
|
5409
|
-
var toAbsoluteIndex$4 = toAbsoluteIndex$6;
|
5410
|
-
var toLength$h = toLength$o;
|
5411
|
-
var toIndexedObject$2 = toIndexedObject$c;
|
5412
|
-
var createProperty$1 = createProperty$5;
|
5413
|
-
var wellKnownSymbol$6 = wellKnownSymbol$s;
|
5414
|
-
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;
|
5415
|
-
|
5416
|
-
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');
|
5417
|
-
|
5418
|
-
var SPECIES = wellKnownSymbol$6('species');
|
5419
|
-
var nativeSlice = [].slice;
|
5420
|
-
var max$1 = Math.max;
|
5421
|
-
|
5422
|
-
// `Array.prototype.slice` method
|
5423
|
-
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
5424
|
-
// fallback for not array-like ES3 strings and DOM objects
|
5425
|
-
$$i({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
5426
|
-
slice: function slice(start, end) {
|
5427
|
-
var O = toIndexedObject$2(this);
|
5428
|
-
var length = toLength$h(O.length);
|
5429
|
-
var k = toAbsoluteIndex$4(start, length);
|
5430
|
-
var fin = toAbsoluteIndex$4(end === undefined ? length : end, length);
|
5431
|
-
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
5432
|
-
var Constructor, result, n;
|
5433
|
-
if (isArray(O)) {
|
5434
|
-
Constructor = O.constructor;
|
5435
|
-
// cross-realm fallback
|
5436
|
-
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
5437
|
-
Constructor = undefined;
|
5438
|
-
} else if (isObject$b(Constructor)) {
|
5439
|
-
Constructor = Constructor[SPECIES];
|
5440
|
-
if (Constructor === null) Constructor = undefined;
|
5441
|
-
}
|
5442
|
-
if (Constructor === Array || Constructor === undefined) {
|
5443
|
-
return nativeSlice.call(O, k, fin);
|
5444
|
-
}
|
5445
|
-
}
|
5446
|
-
result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
|
5447
|
-
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
|
5448
|
-
result.length = n;
|
5449
|
-
return result;
|
5450
|
-
}
|
5451
|
-
});
|
5452
|
-
|
5453
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
5454
|
-
|
5455
|
-
var $$h = _export;
|
5456
|
-
var isObject$a = isObject$q;
|
5457
|
-
|
5458
|
-
var DELEGATES_TO_EXEC = function () {
|
5459
|
-
var execCalled = false;
|
5460
|
-
var re = /[ac]/;
|
5461
|
-
re.exec = function () {
|
5462
|
-
execCalled = true;
|
5463
|
-
return /./.exec.apply(this, arguments);
|
5464
|
-
};
|
5465
|
-
return re.test('abc') === true && execCalled;
|
5466
|
-
}();
|
5467
|
-
|
5468
|
-
var nativeTest = /./.test;
|
5469
|
-
|
5470
|
-
// `RegExp.prototype.test` method
|
5471
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
5472
|
-
$$h({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
5473
|
-
test: function (str) {
|
5474
|
-
if (typeof this.exec !== 'function') {
|
5475
|
-
return nativeTest.call(this, str);
|
5476
|
-
}
|
5477
|
-
var result = this.exec(str);
|
5478
|
-
if (result !== null && !isObject$a(result)) {
|
5479
|
-
throw new Error('RegExp exec method returned something other than an Object or null');
|
5480
|
-
}
|
5481
|
-
return !!result;
|
5482
|
-
}
|
5483
|
-
});
|
5484
|
-
|
5485
|
-
var $$g = _export;
|
5486
|
-
var DESCRIPTORS$8 = descriptors;
|
5487
|
-
var global$c = global$D;
|
5488
|
-
var has$4 = has$g;
|
5489
|
-
var isObject$9 = isObject$q;
|
5490
|
-
var defineProperty$7 = objectDefineProperty.f;
|
5491
|
-
var copyConstructorProperties = copyConstructorProperties$2;
|
5492
|
-
|
5493
|
-
var NativeSymbol = global$c.Symbol;
|
5494
|
-
|
5495
|
-
if (DESCRIPTORS$8 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
5496
|
-
// Safari 12 bug
|
5497
|
-
NativeSymbol().description !== undefined
|
5498
|
-
)) {
|
5499
|
-
var EmptyStringDescriptionStore = {};
|
5500
|
-
// wrap Symbol constructor for correct work with undefined description
|
5501
|
-
var SymbolWrapper = function Symbol() {
|
5502
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
5503
|
-
var result = this instanceof SymbolWrapper
|
5504
|
-
? new NativeSymbol(description)
|
5505
|
-
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
5506
|
-
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
5507
|
-
if (description === '') EmptyStringDescriptionStore[result] = true;
|
5508
|
-
return result;
|
5509
|
-
};
|
5510
|
-
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
5511
|
-
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
5512
|
-
symbolPrototype.constructor = SymbolWrapper;
|
5513
|
-
|
5514
|
-
var symbolToString = symbolPrototype.toString;
|
5515
|
-
var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
|
5516
|
-
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
5517
|
-
defineProperty$7(symbolPrototype, 'description', {
|
5518
|
-
configurable: true,
|
5519
|
-
get: function description() {
|
5520
|
-
var symbol = isObject$9(this) ? this.valueOf() : this;
|
5521
|
-
var string = symbolToString.call(symbol);
|
5522
|
-
if (has$4(EmptyStringDescriptionStore, symbol)) return '';
|
5523
|
-
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
|
5524
|
-
return desc === '' ? undefined : desc;
|
5525
|
-
}
|
5526
|
-
});
|
5527
|
-
|
5528
|
-
$$g({ global: true, forced: true }, {
|
5529
|
-
Symbol: SymbolWrapper
|
5530
|
-
});
|
5531
|
-
}
|
5532
|
-
|
5533
|
-
var defineWellKnownSymbol = defineWellKnownSymbol$2;
|
5534
|
-
|
5535
|
-
// `Symbol.iterator` well-known symbol
|
5536
|
-
// https://tc39.es/ecma262/#sec-symbol.iterator
|
5537
|
-
defineWellKnownSymbol('iterator');
|
5538
|
-
|
5539
5406
|
var _typeof$2 = {exports: {}};
|
5540
5407
|
|
5541
5408
|
(function (module) {
|
@@ -5552,8 +5419,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
5552
5419
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5553
5420
|
})(_typeof$2);
|
5554
5421
|
|
5555
|
-
var DESCRIPTORS$
|
5556
|
-
var defineProperty$
|
5422
|
+
var DESCRIPTORS$8 = descriptors;
|
5423
|
+
var defineProperty$7 = objectDefineProperty.f;
|
5557
5424
|
|
5558
5425
|
var FunctionPrototype = Function.prototype;
|
5559
5426
|
var FunctionPrototypeToString = FunctionPrototype.toString;
|
@@ -5562,8 +5429,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
5562
5429
|
|
5563
5430
|
// Function instances `.name` property
|
5564
5431
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
5565
|
-
if (DESCRIPTORS$
|
5566
|
-
defineProperty$
|
5432
|
+
if (DESCRIPTORS$8 && !(NAME$1 in FunctionPrototype)) {
|
5433
|
+
defineProperty$7(FunctionPrototype, NAME$1, {
|
5567
5434
|
configurable: true,
|
5568
5435
|
get: function () {
|
5569
5436
|
try {
|
@@ -5679,6 +5546,139 @@ this.Twilio.Conversations = (function (exports) {
|
|
5679
5546
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5680
5547
|
})(slicedToArray);
|
5681
5548
|
|
5549
|
+
var $$i = _export;
|
5550
|
+
var isObject$b = isObject$q;
|
5551
|
+
var isArray = isArray$4;
|
5552
|
+
var toAbsoluteIndex$4 = toAbsoluteIndex$6;
|
5553
|
+
var toLength$h = toLength$o;
|
5554
|
+
var toIndexedObject$2 = toIndexedObject$c;
|
5555
|
+
var createProperty$1 = createProperty$5;
|
5556
|
+
var wellKnownSymbol$6 = wellKnownSymbol$s;
|
5557
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;
|
5558
|
+
|
5559
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');
|
5560
|
+
|
5561
|
+
var SPECIES = wellKnownSymbol$6('species');
|
5562
|
+
var nativeSlice = [].slice;
|
5563
|
+
var max$1 = Math.max;
|
5564
|
+
|
5565
|
+
// `Array.prototype.slice` method
|
5566
|
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
5567
|
+
// fallback for not array-like ES3 strings and DOM objects
|
5568
|
+
$$i({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
5569
|
+
slice: function slice(start, end) {
|
5570
|
+
var O = toIndexedObject$2(this);
|
5571
|
+
var length = toLength$h(O.length);
|
5572
|
+
var k = toAbsoluteIndex$4(start, length);
|
5573
|
+
var fin = toAbsoluteIndex$4(end === undefined ? length : end, length);
|
5574
|
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
5575
|
+
var Constructor, result, n;
|
5576
|
+
if (isArray(O)) {
|
5577
|
+
Constructor = O.constructor;
|
5578
|
+
// cross-realm fallback
|
5579
|
+
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
5580
|
+
Constructor = undefined;
|
5581
|
+
} else if (isObject$b(Constructor)) {
|
5582
|
+
Constructor = Constructor[SPECIES];
|
5583
|
+
if (Constructor === null) Constructor = undefined;
|
5584
|
+
}
|
5585
|
+
if (Constructor === Array || Constructor === undefined) {
|
5586
|
+
return nativeSlice.call(O, k, fin);
|
5587
|
+
}
|
5588
|
+
}
|
5589
|
+
result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
|
5590
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
|
5591
|
+
result.length = n;
|
5592
|
+
return result;
|
5593
|
+
}
|
5594
|
+
});
|
5595
|
+
|
5596
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
5597
|
+
|
5598
|
+
var $$h = _export;
|
5599
|
+
var isObject$a = isObject$q;
|
5600
|
+
|
5601
|
+
var DELEGATES_TO_EXEC = function () {
|
5602
|
+
var execCalled = false;
|
5603
|
+
var re = /[ac]/;
|
5604
|
+
re.exec = function () {
|
5605
|
+
execCalled = true;
|
5606
|
+
return /./.exec.apply(this, arguments);
|
5607
|
+
};
|
5608
|
+
return re.test('abc') === true && execCalled;
|
5609
|
+
}();
|
5610
|
+
|
5611
|
+
var nativeTest = /./.test;
|
5612
|
+
|
5613
|
+
// `RegExp.prototype.test` method
|
5614
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
5615
|
+
$$h({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
5616
|
+
test: function (str) {
|
5617
|
+
if (typeof this.exec !== 'function') {
|
5618
|
+
return nativeTest.call(this, str);
|
5619
|
+
}
|
5620
|
+
var result = this.exec(str);
|
5621
|
+
if (result !== null && !isObject$a(result)) {
|
5622
|
+
throw new Error('RegExp exec method returned something other than an Object or null');
|
5623
|
+
}
|
5624
|
+
return !!result;
|
5625
|
+
}
|
5626
|
+
});
|
5627
|
+
|
5628
|
+
var $$g = _export;
|
5629
|
+
var DESCRIPTORS$7 = descriptors;
|
5630
|
+
var global$c = global$D;
|
5631
|
+
var has$4 = has$g;
|
5632
|
+
var isObject$9 = isObject$q;
|
5633
|
+
var defineProperty$6 = objectDefineProperty.f;
|
5634
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
5635
|
+
|
5636
|
+
var NativeSymbol = global$c.Symbol;
|
5637
|
+
|
5638
|
+
if (DESCRIPTORS$7 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
5639
|
+
// Safari 12 bug
|
5640
|
+
NativeSymbol().description !== undefined
|
5641
|
+
)) {
|
5642
|
+
var EmptyStringDescriptionStore = {};
|
5643
|
+
// wrap Symbol constructor for correct work with undefined description
|
5644
|
+
var SymbolWrapper = function Symbol() {
|
5645
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
5646
|
+
var result = this instanceof SymbolWrapper
|
5647
|
+
? new NativeSymbol(description)
|
5648
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
5649
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
5650
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
5651
|
+
return result;
|
5652
|
+
};
|
5653
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
5654
|
+
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
5655
|
+
symbolPrototype.constructor = SymbolWrapper;
|
5656
|
+
|
5657
|
+
var symbolToString = symbolPrototype.toString;
|
5658
|
+
var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
|
5659
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
5660
|
+
defineProperty$6(symbolPrototype, 'description', {
|
5661
|
+
configurable: true,
|
5662
|
+
get: function description() {
|
5663
|
+
var symbol = isObject$9(this) ? this.valueOf() : this;
|
5664
|
+
var string = symbolToString.call(symbol);
|
5665
|
+
if (has$4(EmptyStringDescriptionStore, symbol)) return '';
|
5666
|
+
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
|
5667
|
+
return desc === '' ? undefined : desc;
|
5668
|
+
}
|
5669
|
+
});
|
5670
|
+
|
5671
|
+
$$g({ global: true, forced: true }, {
|
5672
|
+
Symbol: SymbolWrapper
|
5673
|
+
});
|
5674
|
+
}
|
5675
|
+
|
5676
|
+
var defineWellKnownSymbol = defineWellKnownSymbol$2;
|
5677
|
+
|
5678
|
+
// `Symbol.iterator` well-known symbol
|
5679
|
+
// https://tc39.es/ecma262/#sec-symbol.iterator
|
5680
|
+
defineWellKnownSymbol('iterator');
|
5681
|
+
|
5682
5682
|
var toConsumableArray = {exports: {}};
|
5683
5683
|
|
5684
5684
|
var arrayWithoutHoles = {exports: {}};
|
@@ -5971,82 +5971,6 @@ this.Twilio.Conversations = (function (exports) {
|
|
5971
5971
|
};
|
5972
5972
|
};
|
5973
5973
|
|
5974
|
-
function _createForOfIteratorHelper$4$1(o, allowArrayLike) {
|
5975
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
5976
|
-
|
5977
|
-
if (!it) {
|
5978
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray$4$1(o)) || allowArrayLike && o && typeof o.length === "number") {
|
5979
|
-
if (it) o = it;
|
5980
|
-
var i = 0;
|
5981
|
-
|
5982
|
-
var F = function F() {};
|
5983
|
-
|
5984
|
-
return {
|
5985
|
-
s: F,
|
5986
|
-
n: function n() {
|
5987
|
-
if (i >= o.length) return {
|
5988
|
-
done: true
|
5989
|
-
};
|
5990
|
-
return {
|
5991
|
-
done: false,
|
5992
|
-
value: o[i++]
|
5993
|
-
};
|
5994
|
-
},
|
5995
|
-
e: function e(_e) {
|
5996
|
-
throw _e;
|
5997
|
-
},
|
5998
|
-
f: F
|
5999
|
-
};
|
6000
|
-
}
|
6001
|
-
|
6002
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
6003
|
-
}
|
6004
|
-
|
6005
|
-
var normalCompletion = true,
|
6006
|
-
didErr = false,
|
6007
|
-
err;
|
6008
|
-
return {
|
6009
|
-
s: function s() {
|
6010
|
-
it = it.call(o);
|
6011
|
-
},
|
6012
|
-
n: function n() {
|
6013
|
-
var step = it.next();
|
6014
|
-
normalCompletion = step.done;
|
6015
|
-
return step;
|
6016
|
-
},
|
6017
|
-
e: function e(_e2) {
|
6018
|
-
didErr = true;
|
6019
|
-
err = _e2;
|
6020
|
-
},
|
6021
|
-
f: function f() {
|
6022
|
-
try {
|
6023
|
-
if (!normalCompletion && it.return != null) it.return();
|
6024
|
-
} finally {
|
6025
|
-
if (didErr) throw err;
|
6026
|
-
}
|
6027
|
-
}
|
6028
|
-
};
|
6029
|
-
}
|
6030
|
-
|
6031
|
-
function _unsupportedIterableToArray$4$1(o, minLen) {
|
6032
|
-
if (!o) return;
|
6033
|
-
if (typeof o === "string") return _arrayLikeToArray$4$1(o, minLen);
|
6034
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
6035
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
6036
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
6037
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4$1(o, minLen);
|
6038
|
-
}
|
6039
|
-
|
6040
|
-
function _arrayLikeToArray$4$1(arr, len) {
|
6041
|
-
if (len == null || len > arr.length) len = arr.length;
|
6042
|
-
|
6043
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
6044
|
-
arr2[i] = arr[i];
|
6045
|
-
}
|
6046
|
-
|
6047
|
-
return arr2;
|
6048
|
-
}
|
6049
|
-
|
6050
5974
|
var type = function type() {
|
6051
5975
|
for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
|
6052
5976
|
checks[_key] = arguments[_key];
|
@@ -6056,108 +5980,23 @@ this.Twilio.Conversations = (function (exports) {
|
|
6056
5980
|
var isValid = false;
|
6057
5981
|
var expectedTypes = [];
|
6058
5982
|
|
6059
|
-
var
|
6060
|
-
|
5983
|
+
for (var _i = 0, _checks = checks; _i < _checks.length; _i++) {
|
5984
|
+
var _type = _checks[_i];
|
6061
5985
|
|
6062
|
-
|
6063
|
-
|
6064
|
-
|
6065
|
-
|
6066
|
-
if (typeof _type === "string") {
|
6067
|
-
isValid = isValid || _typeof__default$1["default"](value) === _type;
|
6068
|
-
expectedTypes.push("of type ".concat(_type));
|
6069
|
-
continue;
|
6070
|
-
}
|
6071
|
-
|
6072
|
-
isValid = isValid || value instanceof _type;
|
6073
|
-
expectedTypes.push("an instance of ".concat(_type.name));
|
5986
|
+
if (typeof _type === "string") {
|
5987
|
+
isValid = isValid || _typeof__default$1["default"](value) === _type;
|
5988
|
+
expectedTypes.push("of type ".concat(_type));
|
5989
|
+
continue;
|
6074
5990
|
}
|
6075
|
-
|
6076
|
-
|
6077
|
-
|
6078
|
-
_iterator.f();
|
5991
|
+
|
5992
|
+
isValid = isValid || value instanceof _type;
|
5993
|
+
expectedTypes.push("an instance of ".concat(_type.name));
|
6079
5994
|
}
|
6080
5995
|
|
6081
5996
|
return [isValid, expectedTypes];
|
6082
5997
|
});
|
6083
5998
|
};
|
6084
5999
|
|
6085
|
-
function _createForOfIteratorHelper$3$2(o, allowArrayLike) {
|
6086
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
6087
|
-
|
6088
|
-
if (!it) {
|
6089
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray$3$2(o)) || allowArrayLike && o && typeof o.length === "number") {
|
6090
|
-
if (it) o = it;
|
6091
|
-
var i = 0;
|
6092
|
-
|
6093
|
-
var F = function F() {};
|
6094
|
-
|
6095
|
-
return {
|
6096
|
-
s: F,
|
6097
|
-
n: function n() {
|
6098
|
-
if (i >= o.length) return {
|
6099
|
-
done: true
|
6100
|
-
};
|
6101
|
-
return {
|
6102
|
-
done: false,
|
6103
|
-
value: o[i++]
|
6104
|
-
};
|
6105
|
-
},
|
6106
|
-
e: function e(_e) {
|
6107
|
-
throw _e;
|
6108
|
-
},
|
6109
|
-
f: F
|
6110
|
-
};
|
6111
|
-
}
|
6112
|
-
|
6113
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
6114
|
-
}
|
6115
|
-
|
6116
|
-
var normalCompletion = true,
|
6117
|
-
didErr = false,
|
6118
|
-
err;
|
6119
|
-
return {
|
6120
|
-
s: function s() {
|
6121
|
-
it = it.call(o);
|
6122
|
-
},
|
6123
|
-
n: function n() {
|
6124
|
-
var step = it.next();
|
6125
|
-
normalCompletion = step.done;
|
6126
|
-
return step;
|
6127
|
-
},
|
6128
|
-
e: function e(_e2) {
|
6129
|
-
didErr = true;
|
6130
|
-
err = _e2;
|
6131
|
-
},
|
6132
|
-
f: function f() {
|
6133
|
-
try {
|
6134
|
-
if (!normalCompletion && it.return != null) it.return();
|
6135
|
-
} finally {
|
6136
|
-
if (didErr) throw err;
|
6137
|
-
}
|
6138
|
-
}
|
6139
|
-
};
|
6140
|
-
}
|
6141
|
-
|
6142
|
-
function _unsupportedIterableToArray$3$2(o, minLen) {
|
6143
|
-
if (!o) return;
|
6144
|
-
if (typeof o === "string") return _arrayLikeToArray$3$2(o, minLen);
|
6145
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
6146
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
6147
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
6148
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3$2(o, minLen);
|
6149
|
-
}
|
6150
|
-
|
6151
|
-
function _arrayLikeToArray$3$2(arr, len) {
|
6152
|
-
if (len == null || len > arr.length) len = arr.length;
|
6153
|
-
|
6154
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
6155
|
-
arr2[i] = arr[i];
|
6156
|
-
}
|
6157
|
-
|
6158
|
-
return arr2;
|
6159
|
-
}
|
6160
|
-
|
6161
6000
|
var literal = function literal() {
|
6162
6001
|
for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
|
6163
6002
|
checks[_key] = arguments[_key];
|
@@ -6167,19 +6006,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
6167
6006
|
var isValid = false;
|
6168
6007
|
var expectedTypes = [];
|
6169
6008
|
|
6170
|
-
var
|
6171
|
-
|
6172
|
-
|
6173
|
-
|
6174
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
6175
|
-
var type = _step.value;
|
6176
|
-
isValid = isValid || value === type;
|
6177
|
-
expectedTypes.push(typeof type === "string" ? "\"".concat(type, "\"") : "".concat(type));
|
6178
|
-
}
|
6179
|
-
} catch (err) {
|
6180
|
-
_iterator.e(err);
|
6181
|
-
} finally {
|
6182
|
-
_iterator.f();
|
6009
|
+
for (var _i = 0, _checks = checks; _i < _checks.length; _i++) {
|
6010
|
+
var type = _checks[_i];
|
6011
|
+
isValid = isValid || value === type;
|
6012
|
+
expectedTypes.push(typeof type === "string" ? "\"".concat(type, "\"") : "".concat(type));
|
6183
6013
|
}
|
6184
6014
|
|
6185
6015
|
return [isValid, expectedTypes];
|
@@ -34914,7 +34744,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
34914
34744
|
return Network;
|
34915
34745
|
}();
|
34916
34746
|
|
34917
|
-
var version = "0.6.
|
34747
|
+
var version = "0.6.8";
|
34918
34748
|
|
34919
34749
|
var _class;
|
34920
34750
|
|
@@ -42412,7 +42242,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
42412
42242
|
this.data = data.data || {};
|
42413
42243
|
});
|
42414
42244
|
|
42415
|
-
var version = "2.6.0
|
42245
|
+
var version = "2.6.0";
|
42416
42246
|
|
42417
42247
|
function _isNativeFunction(fn) {
|
42418
42248
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|