@doordeck/doordeck-headless-sdk 0.155.0 → 0.157.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.
@@ -48,6 +48,12 @@ if (typeof Math.clz32 === 'undefined') {
48
48
  };
49
49
  }(Math.log, Math.LN2);
50
50
  }
51
+ if (typeof String.prototype.startsWith === 'undefined') {
52
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
53
+ position = position || 0;
54
+ return this.lastIndexOf(searchString, position) === position;
55
+ }});
56
+ }
51
57
  if (typeof String.prototype.endsWith === 'undefined') {
52
58
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
53
59
  var subjectString = this.toString();
@@ -59,12 +65,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
59
65
  return lastIndex !== -1 && lastIndex === position;
60
66
  }});
61
67
  }
62
- if (typeof String.prototype.startsWith === 'undefined') {
63
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
64
- position = position || 0;
65
- return this.lastIndexOf(searchString, position) === position;
66
- }});
67
- }
68
68
  //endregion
69
69
  (function (_) {
70
70
  'use strict';
@@ -541,6 +541,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
541
541
  transform = transform === VOID ? null : transform;
542
542
  return joinTo_0(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
543
543
  }
544
+ function get_lastIndex_0(_this__u8e3s4) {
545
+ return _this__u8e3s4.length - 1 | 0;
546
+ }
544
547
  function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
545
548
  separator = separator === VOID ? ', ' : separator;
546
549
  prefix = prefix === VOID ? '' : prefix;
@@ -576,9 +579,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
576
579
  function toMutableList(_this__u8e3s4) {
577
580
  return ArrayList_init_$Create$_1(asCollection(_this__u8e3s4));
578
581
  }
579
- function get_lastIndex_0(_this__u8e3s4) {
580
- return _this__u8e3s4.length - 1 | 0;
581
- }
582
582
  function get_lastIndex_1(_this__u8e3s4) {
583
583
  return _this__u8e3s4.length - 1 | 0;
584
584
  }
@@ -7535,14 +7535,14 @@ if (typeof String.prototype.startsWith === 'undefined') {
7535
7535
  Companion_instance_7.vc(startIndex, endIndex, _this__u8e3s4.length);
7536
7536
  return decodeUtf8(_this__u8e3s4, startIndex, endIndex, throwOnInvalidSequence);
7537
7537
  }
7538
- function decodeToString_0(_this__u8e3s4) {
7539
- _init_properties_stringJs_kt__bg7zye();
7540
- return decodeUtf8(_this__u8e3s4, 0, _this__u8e3s4.length, false);
7541
- }
7542
7538
  function encodeToByteArray(_this__u8e3s4) {
7543
7539
  _init_properties_stringJs_kt__bg7zye();
7544
7540
  return encodeUtf8(_this__u8e3s4, 0, _this__u8e3s4.length, false);
7545
7541
  }
7542
+ function decodeToString_0(_this__u8e3s4) {
7543
+ _init_properties_stringJs_kt__bg7zye();
7544
+ return decodeUtf8(_this__u8e3s4, 0, _this__u8e3s4.length, false);
7545
+ }
7546
7546
  function encodeToByteArray_0(_this__u8e3s4, startIndex, endIndex, throwOnInvalidSequence) {
7547
7547
  startIndex = startIndex === VOID ? 0 : startIndex;
7548
7548
  endIndex = endIndex === VOID ? _this__u8e3s4.length : endIndex;
@@ -217,11 +217,6 @@
217
217
  initMetadataForClass(SendBroadcast, 'SendBroadcast', VOID, VOID, [Waiter]);
218
218
  initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, VOID, [Waiter], [0, 3]);
219
219
  initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
220
- function close$default(cause, $super) {
221
- cause = cause === VOID ? null : cause;
222
- return $super === VOID ? this.g1a(cause) : $super.g1a.call(this, cause);
223
- }
224
- initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
225
220
  function cancel$default_0(cause, $super) {
226
221
  cause = cause === VOID ? null : cause;
227
222
  var tmp;
@@ -234,7 +229,12 @@
234
229
  return tmp;
235
230
  }
236
231
  initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
237
- initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
232
+ function close$default(cause, $super) {
233
+ cause = cause === VOID ? null : cause;
234
+ return $super === VOID ? this.g1a(cause) : $super.g1a.call(this, cause);
235
+ }
236
+ initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
237
+ initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
238
238
  initMetadataForClass(WaiterEB, 'WaiterEB');
239
239
  initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
240
240
  initMetadataForObject(Factory, 'Factory');
@@ -244,7 +244,7 @@
244
244
  initMetadataForClass(ChannelResult, 'ChannelResult');
245
245
  initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
246
246
  initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
247
- initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine, SendChannel, ReceiveChannel], [1, 0]);
247
+ initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine, ReceiveChannel, SendChannel], [1, 0]);
248
248
  initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
249
249
  initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
250
250
  initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ChannelCoroutine, ProducerScope], [1, 0]);