@doordeck/doordeck-headless-sdk 0.161.0 → 0.163.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 +50 -50
- package/kotlin/Kermit-kermit.js +5 -5
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +21 -21
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +21 -21
- package/kotlin/doordeck-sdk.js +10121 -10121
- package/kotlin/kotlin-kotlin-stdlib.js +835 -970
- package/kotlin/kotlinx-atomicfu.js +15 -15
- package/kotlin/kotlinx-coroutines-core.js +1900 -1900
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +39 -39
- package/kotlin/kotlinx-io-kotlinx-io-core.js +462 -462
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1795 -1795
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1395 -1395
- package/kotlin/ktor-ktor-client-auth.js +241 -241
- package/kotlin/ktor-ktor-client-content-negotiation.js +146 -144
- package/kotlin/ktor-ktor-client-core.js +1831 -1819
- package/kotlin/ktor-ktor-client-logging.js +631 -631
- package/kotlin/ktor-ktor-events.js +9 -9
- package/kotlin/ktor-ktor-http-cio.js +339 -339
- package/kotlin/ktor-ktor-http.js +741 -745
- package/kotlin/ktor-ktor-io.js +621 -625
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +136 -136
- package/kotlin/ktor-ktor-serialization.js +60 -60
- package/kotlin/ktor-ktor-utils.js +690 -696
- package/kotlin/ktor-ktor-websockets.js +43 -46
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
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.$_$.pf;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
6
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.j1;
|
|
7
7
|
var captureStack = kotlin_kotlin.$_$.ja;
|
|
8
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.yb;
|
|
9
9
|
var initMetadataForClass = kotlin_kotlin.$_$.za;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
11
11
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
|
|
21
21
|
var hashCode = kotlin_kotlin.$_$.ya;
|
|
22
22
|
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
23
|
+
var THROW_CCE = kotlin_kotlin.$_$.xf;
|
|
24
24
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
25
25
|
var initMetadataForLambda = kotlin_kotlin.$_$.eb;
|
|
26
26
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.bb;
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
configuration = tmp;
|
|
42
42
|
var tmp_0;
|
|
43
43
|
if ($super === VOID) {
|
|
44
|
-
this.
|
|
44
|
+
this.p54(contentType, converter, configuration);
|
|
45
45
|
tmp_0 = Unit_instance;
|
|
46
46
|
} else {
|
|
47
|
-
tmp_0 = $super.
|
|
47
|
+
tmp_0 = $super.p54.call(this, contentType, converter, configuration);
|
|
48
48
|
}
|
|
49
49
|
return tmp_0;
|
|
50
50
|
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
return tmp.c9();
|
|
74
74
|
}
|
|
75
75
|
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
76
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
76
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().r1v_1 : defaultCharset;
|
|
77
77
|
var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
|
|
78
78
|
return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
|
|
79
79
|
}
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
function Configuration() {
|
|
84
84
|
}
|
|
85
85
|
function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
|
|
86
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().
|
|
87
|
-
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.
|
|
86
|
+
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().r1v_1 : defaultCharset;
|
|
87
|
+
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.e2k(HttpHeaders_getInstance().z2s_1)).r();
|
|
88
88
|
while (_iterator__ex2g4s.s()) {
|
|
89
89
|
var charset = _iterator__ex2g4s.t().ig();
|
|
90
90
|
if (charset === '*')
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
return null;
|
|
96
96
|
}
|
|
97
97
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
98
|
-
this.
|
|
98
|
+
this.r54_1 = function_0;
|
|
99
99
|
}
|
|
100
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
101
|
-
return this.
|
|
100
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q1b = function (value, $completion) {
|
|
101
|
+
return this.r54_1(value, $completion);
|
|
102
102
|
};
|
|
103
103
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).d3 = function () {
|
|
104
|
-
return this.
|
|
104
|
+
return this.r54_1;
|
|
105
105
|
};
|
|
106
106
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
107
107
|
var tmp;
|
|
@@ -122,20 +122,20 @@
|
|
|
122
122
|
return hashCode(this.d3());
|
|
123
123
|
};
|
|
124
124
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
128
|
-
this.
|
|
125
|
+
this.a55_1 = $$this$unsafeFlow;
|
|
126
|
+
this.b55_1 = $charset;
|
|
127
|
+
this.c55_1 = $typeInfo;
|
|
128
|
+
this.d55_1 = $body;
|
|
129
129
|
CoroutineImpl.call(this, resultContinuation);
|
|
130
130
|
}
|
|
131
|
-
protoOf(deserialize$o$collect$slambda).
|
|
132
|
-
var tmp = this.
|
|
131
|
+
protoOf(deserialize$o$collect$slambda).g55 = function (value, $completion) {
|
|
132
|
+
var tmp = this.h55(value, $completion);
|
|
133
133
|
tmp.w8_1 = Unit_instance;
|
|
134
134
|
tmp.x8_1 = null;
|
|
135
135
|
return tmp.c9();
|
|
136
136
|
};
|
|
137
137
|
protoOf(deserialize$o$collect$slambda).o9 = function (p1, $completion) {
|
|
138
|
-
return this.
|
|
138
|
+
return this.g55((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
139
139
|
};
|
|
140
140
|
protoOf(deserialize$o$collect$slambda).c9 = function () {
|
|
141
141
|
var suspendResult = this.w8_1;
|
|
@@ -145,11 +145,11 @@
|
|
|
145
145
|
switch (tmp) {
|
|
146
146
|
case 0:
|
|
147
147
|
this.v8_1 = 3;
|
|
148
|
-
var tmp0 = this.
|
|
149
|
-
var tmp2 = this.
|
|
150
|
-
this.
|
|
148
|
+
var tmp0 = this.a55_1;
|
|
149
|
+
var tmp2 = this.e55_1;
|
|
150
|
+
this.f55_1 = tmp0;
|
|
151
151
|
this.u8_1 = 1;
|
|
152
|
-
suspendResult = tmp2.
|
|
152
|
+
suspendResult = tmp2.i55(this.b55_1, this.c55_1, this.d55_1, this);
|
|
153
153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
154
154
|
return suspendResult;
|
|
155
155
|
}
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
case 1:
|
|
159
159
|
var ARGUMENT = suspendResult;
|
|
160
160
|
this.u8_1 = 2;
|
|
161
|
-
suspendResult = this.
|
|
161
|
+
suspendResult = this.f55_1.q1b(ARGUMENT, this);
|
|
162
162
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
163
163
|
return suspendResult;
|
|
164
164
|
}
|
|
@@ -180,23 +180,23 @@
|
|
|
180
180
|
}
|
|
181
181
|
while (true);
|
|
182
182
|
};
|
|
183
|
-
protoOf(deserialize$o$collect$slambda).
|
|
184
|
-
var i = new deserialize$o$collect$slambda(this.
|
|
185
|
-
i.
|
|
183
|
+
protoOf(deserialize$o$collect$slambda).h55 = function (value, completion) {
|
|
184
|
+
var i = new deserialize$o$collect$slambda(this.a55_1, this.b55_1, this.c55_1, this.d55_1, completion);
|
|
185
|
+
i.e55_1 = value;
|
|
186
186
|
return i;
|
|
187
187
|
};
|
|
188
188
|
function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
189
189
|
var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
|
|
190
190
|
var l = function (value, $completion) {
|
|
191
|
-
return i.
|
|
191
|
+
return i.g55(value, $completion);
|
|
192
192
|
};
|
|
193
193
|
l.$arity = 1;
|
|
194
194
|
return l;
|
|
195
195
|
}
|
|
196
196
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
197
197
|
CoroutineImpl.call(this, resultContinuation);
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
198
|
+
this.r55_1 = _this__u8e3s4;
|
|
199
|
+
this.s55_1 = collector;
|
|
200
200
|
}
|
|
201
201
|
protoOf($collectCOROUTINE$).c9 = function () {
|
|
202
202
|
var suspendResult = this.w8_1;
|
|
@@ -206,10 +206,10 @@
|
|
|
206
206
|
switch (tmp) {
|
|
207
207
|
case 0:
|
|
208
208
|
this.v8_1 = 2;
|
|
209
|
-
var $this$unsafeFlow = this.
|
|
209
|
+
var $this$unsafeFlow = this.s55_1;
|
|
210
210
|
this.u8_1 = 1;
|
|
211
|
-
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
212
|
-
suspendResult = this.
|
|
211
|
+
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.r55_1.u55_1, this.r55_1.v55_1, this.r55_1.w55_1, null);
|
|
212
|
+
suspendResult = this.r55_1.t55_1.s1b(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
213
213
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
214
|
return suspendResult;
|
|
215
215
|
}
|
|
@@ -232,32 +232,32 @@
|
|
|
232
232
|
while (true);
|
|
233
233
|
};
|
|
234
234
|
function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
235
|
+
this.t55_1 = $this;
|
|
236
|
+
this.u55_1 = $charset;
|
|
237
|
+
this.v55_1 = $typeInfo;
|
|
238
|
+
this.w55_1 = $body;
|
|
239
239
|
}
|
|
240
|
-
protoOf(deserialize$$inlined$map$1).
|
|
240
|
+
protoOf(deserialize$$inlined$map$1).r1b = function (collector, $completion) {
|
|
241
241
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
242
242
|
tmp.w8_1 = Unit_instance;
|
|
243
243
|
tmp.x8_1 = null;
|
|
244
244
|
return tmp.c9();
|
|
245
245
|
};
|
|
246
|
-
protoOf(deserialize$$inlined$map$1).
|
|
247
|
-
return this.
|
|
246
|
+
protoOf(deserialize$$inlined$map$1).s1b = function (collector, $completion) {
|
|
247
|
+
return this.r1b(collector, $completion);
|
|
248
248
|
};
|
|
249
249
|
function deserialize$slambda($body, resultContinuation) {
|
|
250
|
-
this.
|
|
250
|
+
this.f56_1 = $body;
|
|
251
251
|
CoroutineImpl.call(this, resultContinuation);
|
|
252
252
|
}
|
|
253
|
-
protoOf(deserialize$slambda).
|
|
254
|
-
var tmp = this.
|
|
253
|
+
protoOf(deserialize$slambda).h56 = function (it, $completion) {
|
|
254
|
+
var tmp = this.h55(it, $completion);
|
|
255
255
|
tmp.w8_1 = Unit_instance;
|
|
256
256
|
tmp.x8_1 = null;
|
|
257
257
|
return tmp.c9();
|
|
258
258
|
};
|
|
259
259
|
protoOf(deserialize$slambda).o9 = function (p1, $completion) {
|
|
260
|
-
return this.
|
|
260
|
+
return this.h56((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
261
261
|
};
|
|
262
262
|
protoOf(deserialize$slambda).c9 = function () {
|
|
263
263
|
var suspendResult = this.w8_1;
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
var tmp = this.u8_1;
|
|
267
267
|
if (tmp === 0) {
|
|
268
268
|
this.v8_1 = 1;
|
|
269
|
-
return !(this.
|
|
269
|
+
return !(this.g56_1 == null) || this.f56_1.u1l();
|
|
270
270
|
} else if (tmp === 1) {
|
|
271
271
|
throw this.x8_1;
|
|
272
272
|
}
|
|
@@ -276,25 +276,25 @@
|
|
|
276
276
|
}
|
|
277
277
|
while (true);
|
|
278
278
|
};
|
|
279
|
-
protoOf(deserialize$slambda).
|
|
280
|
-
var i = new deserialize$slambda(this.
|
|
281
|
-
i.
|
|
279
|
+
protoOf(deserialize$slambda).h55 = function (it, completion) {
|
|
280
|
+
var i = new deserialize$slambda(this.f56_1, completion);
|
|
281
|
+
i.g56_1 = it;
|
|
282
282
|
return i;
|
|
283
283
|
};
|
|
284
284
|
function deserialize$slambda_0($body, resultContinuation) {
|
|
285
285
|
var i = new deserialize$slambda($body, resultContinuation);
|
|
286
286
|
var l = function (it, $completion) {
|
|
287
|
-
return i.
|
|
287
|
+
return i.h56(it, $completion);
|
|
288
288
|
};
|
|
289
289
|
l.$arity = 1;
|
|
290
290
|
return l;
|
|
291
291
|
}
|
|
292
292
|
function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
|
|
293
293
|
CoroutineImpl.call(this, resultContinuation);
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
294
|
+
this.l54_1 = _this__u8e3s4;
|
|
295
|
+
this.m54_1 = body;
|
|
296
|
+
this.n54_1 = typeInfo;
|
|
297
|
+
this.o54_1 = charset;
|
|
298
298
|
}
|
|
299
299
|
protoOf($deserializeCOROUTINE$).c9 = function () {
|
|
300
300
|
var suspendResult = this.w8_1;
|
|
@@ -305,9 +305,9 @@
|
|
|
305
305
|
case 0:
|
|
306
306
|
this.v8_1 = 2;
|
|
307
307
|
this.u8_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.
|
|
308
|
+
var this_0 = asFlow(this.l54_1);
|
|
309
|
+
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.o54_1, this.n54_1, this.m54_1);
|
|
310
|
+
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.m54_1, null), this);
|
|
311
311
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
312
312
|
return suspendResult;
|
|
313
313
|
}
|
|
@@ -319,14 +319,14 @@
|
|
|
319
319
|
if (!(result == null)) {
|
|
320
320
|
tmp_1 = result;
|
|
321
321
|
} else {
|
|
322
|
-
if (!this.
|
|
323
|
-
tmp_1 = this.
|
|
322
|
+
if (!this.m54_1.u1l()) {
|
|
323
|
+
tmp_1 = this.m54_1;
|
|
324
324
|
} else {
|
|
325
|
-
var tmp0_safe_receiver = this.
|
|
325
|
+
var tmp0_safe_receiver = this.n54_1.q2p_1;
|
|
326
326
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lb()) === true) {
|
|
327
327
|
tmp_1 = NullBody_instance;
|
|
328
328
|
} else {
|
|
329
|
-
throw new ContentConvertException('No suitable converter found for ' + this.
|
|
329
|
+
throw new ContentConvertException('No suitable converter found for ' + this.n54_1.toString());
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
}
|