@doordeck/doordeck-headless-sdk 0.68.0 → 0.71.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.
Files changed (26) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1344 -1344
  2. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
  3. package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
  4. package/kotlin/doordeck-sdk.d.ts +4 -0
  5. package/kotlin/doordeck-sdk.js +11570 -11565
  6. package/kotlin/kotlin-kotlin-stdlib.js +2607 -2319
  7. package/kotlin/kotlinx-atomicfu.js +19 -19
  8. package/kotlin/kotlinx-coroutines-core.js +2794 -2208
  9. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +198 -2
  10. package/kotlin/kotlinx-io-kotlinx-io-core.js +536 -463
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1939 -1939
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1684
  13. package/kotlin/ktor-ktor-client-ktor-client-core.js +3274 -3074
  14. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +529 -427
  15. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +372 -271
  16. package/kotlin/ktor-ktor-http-ktor-http-cio.js +2009 -0
  17. package/kotlin/ktor-ktor-http.js +1012 -907
  18. package/kotlin/ktor-ktor-io.js +1748 -871
  19. package/kotlin/ktor-ktor-shared-ktor-events.js +13 -13
  20. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
  21. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +282 -282
  22. package/kotlin/ktor-ktor-shared-ktor-serialization.js +137 -137
  23. package/kotlin/ktor-ktor-shared-ktor-websockets.js +57 -57
  24. package/kotlin/ktor-ktor-utils.js +736 -667
  25. package/package.json +2 -2
  26. package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -6
