@doordeck/doordeck-headless-sdk 0.203.0 → 0.205.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 +58 -58
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +21 -2
- package/kotlin/doordeck-sdk.js +12895 -12809
- package/kotlin/kotlin-kotlin-stdlib.js +1711 -1579
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2093 -2115
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +48 -48
- package/kotlin/kotlinx-io-kotlinx-io-core.js +476 -476
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1917 -1916
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1498 -1501
- package/kotlin/ktor-ktor-client-auth.js +284 -299
- package/kotlin/ktor-ktor-client-content-negotiation.js +160 -165
- package/kotlin/ktor-ktor-client-core.js +2380 -2491
- package/kotlin/ktor-ktor-client-logging.js +694 -719
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +381 -386
- package/kotlin/ktor-ktor-http.js +809 -808
- package/kotlin/ktor-ktor-io.js +702 -704
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +166 -173
- package/kotlin/ktor-ktor-serialization.js +76 -79
- package/kotlin/ktor-ktor-utils.js +927 -947
- package/kotlin/ktor-ktor-websockets.js +449 -464
- package/package.json +1 -1
|
@@ -1,29 +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.$_$.cg;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.c;
|
|
6
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
6
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.k4;
|
|
7
7
|
var captureStack = kotlin_kotlin.$_$.sa;
|
|
8
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
10
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.
|
|
12
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.hc;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kb;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.z2;
|
|
11
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.b;
|
|
12
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ob;
|
|
13
13
|
var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.u1;
|
|
14
14
|
var forName = kotlin_io_ktor_ktor_io.$_$.u;
|
|
15
15
|
var isSupported = kotlin_io_ktor_ktor_io.$_$.v;
|
|
16
|
-
var equals = kotlin_kotlin.$_$.
|
|
16
|
+
var equals = kotlin_kotlin.$_$.cb;
|
|
17
17
|
var FunctionAdapter = kotlin_kotlin.$_$.oa;
|
|
18
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
18
|
+
var isInterface = kotlin_kotlin.$_$.zb;
|
|
19
19
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
20
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
20
|
+
var hashCode = kotlin_kotlin.$_$.jb;
|
|
21
21
|
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
22
22
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
23
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
24
|
-
var
|
|
23
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.pb;
|
|
24
|
+
var constructCallableReference = kotlin_kotlin.$_$.ab;
|
|
25
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
|
|
25
26
|
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
26
|
-
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
27
|
+
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
27
28
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
28
29
|
//endregion
|
|
29
30
|
//region block: pre-declaration
|
|
@@ -39,10 +40,10 @@
|
|
|
39
40
|
configuration = tmp;
|
|
40
41
|
var tmp_0;
|
|
41
42
|
if ($super === VOID) {
|
|
42
|
-
this.
|
|
43
|
+
this.q3n(contentType, converter, configuration);
|
|
43
44
|
tmp_0 = Unit_instance;
|
|
44
45
|
} else {
|
|
45
|
-
tmp_0 = $super.
|
|
46
|
+
tmp_0 = $super.q3n.call(this, contentType, converter, configuration);
|
|
46
47
|
}
|
|
47
48
|
return tmp_0;
|
|
48
49
|
}
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
return tmp.l9();
|
|
72
73
|
}
|
|
73
74
|
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
74
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
75
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
|
|
75
76
|
var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
|
|
76
77
|
return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
|
|
77
78
|
}
|
|
@@ -81,10 +82,10 @@
|
|
|
81
82
|
function Configuration() {
|
|
82
83
|
}
|
|
83
84
|
function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
|
|
84
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
85
|
-
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.
|
|
85
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
|
|
86
|
+
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.w2o('Accept-Charset')).t();
|
|
86
87
|
while (_iterator__ex2g4s.u()) {
|
|
87
|
-
var charset = _iterator__ex2g4s.v().
|
|
88
|
+
var charset = _iterator__ex2g4s.v().jg();
|
|
88
89
|
if (charset === '*')
|
|
89
90
|
return defaultCharset;
|
|
90
91
|
else if (isSupported(Charsets_getInstance(), charset))
|
|
@@ -93,13 +94,13 @@
|
|
|
93
94
|
return null;
|
|
94
95
|
}
|
|
95
96
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
96
|
-
this.
|
|
97
|
+
this.s3n_1 = function_0;
|
|
97
98
|
}
|
|
98
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
99
|
-
return this.
|
|
99
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).y1e = function (value, $completion) {
|
|
100
|
+
return this.s3n_1(value, $completion);
|
|
100
101
|
};
|
|
101
102
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
|
|
102
|
-
return this.
|
|
103
|
+
return this.s3n_1;
|
|
103
104
|
};
|
|
104
105
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
105
106
|
var tmp;
|
|
@@ -120,20 +121,20 @@
|
|
|
120
121
|
return hashCode(this.q3());
|
|
121
122
|
};
|
|
122
123
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
123
|
-
this.
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
124
|
+
this.b3o_1 = $$this$unsafeFlow;
|
|
125
|
+
this.c3o_1 = $charset;
|
|
126
|
+
this.d3o_1 = $typeInfo;
|
|
127
|
+
this.e3o_1 = $body;
|
|
127
128
|
CoroutineImpl.call(this, resultContinuation);
|
|
128
129
|
}
|
|
129
|
-
protoOf(deserialize$o$collect$slambda).
|
|
130
|
-
var tmp = this.
|
|
130
|
+
protoOf(deserialize$o$collect$slambda).h3o = function (value, $completion) {
|
|
131
|
+
var tmp = this.i3o(value, $completion);
|
|
131
132
|
tmp.f9_1 = Unit_instance;
|
|
132
133
|
tmp.g9_1 = null;
|
|
133
134
|
return tmp.l9();
|
|
134
135
|
};
|
|
135
136
|
protoOf(deserialize$o$collect$slambda).y9 = function (p1, $completion) {
|
|
136
|
-
return this.
|
|
137
|
+
return this.h3o(p1, $completion);
|
|
137
138
|
};
|
|
138
139
|
protoOf(deserialize$o$collect$slambda).l9 = function () {
|
|
139
140
|
var suspendResult = this.f9_1;
|
|
@@ -143,11 +144,11 @@
|
|
|
143
144
|
switch (tmp) {
|
|
144
145
|
case 0:
|
|
145
146
|
this.e9_1 = 3;
|
|
146
|
-
var tmp0 = this.
|
|
147
|
-
var tmp2 = this.
|
|
148
|
-
this.
|
|
147
|
+
var tmp0 = this.b3o_1;
|
|
148
|
+
var tmp2 = this.f3o_1;
|
|
149
|
+
this.g3o_1 = tmp0;
|
|
149
150
|
this.d9_1 = 1;
|
|
150
|
-
suspendResult = tmp2.
|
|
151
|
+
suspendResult = tmp2.j3o(this.c3o_1, this.d3o_1, this.e3o_1, this);
|
|
151
152
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
152
153
|
return suspendResult;
|
|
153
154
|
}
|
|
@@ -156,7 +157,7 @@
|
|
|
156
157
|
case 1:
|
|
157
158
|
var ARGUMENT = suspendResult;
|
|
158
159
|
this.d9_1 = 2;
|
|
159
|
-
suspendResult = this.
|
|
160
|
+
suspendResult = this.g3o_1.y1e(ARGUMENT, this);
|
|
160
161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
161
162
|
return suspendResult;
|
|
162
163
|
}
|
|
@@ -178,23 +179,21 @@
|
|
|
178
179
|
}
|
|
179
180
|
while (true);
|
|
180
181
|
};
|
|
181
|
-
protoOf(deserialize$o$collect$slambda).
|
|
182
|
-
var i = new deserialize$o$collect$slambda(this.
|
|
183
|
-
i.
|
|
182
|
+
protoOf(deserialize$o$collect$slambda).i3o = function (value, completion) {
|
|
183
|
+
var i = new deserialize$o$collect$slambda(this.b3o_1, this.c3o_1, this.d3o_1, this.e3o_1, completion);
|
|
184
|
+
i.f3o_1 = value;
|
|
184
185
|
return i;
|
|
185
186
|
};
|
|
186
187
|
function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
187
188
|
var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
|
|
188
|
-
|
|
189
|
-
return i.
|
|
190
|
-
};
|
|
191
|
-
l.$arity = 1;
|
|
192
|
-
return l;
|
|
189
|
+
return constructCallableReference(function (value, $completion) {
|
|
190
|
+
return i.h3o(value, $completion);
|
|
191
|
+
}, 1);
|
|
193
192
|
}
|
|
194
193
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
195
194
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
195
|
+
this.s3o_1 = _this__u8e3s4;
|
|
196
|
+
this.t3o_1 = collector;
|
|
198
197
|
}
|
|
199
198
|
protoOf($collectCOROUTINE$).l9 = function () {
|
|
200
199
|
var suspendResult = this.f9_1;
|
|
@@ -204,10 +203,10 @@
|
|
|
204
203
|
switch (tmp) {
|
|
205
204
|
case 0:
|
|
206
205
|
this.e9_1 = 2;
|
|
207
|
-
var $this$unsafeFlow = this.
|
|
206
|
+
var $this$unsafeFlow = this.t3o_1;
|
|
208
207
|
this.d9_1 = 1;
|
|
209
|
-
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
210
|
-
suspendResult = this.
|
|
208
|
+
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.s3o_1.v3o_1, this.s3o_1.w3o_1, this.s3o_1.x3o_1, null);
|
|
209
|
+
suspendResult = this.s3o_1.u3o_1.a1f(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
211
210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
212
211
|
return suspendResult;
|
|
213
212
|
}
|
|
@@ -230,32 +229,32 @@
|
|
|
230
229
|
while (true);
|
|
231
230
|
};
|
|
232
231
|
function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
232
|
+
this.u3o_1 = $this;
|
|
233
|
+
this.v3o_1 = $charset;
|
|
234
|
+
this.w3o_1 = $typeInfo;
|
|
235
|
+
this.x3o_1 = $body;
|
|
237
236
|
}
|
|
238
|
-
protoOf(deserialize$$inlined$map$1).
|
|
237
|
+
protoOf(deserialize$$inlined$map$1).z1e = function (collector, $completion) {
|
|
239
238
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
240
239
|
tmp.f9_1 = Unit_instance;
|
|
241
240
|
tmp.g9_1 = null;
|
|
242
241
|
return tmp.l9();
|
|
243
242
|
};
|
|
244
|
-
protoOf(deserialize$$inlined$map$1).
|
|
245
|
-
return this.
|
|
243
|
+
protoOf(deserialize$$inlined$map$1).a1f = function (collector, $completion) {
|
|
244
|
+
return this.z1e(collector, $completion);
|
|
246
245
|
};
|
|
247
246
|
function deserialize$slambda($body, resultContinuation) {
|
|
248
|
-
this.
|
|
247
|
+
this.g3p_1 = $body;
|
|
249
248
|
CoroutineImpl.call(this, resultContinuation);
|
|
250
249
|
}
|
|
251
|
-
protoOf(deserialize$slambda).
|
|
252
|
-
var tmp = this.
|
|
250
|
+
protoOf(deserialize$slambda).i3p = function (it, $completion) {
|
|
251
|
+
var tmp = this.i3o(it, $completion);
|
|
253
252
|
tmp.f9_1 = Unit_instance;
|
|
254
253
|
tmp.g9_1 = null;
|
|
255
254
|
return tmp.l9();
|
|
256
255
|
};
|
|
257
256
|
protoOf(deserialize$slambda).y9 = function (p1, $completion) {
|
|
258
|
-
return this.
|
|
257
|
+
return this.i3p(p1, $completion);
|
|
259
258
|
};
|
|
260
259
|
protoOf(deserialize$slambda).l9 = function () {
|
|
261
260
|
var suspendResult = this.f9_1;
|
|
@@ -264,7 +263,7 @@
|
|
|
264
263
|
var tmp = this.d9_1;
|
|
265
264
|
if (tmp === 0) {
|
|
266
265
|
this.e9_1 = 1;
|
|
267
|
-
return !(this.
|
|
266
|
+
return !(this.h3p_1 == null) || this.g3p_1.b1p();
|
|
268
267
|
} else if (tmp === 1) {
|
|
269
268
|
throw this.g9_1;
|
|
270
269
|
}
|
|
@@ -274,25 +273,23 @@
|
|
|
274
273
|
}
|
|
275
274
|
while (true);
|
|
276
275
|
};
|
|
277
|
-
protoOf(deserialize$slambda).
|
|
278
|
-
var i = new deserialize$slambda(this.
|
|
279
|
-
i.
|
|
276
|
+
protoOf(deserialize$slambda).i3o = function (it, completion) {
|
|
277
|
+
var i = new deserialize$slambda(this.g3p_1, completion);
|
|
278
|
+
i.h3p_1 = it;
|
|
280
279
|
return i;
|
|
281
280
|
};
|
|
282
281
|
function deserialize$slambda_0($body, resultContinuation) {
|
|
283
282
|
var i = new deserialize$slambda($body, resultContinuation);
|
|
284
|
-
|
|
285
|
-
return i.
|
|
286
|
-
};
|
|
287
|
-
l.$arity = 1;
|
|
288
|
-
return l;
|
|
283
|
+
return constructCallableReference(function (it, $completion) {
|
|
284
|
+
return i.i3p(it, $completion);
|
|
285
|
+
}, 1);
|
|
289
286
|
}
|
|
290
287
|
function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
|
|
291
288
|
CoroutineImpl.call(this, resultContinuation);
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
289
|
+
this.m3n_1 = _this__u8e3s4;
|
|
290
|
+
this.n3n_1 = body;
|
|
291
|
+
this.o3n_1 = typeInfo;
|
|
292
|
+
this.p3n_1 = charset;
|
|
296
293
|
}
|
|
297
294
|
protoOf($deserializeCOROUTINE$).l9 = function () {
|
|
298
295
|
var suspendResult = this.f9_1;
|
|
@@ -303,9 +300,9 @@
|
|
|
303
300
|
case 0:
|
|
304
301
|
this.e9_1 = 2;
|
|
305
302
|
this.d9_1 = 1;
|
|
306
|
-
var this_0 = asFlow(this.
|
|
307
|
-
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.
|
|
308
|
-
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.
|
|
303
|
+
var this_0 = asFlow(this.m3n_1);
|
|
304
|
+
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.p3n_1, this.o3n_1, this.n3n_1);
|
|
305
|
+
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.n3n_1, null), this);
|
|
309
306
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
310
307
|
return suspendResult;
|
|
311
308
|
}
|
|
@@ -317,14 +314,14 @@
|
|
|
317
314
|
if (!(result == null)) {
|
|
318
315
|
tmp_1 = result;
|
|
319
316
|
} else {
|
|
320
|
-
if (!this.
|
|
321
|
-
tmp_1 = this.
|
|
317
|
+
if (!this.n3n_1.b1p()) {
|
|
318
|
+
tmp_1 = this.n3n_1;
|
|
322
319
|
} else {
|
|
323
|
-
var tmp0_safe_receiver = this.
|
|
320
|
+
var tmp0_safe_receiver = this.o3n_1.w2t_1;
|
|
324
321
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
|
|
325
322
|
tmp_1 = NullBody_instance;
|
|
326
323
|
} else {
|
|
327
|
-
throw new ContentConvertException('No suitable converter found for ' + this.
|
|
324
|
+
throw new ContentConvertException('No suitable converter found for ' + this.o3n_1.toString());
|
|
328
325
|
}
|
|
329
326
|
}
|
|
330
327
|
}
|