@doordeck/doordeck-headless-sdk 0.193.0 → 0.195.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 +10911 -10922
- package/kotlin/kotlin-kotlin-stdlib.js +2281 -1824
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-browser.js +10 -0
- package/kotlin/kotlinx-coroutines-core.js +2904 -2424
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +56 -56
- package/kotlin/kotlinx-io-kotlinx-io-core.js +651 -651
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2063 -2073
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1619 -1618
- package/kotlin/ktor-ktor-client-auth.js +421 -412
- package/kotlin/ktor-ktor-client-content-negotiation.js +189 -190
- package/kotlin/ktor-ktor-client-core.js +3050 -2383
- package/kotlin/ktor-ktor-client-logging.js +1055 -1018
- package/kotlin/ktor-ktor-events.js +16 -16
- package/kotlin/ktor-ktor-http-cio.js +446 -451
- package/kotlin/ktor-ktor-http.js +1000 -956
- package/kotlin/ktor-ktor-io.js +1070 -1001
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +175 -174
- package/kotlin/ktor-ktor-serialization.js +78 -80
- package/kotlin/ktor-ktor-utils.js +981 -1041
- package/kotlin/ktor-ktor-websockets.js +2179 -85
- package/package.json +3 -3
|
@@ -1,31 +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.$_$.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.$_$.
|
|
11
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.
|
|
12
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
13
|
-
var
|
|
14
|
-
var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
6
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.j2;
|
|
7
|
+
var captureStack = kotlin_kotlin.$_$.la;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.cb;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
11
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
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
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
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 get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
|
|
23
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.hb;
|
|
24
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
|
|
25
|
+
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
26
|
+
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
29
27
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
30
28
|
//endregion
|
|
31
29
|
//region block: pre-declaration
|
|
@@ -41,10 +39,10 @@
|
|
|
41
39
|
configuration = tmp;
|
|
42
40
|
var tmp_0;
|
|
43
41
|
if ($super === VOID) {
|
|
44
|
-
this.
|
|
42
|
+
this.d3l(contentType, converter, configuration);
|
|
45
43
|
tmp_0 = Unit_instance;
|
|
46
44
|
} else {
|
|
47
|
-
tmp_0 = $super.
|
|
45
|
+
tmp_0 = $super.d3l.call(this, contentType, converter, configuration);
|
|
48
46
|
}
|
|
49
47
|
return tmp_0;
|
|
50
48
|
}
|
|
@@ -73,7 +71,7 @@
|
|
|
73
71
|
return tmp.i9();
|
|
74
72
|
}
|
|
75
73
|
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
76
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
74
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().x1x_1 : defaultCharset;
|
|
77
75
|
var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
|
|
78
76
|
return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
|
|
79
77
|
}
|
|
@@ -83,10 +81,10 @@
|
|
|
83
81
|
function Configuration() {
|
|
84
82
|
}
|
|
85
83
|
function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
|
|
86
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
87
|
-
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.
|
|
84
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().x1x_1 : defaultCharset;
|
|
85
|
+
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.l2m('Accept-Charset')).t();
|
|
88
86
|
while (_iterator__ex2g4s.u()) {
|
|
89
|
-
var charset = _iterator__ex2g4s.v().
|
|
87
|
+
var charset = _iterator__ex2g4s.v().bg();
|
|
90
88
|
if (charset === '*')
|
|
91
89
|
return defaultCharset;
|
|
92
90
|
else if (isSupported(Charsets_getInstance(), charset))
|
|
@@ -95,13 +93,13 @@
|
|
|
95
93
|
return null;
|
|
96
94
|
}
|
|
97
95
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
98
|
-
this.
|
|
96
|
+
this.f3l_1 = function_0;
|
|
99
97
|
}
|
|
100
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
101
|
-
return this.
|
|
98
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).x1d = function (value, $completion) {
|
|
99
|
+
return this.f3l_1(value, $completion);
|
|
102
100
|
};
|
|
103
101
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
|
|
104
|
-
return this.
|
|
102
|
+
return this.f3l_1;
|
|
105
103
|
};
|
|
106
104
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
107
105
|
var tmp;
|
|
@@ -122,20 +120,20 @@
|
|
|
122
120
|
return hashCode(this.q3());
|
|
123
121
|
};
|
|
124
122
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
128
|
-
this.
|
|
123
|
+
this.o3l_1 = $$this$unsafeFlow;
|
|
124
|
+
this.p3l_1 = $charset;
|
|
125
|
+
this.q3l_1 = $typeInfo;
|
|
126
|
+
this.r3l_1 = $body;
|
|
129
127
|
CoroutineImpl.call(this, resultContinuation);
|
|
130
128
|
}
|
|
131
|
-
protoOf(deserialize$o$collect$slambda).
|
|
132
|
-
var tmp = this.
|
|
129
|
+
protoOf(deserialize$o$collect$slambda).u3l = function (value, $completion) {
|
|
130
|
+
var tmp = this.v3l(value, $completion);
|
|
133
131
|
tmp.c9_1 = Unit_instance;
|
|
134
132
|
tmp.d9_1 = null;
|
|
135
133
|
return tmp.i9();
|
|
136
134
|
};
|
|
137
135
|
protoOf(deserialize$o$collect$slambda).u9 = function (p1, $completion) {
|
|
138
|
-
return this.
|
|
136
|
+
return this.u3l(p1, $completion);
|
|
139
137
|
};
|
|
140
138
|
protoOf(deserialize$o$collect$slambda).i9 = function () {
|
|
141
139
|
var suspendResult = this.c9_1;
|
|
@@ -145,11 +143,11 @@
|
|
|
145
143
|
switch (tmp) {
|
|
146
144
|
case 0:
|
|
147
145
|
this.b9_1 = 3;
|
|
148
|
-
var tmp0 = this.
|
|
149
|
-
var tmp2 = this.
|
|
150
|
-
this.
|
|
146
|
+
var tmp0 = this.o3l_1;
|
|
147
|
+
var tmp2 = this.s3l_1;
|
|
148
|
+
this.t3l_1 = tmp0;
|
|
151
149
|
this.a9_1 = 1;
|
|
152
|
-
suspendResult = tmp2.
|
|
150
|
+
suspendResult = tmp2.w3l(this.p3l_1, this.q3l_1, this.r3l_1, this);
|
|
153
151
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
154
152
|
return suspendResult;
|
|
155
153
|
}
|
|
@@ -158,7 +156,7 @@
|
|
|
158
156
|
case 1:
|
|
159
157
|
var ARGUMENT = suspendResult;
|
|
160
158
|
this.a9_1 = 2;
|
|
161
|
-
suspendResult = this.
|
|
159
|
+
suspendResult = this.t3l_1.x1d(ARGUMENT, this);
|
|
162
160
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
163
161
|
return suspendResult;
|
|
164
162
|
}
|
|
@@ -180,23 +178,23 @@
|
|
|
180
178
|
}
|
|
181
179
|
while (true);
|
|
182
180
|
};
|
|
183
|
-
protoOf(deserialize$o$collect$slambda).
|
|
184
|
-
var i = new deserialize$o$collect$slambda(this.
|
|
185
|
-
i.
|
|
181
|
+
protoOf(deserialize$o$collect$slambda).v3l = function (value, completion) {
|
|
182
|
+
var i = new deserialize$o$collect$slambda(this.o3l_1, this.p3l_1, this.q3l_1, this.r3l_1, completion);
|
|
183
|
+
i.s3l_1 = value;
|
|
186
184
|
return i;
|
|
187
185
|
};
|
|
188
186
|
function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
189
187
|
var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
|
|
190
188
|
var l = function (value, $completion) {
|
|
191
|
-
return i.
|
|
189
|
+
return i.u3l(value, $completion);
|
|
192
190
|
};
|
|
193
191
|
l.$arity = 1;
|
|
194
192
|
return l;
|
|
195
193
|
}
|
|
196
194
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
197
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
196
|
+
this.f3m_1 = _this__u8e3s4;
|
|
197
|
+
this.g3m_1 = collector;
|
|
200
198
|
}
|
|
201
199
|
protoOf($collectCOROUTINE$).i9 = function () {
|
|
202
200
|
var suspendResult = this.c9_1;
|
|
@@ -206,10 +204,10 @@
|
|
|
206
204
|
switch (tmp) {
|
|
207
205
|
case 0:
|
|
208
206
|
this.b9_1 = 2;
|
|
209
|
-
var $this$unsafeFlow = this.
|
|
207
|
+
var $this$unsafeFlow = this.g3m_1;
|
|
210
208
|
this.a9_1 = 1;
|
|
211
|
-
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
212
|
-
suspendResult = this.
|
|
209
|
+
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.f3m_1.i3m_1, this.f3m_1.j3m_1, this.f3m_1.k3m_1, null);
|
|
210
|
+
suspendResult = this.f3m_1.h3m_1.z1d(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
213
211
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
212
|
return suspendResult;
|
|
215
213
|
}
|
|
@@ -232,32 +230,32 @@
|
|
|
232
230
|
while (true);
|
|
233
231
|
};
|
|
234
232
|
function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
233
|
+
this.h3m_1 = $this;
|
|
234
|
+
this.i3m_1 = $charset;
|
|
235
|
+
this.j3m_1 = $typeInfo;
|
|
236
|
+
this.k3m_1 = $body;
|
|
239
237
|
}
|
|
240
|
-
protoOf(deserialize$$inlined$map$1).
|
|
238
|
+
protoOf(deserialize$$inlined$map$1).y1d = function (collector, $completion) {
|
|
241
239
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
242
240
|
tmp.c9_1 = Unit_instance;
|
|
243
241
|
tmp.d9_1 = null;
|
|
244
242
|
return tmp.i9();
|
|
245
243
|
};
|
|
246
|
-
protoOf(deserialize$$inlined$map$1).
|
|
247
|
-
return this.
|
|
244
|
+
protoOf(deserialize$$inlined$map$1).z1d = function (collector, $completion) {
|
|
245
|
+
return this.y1d(collector, $completion);
|
|
248
246
|
};
|
|
249
247
|
function deserialize$slambda($body, resultContinuation) {
|
|
250
|
-
this.
|
|
248
|
+
this.t3m_1 = $body;
|
|
251
249
|
CoroutineImpl.call(this, resultContinuation);
|
|
252
250
|
}
|
|
253
|
-
protoOf(deserialize$slambda).
|
|
254
|
-
var tmp = this.
|
|
251
|
+
protoOf(deserialize$slambda).v3m = function (it, $completion) {
|
|
252
|
+
var tmp = this.v3l(it, $completion);
|
|
255
253
|
tmp.c9_1 = Unit_instance;
|
|
256
254
|
tmp.d9_1 = null;
|
|
257
255
|
return tmp.i9();
|
|
258
256
|
};
|
|
259
257
|
protoOf(deserialize$slambda).u9 = function (p1, $completion) {
|
|
260
|
-
return this.
|
|
258
|
+
return this.v3m(p1, $completion);
|
|
261
259
|
};
|
|
262
260
|
protoOf(deserialize$slambda).i9 = function () {
|
|
263
261
|
var suspendResult = this.c9_1;
|
|
@@ -266,7 +264,7 @@
|
|
|
266
264
|
var tmp = this.a9_1;
|
|
267
265
|
if (tmp === 0) {
|
|
268
266
|
this.b9_1 = 1;
|
|
269
|
-
return !(this.
|
|
267
|
+
return !(this.u3m_1 == null) || this.t3m_1.a1o();
|
|
270
268
|
} else if (tmp === 1) {
|
|
271
269
|
throw this.d9_1;
|
|
272
270
|
}
|
|
@@ -276,25 +274,25 @@
|
|
|
276
274
|
}
|
|
277
275
|
while (true);
|
|
278
276
|
};
|
|
279
|
-
protoOf(deserialize$slambda).
|
|
280
|
-
var i = new deserialize$slambda(this.
|
|
281
|
-
i.
|
|
277
|
+
protoOf(deserialize$slambda).v3l = function (it, completion) {
|
|
278
|
+
var i = new deserialize$slambda(this.t3m_1, completion);
|
|
279
|
+
i.u3m_1 = it;
|
|
282
280
|
return i;
|
|
283
281
|
};
|
|
284
282
|
function deserialize$slambda_0($body, resultContinuation) {
|
|
285
283
|
var i = new deserialize$slambda($body, resultContinuation);
|
|
286
284
|
var l = function (it, $completion) {
|
|
287
|
-
return i.
|
|
285
|
+
return i.v3m(it, $completion);
|
|
288
286
|
};
|
|
289
287
|
l.$arity = 1;
|
|
290
288
|
return l;
|
|
291
289
|
}
|
|
292
290
|
function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
|
|
293
291
|
CoroutineImpl.call(this, resultContinuation);
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
292
|
+
this.z3k_1 = _this__u8e3s4;
|
|
293
|
+
this.a3l_1 = body;
|
|
294
|
+
this.b3l_1 = typeInfo;
|
|
295
|
+
this.c3l_1 = charset;
|
|
298
296
|
}
|
|
299
297
|
protoOf($deserializeCOROUTINE$).i9 = function () {
|
|
300
298
|
var suspendResult = this.c9_1;
|
|
@@ -305,9 +303,9 @@
|
|
|
305
303
|
case 0:
|
|
306
304
|
this.b9_1 = 2;
|
|
307
305
|
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.
|
|
306
|
+
var this_0 = asFlow(this.z3k_1);
|
|
307
|
+
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.c3l_1, this.b3l_1, this.a3l_1);
|
|
308
|
+
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.a3l_1, null), this);
|
|
311
309
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
312
310
|
return suspendResult;
|
|
313
311
|
}
|
|
@@ -319,14 +317,14 @@
|
|
|
319
317
|
if (!(result == null)) {
|
|
320
318
|
tmp_1 = result;
|
|
321
319
|
} else {
|
|
322
|
-
if (!this.
|
|
323
|
-
tmp_1 = this.
|
|
320
|
+
if (!this.a3l_1.a1o()) {
|
|
321
|
+
tmp_1 = this.a3l_1;
|
|
324
322
|
} else {
|
|
325
|
-
var tmp0_safe_receiver = this.
|
|
323
|
+
var tmp0_safe_receiver = this.b3l_1.x2r_1;
|
|
326
324
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
|
|
327
325
|
tmp_1 = NullBody_instance;
|
|
328
326
|
} else {
|
|
329
|
-
throw new ContentConvertException('No suitable converter found for ' + this.
|
|
327
|
+
throw new ContentConvertException('No suitable converter found for ' + this.b3l_1.toString());
|
|
330
328
|
}
|
|
331
329
|
}
|
|
332
330
|
}
|