@@ -1,6 +1,202 @@
1
- (function (_) {
1
+ (function (_, kotlin_kotlin) {
2
2
  'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var VOID = kotlin_kotlin.$_$.h;
6
+ var copyOfRange = kotlin_kotlin.$_$.k6;
7
+ var protoOf = kotlin_kotlin.$_$.sb;
8
+ var objectCreate = kotlin_kotlin.$_$.rb;
9
+ var toCharArray = kotlin_kotlin.$_$.zd;
10
+ var initMetadataForCompanion = kotlin_kotlin.$_$.sa;
11
+ var getKClassFromExpression = kotlin_kotlin.$_$.e;
12
+ var THROW_CCE = kotlin_kotlin.$_$.lf;
13
+ var Unit_instance = kotlin_kotlin.$_$.j5;
14
+ var contentEquals = kotlin_kotlin.$_$.g6;
15
+ var contentHashCode = kotlin_kotlin.$_$.h6;
16
+ var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.d2;
17
+ var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.e3;
18
+ var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.f3;
19
+ var compareTo = kotlin_kotlin.$_$.ha;
20
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i1;
21
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s2;
22
+ var Comparable = kotlin_kotlin.$_$.we;
23
+ var initMetadataForClass = kotlin_kotlin.$_$.ra;
24
+ var decodeToString = kotlin_kotlin.$_$.pc;
25
+ var initMetadataForObject = kotlin_kotlin.$_$.xa;
26
+ //endregion
3
27
  //region block: pre-declaration
28
+ initMetadataForCompanion(Companion);
29
+ initMetadataForClass(ByteString, 'ByteString', VOID, VOID, [Comparable]);
30
+ initMetadataForObject(UnsafeByteStringOperations, 'UnsafeByteStringOperations');
31
+ //endregion
32
+ function ByteString_init_$Init$(data, startIndex, endIndex, $this) {
33
+ startIndex = startIndex === VOID ? 0 : startIndex;
34
+ endIndex = endIndex === VOID ? data.length : endIndex;
35
+ ByteString.call($this, copyOfRange(data, startIndex, endIndex), null);
36
+ return $this;
37
+ }
38
+ function ByteString_init_$Create$(data, startIndex, endIndex) {
39
+ return ByteString_init_$Init$(data, startIndex, endIndex, objectCreate(protoOf(ByteString)));
40
+ }
41
+ function Companion() {
42
+ Companion_instance = this;
43
+ this.s1d_1 = new ByteString(new Int8Array(0), null);
44
+ this.t1d_1 = toCharArray('0123456789abcdef');
45
+ }
46
+ protoOf(Companion).u1d = function (byteArray) {
47
+ return new ByteString(byteArray, null);
48
+ };
49
+ var Companion_instance;
50
+ function Companion_getInstance() {
51
+ if (Companion_instance == null)
52
+ new Companion();
53
+ return Companion_instance;
54
+ }
55
+ function ByteString(data, dummy) {
56
+ Companion_getInstance();
57
+ this.v1d_1 = data;
58
+ this.w1d_1 = 0;
59
+ }
60
+ protoOf(ByteString).s = function () {
61
+ return this.v1d_1.length;
62
+ };
63
+ protoOf(ByteString).equals = function (other) {
64
+ if (this === other)
65
+ return true;
66
+ if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
67
+ return false;
68
+ if (!(other instanceof ByteString))
69
+ THROW_CCE();
70
+ if (!(other.v1d_1.length === this.v1d_1.length))
71
+ return false;
72
+ if (!(other.w1d_1 === 0) && !(this.w1d_1 === 0) && !(other.w1d_1 === this.w1d_1))
73
+ return false;
74
+ return contentEquals(this.v1d_1, other.v1d_1);
75
+ };
76
+ protoOf(ByteString).hashCode = function () {
77
+ var hc = this.w1d_1;
78
+ if (hc === 0) {
79
+ hc = contentHashCode(this.v1d_1);
80
+ this.w1d_1 = hc;
81
+ }
82
+ return hc;
83
+ };
84
+ protoOf(ByteString).u = function (index) {
85
+ if (index < 0 || index >= this.s())
86
+ throw IndexOutOfBoundsException_init_$Create$('index (' + index + ') is out of byte string bounds: [0..' + this.s() + ')');
87
+ return this.v1d_1[index];
88
+ };
89
+ protoOf(ByteString).x1d = function (startIndex, endIndex) {
90
+ var tmp;
91
+ if (startIndex === endIndex) {
92
+ tmp = Companion_getInstance().s1d_1;
93
+ } else {
94
+ tmp = ByteString_init_$Create$(this.v1d_1, startIndex, endIndex);
95
+ }
96
+ return tmp;
97
+ };
98
+ protoOf(ByteString).y1d = function (startIndex, endIndex, $super) {
99
+ endIndex = endIndex === VOID ? this.s() : endIndex;
100
+ return $super === VOID ? this.x1d(startIndex, endIndex) : $super.x1d.call(this, startIndex, endIndex);
101
+ };
102
+ protoOf(ByteString).z1d = function (other) {
103
+ if (other === this)
104
+ return 0;
105
+ var localData = this.v1d_1;
106
+ var otherData = other.v1d_1;
107
+ var inductionVariable = 0;
108
+ var tmp0 = this.s();
109
+ // Inline function 'kotlin.math.min' call
110
+ var b = other.s();
111
+ var last = Math.min(tmp0, b);
112
+ if (inductionVariable < last)
113
+ do {
114
+ var i = inductionVariable;
115
+ inductionVariable = inductionVariable + 1 | 0;
116
+ // Inline function 'kotlin.toUByte' call
117
+ var this_0 = localData[i];
118
+ var tmp4 = _UByte___init__impl__g9hnc4(this_0);
119
+ // Inline function 'kotlin.toUByte' call
120
+ var this_1 = otherData[i];
121
+ // Inline function 'kotlin.UByte.compareTo' call
122
+ var other_0 = _UByte___init__impl__g9hnc4(this_1);
123
+ // Inline function 'kotlin.UByte.toInt' call
124
+ var tmp = _UByte___get_data__impl__jof9qr(tmp4) & 255;
125
+ // Inline function 'kotlin.UByte.toInt' call
126
+ var tmp$ret$4 = _UByte___get_data__impl__jof9qr(other_0) & 255;
127
+ var cmp = compareTo(tmp, tmp$ret$4);
128
+ if (!(cmp === 0))
129
+ return cmp;
130
+ }
131
+ while (inductionVariable < last);
132
+ return compareTo(this.s(), other.s());
133
+ };
134
+ protoOf(ByteString).d = function (other) {
135
+ return this.z1d(other instanceof ByteString ? other : THROW_CCE());
136
+ };
137
+ protoOf(ByteString).toString = function () {
138
+ if (isEmpty(this)) {
139
+ return 'ByteString(size=0)';
140
+ }
141
+ var sizeStr = this.s().toString();
142
+ var len = (22 + sizeStr.length | 0) + imul(this.s(), 2) | 0;
143
+ // Inline function 'kotlin.with' call
144
+ // Inline function 'kotlinx.io.bytestring.ByteString.toString.<anonymous>' call
145
+ var $this$with = StringBuilder_init_$Create$(len);
146
+ $this$with.r8('ByteString(size=');
147
+ $this$with.r8(sizeStr);
148
+ $this$with.r8(' hex=');
149
+ var localData = this.v1d_1;
150
+ var inductionVariable = 0;
151
+ var last = this.s();
152
+ if (inductionVariable < last)
153
+ do {
154
+ var i = inductionVariable;
155
+ inductionVariable = inductionVariable + 1 | 0;
156
+ var b = localData[i];
157
+ $this$with.s8(Companion_getInstance().t1d_1[(b >>> 4 | 0) & 15]);
158
+ $this$with.s8(Companion_getInstance().t1d_1[b & 15]);
159
+ }
160
+ while (inductionVariable < last);
161
+ return $this$with.s8(_Char___init__impl__6a9atx(41)).toString();
162
+ };
163
+ protoOf(ByteString).a1e = function () {
164
+ return this.v1d_1;
165
+ };
166
+ function ByteString_0(bytes) {
167
+ var tmp;
168
+ // Inline function 'kotlin.collections.isEmpty' call
169
+ if (bytes.length === 0) {
170
+ tmp = Companion_getInstance().s1d_1;
171
+ } else {
172
+ tmp = Companion_getInstance().u1d(bytes);
173
+ }
174
+ return tmp;
175
+ }
176
+ function isEmpty(_this__u8e3s4) {
177
+ return _this__u8e3s4.s() === 0;
178
+ }
179
+ function decodeToString_0(_this__u8e3s4) {
180
+ return decodeToString(_this__u8e3s4.a1e());
181
+ }
182
+ function UnsafeByteStringOperations() {
183
+ }
184
+ protoOf(UnsafeByteStringOperations).b1e = function (array) {
185
+ return Companion_getInstance().u1d(array);
186
+ };
187
+ var UnsafeByteStringOperations_instance;
188
+ function UnsafeByteStringOperations_getInstance() {
189
+ return UnsafeByteStringOperations_instance;
190
+ }
191
+ //region block: init
192
+ UnsafeByteStringOperations_instance = new UnsafeByteStringOperations();
193
+ //endregion
194
+ //region block: exports
195
+ _.$_$ = _.$_$ || {};
196
+ _.$_$.a = ByteString_init_$Create$;
197
+ _.$_$.b = UnsafeByteStringOperations_instance;
198
+ _.$_$.c = ByteString_0;
199
+ _.$_$.d = decodeToString_0;
4
200
  //endregion
5
201
  return _;
6
- }(module.exports));
202
+ }(module.exports, require('./kotlin-kotlin-stdlib.js')));