@doordeck/doordeck-headless-sdk 0.190.0 → 0.194.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/kotlin/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +10294 -10331
- package/kotlin/kotlin-kotlin-stdlib.js +1736 -1107
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-browser.js +10 -0
- package/kotlin/kotlinx-coroutines-core.js +2529 -2067
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +52 -52
- package/kotlin/kotlinx-io-kotlinx-io-core.js +489 -493
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1956 -1956
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1483 -1483
- package/kotlin/ktor-ktor-client-auth.js +408 -400
- package/kotlin/ktor-ktor-client-content-negotiation.js +185 -186
- package/kotlin/ktor-ktor-client-core.js +2941 -2275
- package/kotlin/ktor-ktor-client-logging.js +1028 -992
- package/kotlin/ktor-ktor-events.js +15 -15
- package/kotlin/ktor-ktor-http-cio.js +413 -418
- package/kotlin/ktor-ktor-http.js +923 -880
- package/kotlin/ktor-ktor-io.js +1056 -987
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +166 -166
- package/kotlin/ktor-ktor-serialization.js +77 -78
- package/kotlin/ktor-ktor-utils.js +944 -989
- package/kotlin/ktor-ktor-websockets.js +2178 -82
- package/package.json +4 -5
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +0 -329
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Exception = kotlin_kotlin.$_$.
|
|
4
|
+
var Exception = kotlin_kotlin.$_$.sf;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
7
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
8
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
10
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.l1;
|
|
7
|
+
var captureStack = kotlin_kotlin.$_$.la;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.cb;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.c5;
|
|
11
11
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
12
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
13
|
-
var
|
|
14
|
-
var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
12
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.gb;
|
|
13
|
+
var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.u1;
|
|
15
14
|
var forName = kotlin_io_ktor_ktor_io.$_$.u;
|
|
16
15
|
var isSupported = kotlin_io_ktor_ktor_io.$_$.v;
|
|
17
|
-
var equals = kotlin_kotlin.$_$.
|
|
18
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
19
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
21
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
22
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
25
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
27
|
-
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
28
|
-
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
16
|
+
var equals = kotlin_kotlin.$_$.ua;
|
|
17
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ha;
|
|
18
|
+
var isInterface = kotlin_kotlin.$_$.rb;
|
|
19
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
20
|
+
var hashCode = kotlin_kotlin.$_$.bb;
|
|
21
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l9;
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
23
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
|
|
24
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.hb;
|
|
25
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
|
|
26
|
+
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
27
|
+
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
|
|
29
28
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
30
29
|
//endregion
|
|
31
30
|
//region block: pre-declaration
|
|
@@ -41,10 +40,10 @@
|
|
|
41
40
|
configuration = tmp;
|
|
42
41
|
var tmp_0;
|
|
43
42
|
if ($super === VOID) {
|
|
44
|
-
this.
|
|
43
|
+
this.h3l(contentType, converter, configuration);
|
|
45
44
|
tmp_0 = Unit_instance;
|
|
46
45
|
} else {
|
|
47
|
-
tmp_0 = $super.
|
|
46
|
+
tmp_0 = $super.h3l.call(this, contentType, converter, configuration);
|
|
48
47
|
}
|
|
49
48
|
return tmp_0;
|
|
50
49
|
}
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
return tmp.i9();
|
|
74
73
|
}
|
|
75
74
|
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
76
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
75
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().b1y_1 : defaultCharset;
|
|
77
76
|
var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
|
|
78
77
|
return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
|
|
79
78
|
}
|
|
@@ -83,8 +82,8 @@
|
|
|
83
82
|
function Configuration() {
|
|
84
83
|
}
|
|
85
84
|
function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
|
|
86
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
87
|
-
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.
|
|
85
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().b1y_1 : defaultCharset;
|
|
86
|
+
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.p2m('Accept-Charset')).t();
|
|
88
87
|
while (_iterator__ex2g4s.u()) {
|
|
89
88
|
var charset = _iterator__ex2g4s.v().fg();
|
|
90
89
|
if (charset === '*')
|
|
@@ -95,13 +94,13 @@
|
|
|
95
94
|
return null;
|
|
96
95
|
}
|
|
97
96
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
98
|
-
this.
|
|
97
|
+
this.j3l_1 = function_0;
|
|
99
98
|
}
|
|
100
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
101
|
-
return this.
|
|
99
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b1e = function (value, $completion) {
|
|
100
|
+
return this.j3l_1(value, $completion);
|
|
102
101
|
};
|
|
103
102
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
|
|
104
|
-
return this.
|
|
103
|
+
return this.j3l_1;
|
|
105
104
|
};
|
|
106
105
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
107
106
|
var tmp;
|
|
@@ -122,20 +121,20 @@
|
|
|
122
121
|
return hashCode(this.q3());
|
|
123
122
|
};
|
|
124
123
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
128
|
-
this.
|
|
124
|
+
this.s3l_1 = $$this$unsafeFlow;
|
|
125
|
+
this.t3l_1 = $charset;
|
|
126
|
+
this.u3l_1 = $typeInfo;
|
|
127
|
+
this.v3l_1 = $body;
|
|
129
128
|
CoroutineImpl.call(this, resultContinuation);
|
|
130
129
|
}
|
|
131
|
-
protoOf(deserialize$o$collect$slambda).
|
|
132
|
-
var tmp = this.
|
|
130
|
+
protoOf(deserialize$o$collect$slambda).y3l = function (value, $completion) {
|
|
131
|
+
var tmp = this.z3l(value, $completion);
|
|
133
132
|
tmp.c9_1 = Unit_instance;
|
|
134
133
|
tmp.d9_1 = null;
|
|
135
134
|
return tmp.i9();
|
|
136
135
|
};
|
|
137
136
|
protoOf(deserialize$o$collect$slambda).u9 = function (p1, $completion) {
|
|
138
|
-
return this.
|
|
137
|
+
return this.y3l((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
139
138
|
};
|
|
140
139
|
protoOf(deserialize$o$collect$slambda).i9 = function () {
|
|
141
140
|
var suspendResult = this.c9_1;
|
|
@@ -145,11 +144,11 @@
|
|
|
145
144
|
switch (tmp) {
|
|
146
145
|
case 0:
|
|
147
146
|
this.b9_1 = 3;
|
|
148
|
-
var tmp0 = this.
|
|
149
|
-
var tmp2 = this.
|
|
150
|
-
this.
|
|
147
|
+
var tmp0 = this.s3l_1;
|
|
148
|
+
var tmp2 = this.w3l_1;
|
|
149
|
+
this.x3l_1 = tmp0;
|
|
151
150
|
this.a9_1 = 1;
|
|
152
|
-
suspendResult = tmp2.
|
|
151
|
+
suspendResult = tmp2.a3m(this.t3l_1, this.u3l_1, this.v3l_1, this);
|
|
153
152
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
154
153
|
return suspendResult;
|
|
155
154
|
}
|
|
@@ -158,7 +157,7 @@
|
|
|
158
157
|
case 1:
|
|
159
158
|
var ARGUMENT = suspendResult;
|
|
160
159
|
this.a9_1 = 2;
|
|
161
|
-
suspendResult = this.
|
|
160
|
+
suspendResult = this.x3l_1.b1e(ARGUMENT, this);
|
|
162
161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
163
162
|
return suspendResult;
|
|
164
163
|
}
|
|
@@ -180,23 +179,23 @@
|
|
|
180
179
|
}
|
|
181
180
|
while (true);
|
|
182
181
|
};
|
|
183
|
-
protoOf(deserialize$o$collect$slambda).
|
|
184
|
-
var i = new deserialize$o$collect$slambda(this.
|
|
185
|
-
i.
|
|
182
|
+
protoOf(deserialize$o$collect$slambda).z3l = function (value, completion) {
|
|
183
|
+
var i = new deserialize$o$collect$slambda(this.s3l_1, this.t3l_1, this.u3l_1, this.v3l_1, completion);
|
|
184
|
+
i.w3l_1 = value;
|
|
186
185
|
return i;
|
|
187
186
|
};
|
|
188
187
|
function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
189
188
|
var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
|
|
190
189
|
var l = function (value, $completion) {
|
|
191
|
-
return i.
|
|
190
|
+
return i.y3l(value, $completion);
|
|
192
191
|
};
|
|
193
192
|
l.$arity = 1;
|
|
194
193
|
return l;
|
|
195
194
|
}
|
|
196
195
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
197
196
|
CoroutineImpl.call(this, resultContinuation);
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
197
|
+
this.j3m_1 = _this__u8e3s4;
|
|
198
|
+
this.k3m_1 = collector;
|
|
200
199
|
}
|
|
201
200
|
protoOf($collectCOROUTINE$).i9 = function () {
|
|
202
201
|
var suspendResult = this.c9_1;
|
|
@@ -206,10 +205,10 @@
|
|
|
206
205
|
switch (tmp) {
|
|
207
206
|
case 0:
|
|
208
207
|
this.b9_1 = 2;
|
|
209
|
-
var $this$unsafeFlow = this.
|
|
208
|
+
var $this$unsafeFlow = this.k3m_1;
|
|
210
209
|
this.a9_1 = 1;
|
|
211
|
-
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
212
|
-
suspendResult = this.
|
|
210
|
+
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.j3m_1.m3m_1, this.j3m_1.n3m_1, this.j3m_1.o3m_1, null);
|
|
211
|
+
suspendResult = this.j3m_1.l3m_1.d1e(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
213
212
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
213
|
return suspendResult;
|
|
215
214
|
}
|
|
@@ -232,32 +231,32 @@
|
|
|
232
231
|
while (true);
|
|
233
232
|
};
|
|
234
233
|
function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
234
|
+
this.l3m_1 = $this;
|
|
235
|
+
this.m3m_1 = $charset;
|
|
236
|
+
this.n3m_1 = $typeInfo;
|
|
237
|
+
this.o3m_1 = $body;
|
|
239
238
|
}
|
|
240
|
-
protoOf(deserialize$$inlined$map$1).
|
|
239
|
+
protoOf(deserialize$$inlined$map$1).c1e = function (collector, $completion) {
|
|
241
240
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
242
241
|
tmp.c9_1 = Unit_instance;
|
|
243
242
|
tmp.d9_1 = null;
|
|
244
243
|
return tmp.i9();
|
|
245
244
|
};
|
|
246
|
-
protoOf(deserialize$$inlined$map$1).
|
|
247
|
-
return this.
|
|
245
|
+
protoOf(deserialize$$inlined$map$1).d1e = function (collector, $completion) {
|
|
246
|
+
return this.c1e(collector, $completion);
|
|
248
247
|
};
|
|
249
248
|
function deserialize$slambda($body, resultContinuation) {
|
|
250
|
-
this.
|
|
249
|
+
this.x3m_1 = $body;
|
|
251
250
|
CoroutineImpl.call(this, resultContinuation);
|
|
252
251
|
}
|
|
253
|
-
protoOf(deserialize$slambda).
|
|
254
|
-
var tmp = this.
|
|
252
|
+
protoOf(deserialize$slambda).z3m = function (it, $completion) {
|
|
253
|
+
var tmp = this.z3l(it, $completion);
|
|
255
254
|
tmp.c9_1 = Unit_instance;
|
|
256
255
|
tmp.d9_1 = null;
|
|
257
256
|
return tmp.i9();
|
|
258
257
|
};
|
|
259
258
|
protoOf(deserialize$slambda).u9 = function (p1, $completion) {
|
|
260
|
-
return this.
|
|
259
|
+
return this.z3m((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
261
260
|
};
|
|
262
261
|
protoOf(deserialize$slambda).i9 = function () {
|
|
263
262
|
var suspendResult = this.c9_1;
|
|
@@ -266,7 +265,7 @@
|
|
|
266
265
|
var tmp = this.a9_1;
|
|
267
266
|
if (tmp === 0) {
|
|
268
267
|
this.b9_1 = 1;
|
|
269
|
-
return !(this.
|
|
268
|
+
return !(this.y3m_1 == null) || this.x3m_1.e1o();
|
|
270
269
|
} else if (tmp === 1) {
|
|
271
270
|
throw this.d9_1;
|
|
272
271
|
}
|
|
@@ -276,25 +275,25 @@
|
|
|
276
275
|
}
|
|
277
276
|
while (true);
|
|
278
277
|
};
|
|
279
|
-
protoOf(deserialize$slambda).
|
|
280
|
-
var i = new deserialize$slambda(this.
|
|
281
|
-
i.
|
|
278
|
+
protoOf(deserialize$slambda).z3l = function (it, completion) {
|
|
279
|
+
var i = new deserialize$slambda(this.x3m_1, completion);
|
|
280
|
+
i.y3m_1 = it;
|
|
282
281
|
return i;
|
|
283
282
|
};
|
|
284
283
|
function deserialize$slambda_0($body, resultContinuation) {
|
|
285
284
|
var i = new deserialize$slambda($body, resultContinuation);
|
|
286
285
|
var l = function (it, $completion) {
|
|
287
|
-
return i.
|
|
286
|
+
return i.z3m(it, $completion);
|
|
288
287
|
};
|
|
289
288
|
l.$arity = 1;
|
|
290
289
|
return l;
|
|
291
290
|
}
|
|
292
291
|
function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
|
|
293
292
|
CoroutineImpl.call(this, resultContinuation);
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
293
|
+
this.d3l_1 = _this__u8e3s4;
|
|
294
|
+
this.e3l_1 = body;
|
|
295
|
+
this.f3l_1 = typeInfo;
|
|
296
|
+
this.g3l_1 = charset;
|
|
298
297
|
}
|
|
299
298
|
protoOf($deserializeCOROUTINE$).i9 = function () {
|
|
300
299
|
var suspendResult = this.c9_1;
|
|
@@ -305,9 +304,9 @@
|
|
|
305
304
|
case 0:
|
|
306
305
|
this.b9_1 = 2;
|
|
307
306
|
this.a9_1 = 1;
|
|
308
|
-
var this_0 = asFlow(this.
|
|
309
|
-
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.
|
|
310
|
-
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.
|
|
307
|
+
var this_0 = asFlow(this.d3l_1);
|
|
308
|
+
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.g3l_1, this.f3l_1, this.e3l_1);
|
|
309
|
+
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.e3l_1, null), this);
|
|
311
310
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
312
311
|
return suspendResult;
|
|
313
312
|
}
|
|
@@ -319,14 +318,14 @@
|
|
|
319
318
|
if (!(result == null)) {
|
|
320
319
|
tmp_1 = result;
|
|
321
320
|
} else {
|
|
322
|
-
if (!this.
|
|
323
|
-
tmp_1 = this.
|
|
321
|
+
if (!this.e3l_1.e1o()) {
|
|
322
|
+
tmp_1 = this.e3l_1;
|
|
324
323
|
} else {
|
|
325
|
-
var tmp0_safe_receiver = this.
|
|
324
|
+
var tmp0_safe_receiver = this.f3l_1.b2s_1;
|
|
326
325
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
|
|
327
326
|
tmp_1 = NullBody_instance;
|
|
328
327
|
} else {
|
|
329
|
-
throw new ContentConvertException('No suitable converter found for ' + this.
|
|
328
|
+
throw new ContentConvertException('No suitable converter found for ' + this.f3l_1.toString());
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
331
|
}
|