@doordeck/doordeck-headless-sdk 0.200.0 → 0.201.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.
@@ -37,17 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
- if (typeof Math.clz32 === 'undefined') {
41
- Math.clz32 = function (log, LN2) {
42
- return function (x) {
43
- var asUint = x >>> 0;
44
- if (asUint === 0) {
45
- return 32;
46
- }
47
- return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
48
- };
49
- }(Math.log, Math.LN2);
50
- }
51
40
  if (typeof Math.trunc === 'undefined') {
52
41
  Math.trunc = function (x) {
53
42
  if (isNaN(x)) {
@@ -59,11 +48,16 @@ if (typeof Math.trunc === 'undefined') {
59
48
  return Math.ceil(x);
60
49
  };
61
50
  }
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
- }});
51
+ if (typeof Math.clz32 === 'undefined') {
52
+ Math.clz32 = function (log, LN2) {
53
+ return function (x) {
54
+ var asUint = x >>> 0;
55
+ if (asUint === 0) {
56
+ return 32;
57
+ }
58
+ return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
59
+ };
60
+ }(Math.log, Math.LN2);
67
61
  }
68
62
  if (typeof String.prototype.endsWith === 'undefined') {
69
63
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
@@ -76,6 +70,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
76
70
  return lastIndex !== -1 && lastIndex === position;
77
71
  }});
78
72
  }
73
+ if (typeof String.prototype.startsWith === 'undefined') {
74
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
75
+ position = position || 0;
76
+ return this.lastIndexOf(searchString, position) === position;
77
+ }});
78
+ }
79
79
  //endregion
80
80
  (function (_) {
81
81
  'use strict';
@@ -227,11 +227,6 @@
227
227
  initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, VOID, [Waiter], [0, 3]);
228
228
  initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
229
229
  initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
230
- function close$default(cause, $super) {
231
- cause = cause === VOID ? null : cause;
232
- return $super === VOID ? this.w1b(cause) : $super.w1b.call(this, cause);
233
- }
234
- initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
235
230
  function cancel$default_0(cause, $super) {
236
231
  cause = cause === VOID ? null : cause;
237
232
  var tmp;
@@ -244,7 +239,12 @@
244
239
  return tmp;
245
240
  }
246
241
  initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
247
- initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
242
+ function close$default(cause, $super) {
243
+ cause = cause === VOID ? null : cause;
244
+ return $super === VOID ? this.w1b(cause) : $super.w1b.call(this, cause);
245
+ }
246
+ initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
247
+ initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
248
248
  initMetadataForClass(WaiterEB, 'WaiterEB');
249
249
  initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
250
250
  initMetadataForObject(Factory, 'Factory');
@@ -254,7 +254,7 @@
254
254
  initMetadataForClass(ChannelResult, 'ChannelResult');
255
255
  initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
256
256
  initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
257
- initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [SendChannel, ReceiveChannel], [1, 0]);
257
+ initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [ReceiveChannel, SendChannel], [1, 0]);
258
258
  initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
259
259
  initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
260
260
  initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ProducerScope], [1, 0]);
@@ -280,7 +280,7 @@
280
280
  initMetadataForCoroutine($doSelectSuspendCOROUTINE$, CoroutineImpl);
281
281
  initMetadataForCoroutine($completeCOROUTINE$, CoroutineImpl);
282
282
  initMetadataForCoroutine($processResultAndInvokeBlockRecoveringExceptionCOROUTINE$, CoroutineImpl);
283
- initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
283
+ initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
284
284
  initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
285
285
  initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
286
286
  initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
@@ -83,8 +83,8 @@
83
83
  var _ChannelResult___get_isClosed__impl__mg7kuu = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
84
84
  var close$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
85
85
  var cancel$default = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
86
- var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
87
86
  var ReceiveChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
87
+ var SendChannel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
88
88
  var RuntimeException = kotlin_kotlin.$_$.dg;
89
89
  var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.a3;
90
90
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
@@ -128,7 +128,7 @@
128
128
  initMetadataForClass(ChannelConfig, 'ChannelConfig');
129
129
  initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
130
130
  initMetadataForCompanion(Companion_4);
131
- initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
131
+ initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
132
132
  initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
133
133
  initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
134
134
  initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doordeck/doordeck-headless-sdk",
3
- "version": "0.200.0",
3
+ "version": "0.201.0",
4
4
  "main": "kotlin/doordeck-sdk.js",
5
5
  "types": "kotlin/doordeck-sdk.d.ts",
6
6
  "devDependencies": {