@doordeck/doordeck-headless-sdk 0.194.0 → 0.196.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 +64 -64
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +22 -22
- package/kotlin/doordeck-sdk.js +10865 -10849
- package/kotlin/kotlin-kotlin-stdlib.js +1533 -1953
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2482 -2464
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +56 -56
- package/kotlin/kotlinx-io-kotlinx-io-core.js +648 -644
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2025 -2035
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1597 -1596
- package/kotlin/ktor-ktor-client-auth.js +298 -297
- package/kotlin/ktor-ktor-client-content-negotiation.js +166 -166
- package/kotlin/ktor-ktor-client-core.js +2357 -2317
- package/kotlin/ktor-ktor-client-logging.js +712 -720
- package/kotlin/ktor-ktor-events.js +13 -13
- package/kotlin/ktor-ktor-http-cio.js +424 -424
- package/kotlin/ktor-ktor-http.js +895 -894
- package/kotlin/ktor-ktor-io.js +701 -701
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +169 -168
- package/kotlin/ktor-ktor-serialization.js +75 -76
- package/kotlin/ktor-ktor-utils.js +1596 -1076
- package/kotlin/ktor-ktor-websockets.js +465 -467
- package/package.json +2 -2
|
@@ -1,30 +1,29 @@
|
|
|
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.$_$.vf;
|
|
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.$_$.
|
|
11
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.
|
|
12
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
6
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.j2;
|
|
7
|
+
var captureStack = kotlin_kotlin.$_$.oa;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.cc;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.fb;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
11
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
12
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.jb;
|
|
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.$_$.
|
|
17
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
18
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
16
|
+
var equals = kotlin_kotlin.$_$.xa;
|
|
17
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ka;
|
|
18
|
+
var isInterface = kotlin_kotlin.$_$.ub;
|
|
19
19
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
20
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
21
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
|
|
20
|
+
var hashCode = kotlin_kotlin.$_$.eb;
|
|
21
|
+
var CoroutineImpl = kotlin_kotlin.$_$.o9;
|
|
22
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.y8;
|
|
23
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.kb;
|
|
24
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.hb;
|
|
26
25
|
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
27
|
-
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
26
|
+
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
28
27
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
29
28
|
//endregion
|
|
30
29
|
//region block: pre-declaration
|
|
@@ -40,10 +39,10 @@
|
|
|
40
39
|
configuration = tmp;
|
|
41
40
|
var tmp_0;
|
|
42
41
|
if ($super === VOID) {
|
|
43
|
-
this.
|
|
42
|
+
this.r3l(contentType, converter, configuration);
|
|
44
43
|
tmp_0 = Unit_instance;
|
|
45
44
|
} else {
|
|
46
|
-
tmp_0 = $super.
|
|
45
|
+
tmp_0 = $super.r3l.call(this, contentType, converter, configuration);
|
|
47
46
|
}
|
|
48
47
|
return tmp_0;
|
|
49
48
|
}
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
return tmp.i9();
|
|
73
72
|
}
|
|
74
73
|
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
75
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
74
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().t1x_1 : defaultCharset;
|
|
76
75
|
var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
|
|
77
76
|
return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
|
|
78
77
|
}
|
|
@@ -82,10 +81,10 @@
|
|
|
82
81
|
function Configuration() {
|
|
83
82
|
}
|
|
84
83
|
function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
|
|
85
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
86
|
-
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.
|
|
84
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().t1x_1 : defaultCharset;
|
|
85
|
+
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.l2n('Accept-Charset')).t();
|
|
87
86
|
while (_iterator__ex2g4s.u()) {
|
|
88
|
-
var charset = _iterator__ex2g4s.v().
|
|
87
|
+
var charset = _iterator__ex2g4s.v().bg();
|
|
89
88
|
if (charset === '*')
|
|
90
89
|
return defaultCharset;
|
|
91
90
|
else if (isSupported(Charsets_getInstance(), charset))
|
|
@@ -94,13 +93,13 @@
|
|
|
94
93
|
return null;
|
|
95
94
|
}
|
|
96
95
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
97
|
-
this.
|
|
96
|
+
this.t3l_1 = function_0;
|
|
98
97
|
}
|
|
99
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
100
|
-
return this.
|
|
98
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t1d = function (value, $completion) {
|
|
99
|
+
return this.t3l_1(value, $completion);
|
|
101
100
|
};
|
|
102
101
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
|
|
103
|
-
return this.
|
|
102
|
+
return this.t3l_1;
|
|
104
103
|
};
|
|
105
104
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
106
105
|
var tmp;
|
|
@@ -121,20 +120,20 @@
|
|
|
121
120
|
return hashCode(this.q3());
|
|
122
121
|
};
|
|
123
122
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
123
|
+
this.c3m_1 = $$this$unsafeFlow;
|
|
124
|
+
this.d3m_1 = $charset;
|
|
125
|
+
this.e3m_1 = $typeInfo;
|
|
126
|
+
this.f3m_1 = $body;
|
|
128
127
|
CoroutineImpl.call(this, resultContinuation);
|
|
129
128
|
}
|
|
130
|
-
protoOf(deserialize$o$collect$slambda).
|
|
131
|
-
var tmp = this.
|
|
129
|
+
protoOf(deserialize$o$collect$slambda).i3m = function (value, $completion) {
|
|
130
|
+
var tmp = this.j3m(value, $completion);
|
|
132
131
|
tmp.c9_1 = Unit_instance;
|
|
133
132
|
tmp.d9_1 = null;
|
|
134
133
|
return tmp.i9();
|
|
135
134
|
};
|
|
136
135
|
protoOf(deserialize$o$collect$slambda).u9 = function (p1, $completion) {
|
|
137
|
-
return this.
|
|
136
|
+
return this.i3m(p1, $completion);
|
|
138
137
|
};
|
|
139
138
|
protoOf(deserialize$o$collect$slambda).i9 = function () {
|
|
140
139
|
var suspendResult = this.c9_1;
|
|
@@ -144,11 +143,11 @@
|
|
|
144
143
|
switch (tmp) {
|
|
145
144
|
case 0:
|
|
146
145
|
this.b9_1 = 3;
|
|
147
|
-
var tmp0 = this.
|
|
148
|
-
var tmp2 = this.
|
|
149
|
-
this.
|
|
146
|
+
var tmp0 = this.c3m_1;
|
|
147
|
+
var tmp2 = this.g3m_1;
|
|
148
|
+
this.h3m_1 = tmp0;
|
|
150
149
|
this.a9_1 = 1;
|
|
151
|
-
suspendResult = tmp2.
|
|
150
|
+
suspendResult = tmp2.k3m(this.d3m_1, this.e3m_1, this.f3m_1, this);
|
|
152
151
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
153
152
|
return suspendResult;
|
|
154
153
|
}
|
|
@@ -157,7 +156,7 @@
|
|
|
157
156
|
case 1:
|
|
158
157
|
var ARGUMENT = suspendResult;
|
|
159
158
|
this.a9_1 = 2;
|
|
160
|
-
suspendResult = this.
|
|
159
|
+
suspendResult = this.h3m_1.t1d(ARGUMENT, this);
|
|
161
160
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
162
161
|
return suspendResult;
|
|
163
162
|
}
|
|
@@ -179,23 +178,23 @@
|
|
|
179
178
|
}
|
|
180
179
|
while (true);
|
|
181
180
|
};
|
|
182
|
-
protoOf(deserialize$o$collect$slambda).
|
|
183
|
-
var i = new deserialize$o$collect$slambda(this.
|
|
184
|
-
i.
|
|
181
|
+
protoOf(deserialize$o$collect$slambda).j3m = function (value, completion) {
|
|
182
|
+
var i = new deserialize$o$collect$slambda(this.c3m_1, this.d3m_1, this.e3m_1, this.f3m_1, completion);
|
|
183
|
+
i.g3m_1 = value;
|
|
185
184
|
return i;
|
|
186
185
|
};
|
|
187
186
|
function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
188
187
|
var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
|
|
189
188
|
var l = function (value, $completion) {
|
|
190
|
-
return i.
|
|
189
|
+
return i.i3m(value, $completion);
|
|
191
190
|
};
|
|
192
191
|
l.$arity = 1;
|
|
193
192
|
return l;
|
|
194
193
|
}
|
|
195
194
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
196
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
196
|
+
this.t3m_1 = _this__u8e3s4;
|
|
197
|
+
this.u3m_1 = collector;
|
|
199
198
|
}
|
|
200
199
|
protoOf($collectCOROUTINE$).i9 = function () {
|
|
201
200
|
var suspendResult = this.c9_1;
|
|
@@ -205,10 +204,10 @@
|
|
|
205
204
|
switch (tmp) {
|
|
206
205
|
case 0:
|
|
207
206
|
this.b9_1 = 2;
|
|
208
|
-
var $this$unsafeFlow = this.
|
|
207
|
+
var $this$unsafeFlow = this.u3m_1;
|
|
209
208
|
this.a9_1 = 1;
|
|
210
|
-
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
211
|
-
suspendResult = this.
|
|
209
|
+
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.t3m_1.w3m_1, this.t3m_1.x3m_1, this.t3m_1.y3m_1, null);
|
|
210
|
+
suspendResult = this.t3m_1.v3m_1.v1d(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
212
211
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
213
212
|
return suspendResult;
|
|
214
213
|
}
|
|
@@ -231,32 +230,32 @@
|
|
|
231
230
|
while (true);
|
|
232
231
|
};
|
|
233
232
|
function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
233
|
+
this.v3m_1 = $this;
|
|
234
|
+
this.w3m_1 = $charset;
|
|
235
|
+
this.x3m_1 = $typeInfo;
|
|
236
|
+
this.y3m_1 = $body;
|
|
238
237
|
}
|
|
239
|
-
protoOf(deserialize$$inlined$map$1).
|
|
238
|
+
protoOf(deserialize$$inlined$map$1).u1d = function (collector, $completion) {
|
|
240
239
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
241
240
|
tmp.c9_1 = Unit_instance;
|
|
242
241
|
tmp.d9_1 = null;
|
|
243
242
|
return tmp.i9();
|
|
244
243
|
};
|
|
245
|
-
protoOf(deserialize$$inlined$map$1).
|
|
246
|
-
return this.
|
|
244
|
+
protoOf(deserialize$$inlined$map$1).v1d = function (collector, $completion) {
|
|
245
|
+
return this.u1d(collector, $completion);
|
|
247
246
|
};
|
|
248
247
|
function deserialize$slambda($body, resultContinuation) {
|
|
249
|
-
this.
|
|
248
|
+
this.h3n_1 = $body;
|
|
250
249
|
CoroutineImpl.call(this, resultContinuation);
|
|
251
250
|
}
|
|
252
|
-
protoOf(deserialize$slambda).
|
|
253
|
-
var tmp = this.
|
|
251
|
+
protoOf(deserialize$slambda).j3n = function (it, $completion) {
|
|
252
|
+
var tmp = this.j3m(it, $completion);
|
|
254
253
|
tmp.c9_1 = Unit_instance;
|
|
255
254
|
tmp.d9_1 = null;
|
|
256
255
|
return tmp.i9();
|
|
257
256
|
};
|
|
258
257
|
protoOf(deserialize$slambda).u9 = function (p1, $completion) {
|
|
259
|
-
return this.
|
|
258
|
+
return this.j3n(p1, $completion);
|
|
260
259
|
};
|
|
261
260
|
protoOf(deserialize$slambda).i9 = function () {
|
|
262
261
|
var suspendResult = this.c9_1;
|
|
@@ -265,7 +264,7 @@
|
|
|
265
264
|
var tmp = this.a9_1;
|
|
266
265
|
if (tmp === 0) {
|
|
267
266
|
this.b9_1 = 1;
|
|
268
|
-
return !(this.
|
|
267
|
+
return !(this.i3n_1 == null) || this.h3n_1.w1n();
|
|
269
268
|
} else if (tmp === 1) {
|
|
270
269
|
throw this.d9_1;
|
|
271
270
|
}
|
|
@@ -275,25 +274,25 @@
|
|
|
275
274
|
}
|
|
276
275
|
while (true);
|
|
277
276
|
};
|
|
278
|
-
protoOf(deserialize$slambda).
|
|
279
|
-
var i = new deserialize$slambda(this.
|
|
280
|
-
i.
|
|
277
|
+
protoOf(deserialize$slambda).j3m = function (it, completion) {
|
|
278
|
+
var i = new deserialize$slambda(this.h3n_1, completion);
|
|
279
|
+
i.i3n_1 = it;
|
|
281
280
|
return i;
|
|
282
281
|
};
|
|
283
282
|
function deserialize$slambda_0($body, resultContinuation) {
|
|
284
283
|
var i = new deserialize$slambda($body, resultContinuation);
|
|
285
284
|
var l = function (it, $completion) {
|
|
286
|
-
return i.
|
|
285
|
+
return i.j3n(it, $completion);
|
|
287
286
|
};
|
|
288
287
|
l.$arity = 1;
|
|
289
288
|
return l;
|
|
290
289
|
}
|
|
291
290
|
function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
|
|
292
291
|
CoroutineImpl.call(this, resultContinuation);
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
292
|
+
this.n3l_1 = _this__u8e3s4;
|
|
293
|
+
this.o3l_1 = body;
|
|
294
|
+
this.p3l_1 = typeInfo;
|
|
295
|
+
this.q3l_1 = charset;
|
|
297
296
|
}
|
|
298
297
|
protoOf($deserializeCOROUTINE$).i9 = function () {
|
|
299
298
|
var suspendResult = this.c9_1;
|
|
@@ -304,9 +303,9 @@
|
|
|
304
303
|
case 0:
|
|
305
304
|
this.b9_1 = 2;
|
|
306
305
|
this.a9_1 = 1;
|
|
307
|
-
var this_0 = asFlow(this.
|
|
308
|
-
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.
|
|
309
|
-
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.
|
|
306
|
+
var this_0 = asFlow(this.n3l_1);
|
|
307
|
+
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.q3l_1, this.p3l_1, this.o3l_1);
|
|
308
|
+
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.o3l_1, null), this);
|
|
310
309
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
311
310
|
return suspendResult;
|
|
312
311
|
}
|
|
@@ -318,14 +317,14 @@
|
|
|
318
317
|
if (!(result == null)) {
|
|
319
318
|
tmp_1 = result;
|
|
320
319
|
} else {
|
|
321
|
-
if (!this.
|
|
322
|
-
tmp_1 = this.
|
|
320
|
+
if (!this.o3l_1.w1n()) {
|
|
321
|
+
tmp_1 = this.o3l_1;
|
|
323
322
|
} else {
|
|
324
|
-
var tmp0_safe_receiver = this.
|
|
323
|
+
var tmp0_safe_receiver = this.p3l_1.l2s_1;
|
|
325
324
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
|
|
326
325
|
tmp_1 = NullBody_instance;
|
|
327
326
|
} else {
|
|
328
|
-
throw new ContentConvertException('No suitable converter found for ' + this.
|
|
327
|
+
throw new ContentConvertException('No suitable converter found for ' + this.p3l_1.toString());
|
|
329
328
|
}
|
|
330
329
|
}
|
|
331
330
|
}
|