@doordeck/doordeck-headless-sdk 0.208.0 → 0.210.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/Signum-indispensable-asn1.js +4 -0
- package/kotlin/doordeck-sdk.d.ts +36 -1
- package/kotlin/doordeck-sdk.js +12351 -11885
- package/kotlin/kotlin-kotlin-stdlib.js +483 -465
- package/kotlin/kotlinx-atomicfu.js +8 -8
- package/kotlin/kotlinx-coroutines-core.js +183 -156
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +20 -20
- package/kotlin/kotlinx-io-kotlinx-io-core.js +35 -35
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2084 -1887
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1514 -1514
- package/kotlin/kotlinx-serialization-kotlinx-serialization-properties.js +100 -0
- package/kotlin/ktor-ktor-client-auth.js +273 -273
- package/kotlin/ktor-ktor-client-content-negotiation.js +163 -163
- package/kotlin/ktor-ktor-client-core.js +2156 -2134
- package/kotlin/ktor-ktor-client-logging.js +654 -654
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +379 -379
- package/kotlin/ktor-ktor-http.js +847 -900
- package/kotlin/ktor-ktor-io.js +109 -162
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +165 -348
- package/kotlin/ktor-ktor-serialization.js +70 -92
- package/kotlin/ktor-ktor-utils.js +920 -919
- package/kotlin/ktor-ktor-websockets.js +397 -397
- package/package.json +1 -1
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
(function (_, kotlin_kotlin,
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_http) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Exception = kotlin_kotlin.$_$.
|
|
4
|
+
var Exception = kotlin_kotlin.$_$.ig;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.c;
|
|
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
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.pb;
|
|
24
|
-
var constructCallableReference = kotlin_kotlin.$_$.ab;
|
|
25
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
|
|
26
|
-
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
6
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.o4;
|
|
7
|
+
var captureStack = kotlin_kotlin.$_$.ya;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.nc;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qb;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.c3;
|
|
11
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ub;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.ib;
|
|
13
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ua;
|
|
14
|
+
var isInterface = kotlin_kotlin.$_$.fc;
|
|
15
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
16
|
+
var hashCode = kotlin_kotlin.$_$.pb;
|
|
17
|
+
var CoroutineImpl = kotlin_kotlin.$_$.y9;
|
|
18
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.h9;
|
|
19
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.vb;
|
|
20
|
+
var constructCallableReference = kotlin_kotlin.$_$.gb;
|
|
21
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.sb;
|
|
22
|
+
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
27
23
|
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
28
24
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
29
25
|
//endregion
|
|
@@ -40,10 +36,10 @@
|
|
|
40
36
|
configuration = tmp;
|
|
41
37
|
var tmp_0;
|
|
42
38
|
if ($super === VOID) {
|
|
43
|
-
this.
|
|
39
|
+
this.g3o(contentType, converter, configuration);
|
|
44
40
|
tmp_0 = Unit_instance;
|
|
45
41
|
} else {
|
|
46
|
-
tmp_0 = $super.
|
|
42
|
+
tmp_0 = $super.g3o.call(this, contentType, converter, configuration);
|
|
47
43
|
}
|
|
48
44
|
return tmp_0;
|
|
49
45
|
}
|
|
@@ -71,36 +67,19 @@
|
|
|
71
67
|
tmp.g9_1 = null;
|
|
72
68
|
return tmp.l9();
|
|
73
69
|
}
|
|
74
|
-
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
75
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
|
|
76
|
-
var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
|
|
77
|
-
return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
|
|
78
|
-
}
|
|
79
70
|
function Configuration$register$lambda(_this__u8e3s4) {
|
|
80
71
|
return Unit_instance;
|
|
81
72
|
}
|
|
82
73
|
function Configuration() {
|
|
83
74
|
}
|
|
84
|
-
function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
|
|
85
|
-
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
|
|
86
|
-
var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.w2o('Accept-Charset')).t();
|
|
87
|
-
while (_iterator__ex2g4s.u()) {
|
|
88
|
-
var charset = _iterator__ex2g4s.v().jg();
|
|
89
|
-
if (charset === '*')
|
|
90
|
-
return defaultCharset;
|
|
91
|
-
else if (isSupported(Charsets_getInstance(), charset))
|
|
92
|
-
return forName(Charsets_getInstance(), charset);
|
|
93
|
-
}
|
|
94
|
-
return null;
|
|
95
|
-
}
|
|
96
75
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
97
|
-
this.
|
|
76
|
+
this.i3o_1 = function_0;
|
|
98
77
|
}
|
|
99
78
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).y1e = function (value, $completion) {
|
|
100
|
-
return this.
|
|
79
|
+
return this.i3o_1(value, $completion);
|
|
101
80
|
};
|
|
102
81
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
|
|
103
|
-
return this.
|
|
82
|
+
return this.i3o_1;
|
|
104
83
|
};
|
|
105
84
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
106
85
|
var tmp;
|
|
@@ -121,20 +100,20 @@
|
|
|
121
100
|
return hashCode(this.q3());
|
|
122
101
|
};
|
|
123
102
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
103
|
+
this.r3o_1 = $$this$unsafeFlow;
|
|
104
|
+
this.s3o_1 = $charset;
|
|
105
|
+
this.t3o_1 = $typeInfo;
|
|
106
|
+
this.u3o_1 = $body;
|
|
128
107
|
CoroutineImpl.call(this, resultContinuation);
|
|
129
108
|
}
|
|
130
|
-
protoOf(deserialize$o$collect$slambda).
|
|
131
|
-
var tmp = this.
|
|
109
|
+
protoOf(deserialize$o$collect$slambda).x3o = function (value, $completion) {
|
|
110
|
+
var tmp = this.y3o(value, $completion);
|
|
132
111
|
tmp.f9_1 = Unit_instance;
|
|
133
112
|
tmp.g9_1 = null;
|
|
134
113
|
return tmp.l9();
|
|
135
114
|
};
|
|
136
115
|
protoOf(deserialize$o$collect$slambda).y9 = function (p1, $completion) {
|
|
137
|
-
return this.
|
|
116
|
+
return this.x3o(p1, $completion);
|
|
138
117
|
};
|
|
139
118
|
protoOf(deserialize$o$collect$slambda).l9 = function () {
|
|
140
119
|
var suspendResult = this.f9_1;
|
|
@@ -144,11 +123,11 @@
|
|
|
144
123
|
switch (tmp) {
|
|
145
124
|
case 0:
|
|
146
125
|
this.e9_1 = 3;
|
|
147
|
-
var tmp0 = this.
|
|
148
|
-
var tmp2 = this.
|
|
149
|
-
this.
|
|
126
|
+
var tmp0 = this.r3o_1;
|
|
127
|
+
var tmp2 = this.v3o_1;
|
|
128
|
+
this.w3o_1 = tmp0;
|
|
150
129
|
this.d9_1 = 1;
|
|
151
|
-
suspendResult = tmp2.
|
|
130
|
+
suspendResult = tmp2.z3o(this.s3o_1, this.t3o_1, this.u3o_1, this);
|
|
152
131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
153
132
|
return suspendResult;
|
|
154
133
|
}
|
|
@@ -157,7 +136,7 @@
|
|
|
157
136
|
case 1:
|
|
158
137
|
var ARGUMENT = suspendResult;
|
|
159
138
|
this.d9_1 = 2;
|
|
160
|
-
suspendResult = this.
|
|
139
|
+
suspendResult = this.w3o_1.y1e(ARGUMENT, this);
|
|
161
140
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
162
141
|
return suspendResult;
|
|
163
142
|
}
|
|
@@ -179,21 +158,21 @@
|
|
|
179
158
|
}
|
|
180
159
|
while (true);
|
|
181
160
|
};
|
|
182
|
-
protoOf(deserialize$o$collect$slambda).
|
|
183
|
-
var i = new deserialize$o$collect$slambda(this.
|
|
184
|
-
i.
|
|
161
|
+
protoOf(deserialize$o$collect$slambda).y3o = function (value, completion) {
|
|
162
|
+
var i = new deserialize$o$collect$slambda(this.r3o_1, this.s3o_1, this.t3o_1, this.u3o_1, completion);
|
|
163
|
+
i.v3o_1 = value;
|
|
185
164
|
return i;
|
|
186
165
|
};
|
|
187
166
|
function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
188
167
|
var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
|
|
189
168
|
return constructCallableReference(function (value, $completion) {
|
|
190
|
-
return i.
|
|
169
|
+
return i.x3o(value, $completion);
|
|
191
170
|
}, 1);
|
|
192
171
|
}
|
|
193
172
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
194
173
|
CoroutineImpl.call(this, resultContinuation);
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
174
|
+
this.i3p_1 = _this__u8e3s4;
|
|
175
|
+
this.j3p_1 = collector;
|
|
197
176
|
}
|
|
198
177
|
protoOf($collectCOROUTINE$).l9 = function () {
|
|
199
178
|
var suspendResult = this.f9_1;
|
|
@@ -203,10 +182,10 @@
|
|
|
203
182
|
switch (tmp) {
|
|
204
183
|
case 0:
|
|
205
184
|
this.e9_1 = 2;
|
|
206
|
-
var $this$unsafeFlow = this.
|
|
185
|
+
var $this$unsafeFlow = this.j3p_1;
|
|
207
186
|
this.d9_1 = 1;
|
|
208
|
-
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
209
|
-
suspendResult = this.
|
|
187
|
+
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.i3p_1.l3p_1, this.i3p_1.m3p_1, this.i3p_1.n3p_1, null);
|
|
188
|
+
suspendResult = this.i3p_1.k3p_1.a1f(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
210
189
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
190
|
return suspendResult;
|
|
212
191
|
}
|
|
@@ -229,10 +208,10 @@
|
|
|
229
208
|
while (true);
|
|
230
209
|
};
|
|
231
210
|
function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
211
|
+
this.k3p_1 = $this;
|
|
212
|
+
this.l3p_1 = $charset;
|
|
213
|
+
this.m3p_1 = $typeInfo;
|
|
214
|
+
this.n3p_1 = $body;
|
|
236
215
|
}
|
|
237
216
|
protoOf(deserialize$$inlined$map$1).z1e = function (collector, $completion) {
|
|
238
217
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -244,17 +223,17 @@
|
|
|
244
223
|
return this.z1e(collector, $completion);
|
|
245
224
|
};
|
|
246
225
|
function deserialize$slambda($body, resultContinuation) {
|
|
247
|
-
this.
|
|
226
|
+
this.w3p_1 = $body;
|
|
248
227
|
CoroutineImpl.call(this, resultContinuation);
|
|
249
228
|
}
|
|
250
|
-
protoOf(deserialize$slambda).
|
|
251
|
-
var tmp = this.
|
|
229
|
+
protoOf(deserialize$slambda).y3p = function (it, $completion) {
|
|
230
|
+
var tmp = this.y3o(it, $completion);
|
|
252
231
|
tmp.f9_1 = Unit_instance;
|
|
253
232
|
tmp.g9_1 = null;
|
|
254
233
|
return tmp.l9();
|
|
255
234
|
};
|
|
256
235
|
protoOf(deserialize$slambda).y9 = function (p1, $completion) {
|
|
257
|
-
return this.
|
|
236
|
+
return this.y3p(p1, $completion);
|
|
258
237
|
};
|
|
259
238
|
protoOf(deserialize$slambda).l9 = function () {
|
|
260
239
|
var suspendResult = this.f9_1;
|
|
@@ -263,7 +242,7 @@
|
|
|
263
242
|
var tmp = this.d9_1;
|
|
264
243
|
if (tmp === 0) {
|
|
265
244
|
this.e9_1 = 1;
|
|
266
|
-
return !(this.
|
|
245
|
+
return !(this.x3p_1 == null) || this.w3p_1.b1p();
|
|
267
246
|
} else if (tmp === 1) {
|
|
268
247
|
throw this.g9_1;
|
|
269
248
|
}
|
|
@@ -273,23 +252,23 @@
|
|
|
273
252
|
}
|
|
274
253
|
while (true);
|
|
275
254
|
};
|
|
276
|
-
protoOf(deserialize$slambda).
|
|
277
|
-
var i = new deserialize$slambda(this.
|
|
278
|
-
i.
|
|
255
|
+
protoOf(deserialize$slambda).y3o = function (it, completion) {
|
|
256
|
+
var i = new deserialize$slambda(this.w3p_1, completion);
|
|
257
|
+
i.x3p_1 = it;
|
|
279
258
|
return i;
|
|
280
259
|
};
|
|
281
260
|
function deserialize$slambda_0($body, resultContinuation) {
|
|
282
261
|
var i = new deserialize$slambda($body, resultContinuation);
|
|
283
262
|
return constructCallableReference(function (it, $completion) {
|
|
284
|
-
return i.
|
|
263
|
+
return i.y3p(it, $completion);
|
|
285
264
|
}, 1);
|
|
286
265
|
}
|
|
287
266
|
function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
|
|
288
267
|
CoroutineImpl.call(this, resultContinuation);
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
268
|
+
this.c3o_1 = _this__u8e3s4;
|
|
269
|
+
this.d3o_1 = body;
|
|
270
|
+
this.e3o_1 = typeInfo;
|
|
271
|
+
this.f3o_1 = charset;
|
|
293
272
|
}
|
|
294
273
|
protoOf($deserializeCOROUTINE$).l9 = function () {
|
|
295
274
|
var suspendResult = this.f9_1;
|
|
@@ -300,9 +279,9 @@
|
|
|
300
279
|
case 0:
|
|
301
280
|
this.e9_1 = 2;
|
|
302
281
|
this.d9_1 = 1;
|
|
303
|
-
var this_0 = asFlow(this.
|
|
304
|
-
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.
|
|
305
|
-
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.
|
|
282
|
+
var this_0 = asFlow(this.c3o_1);
|
|
283
|
+
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.f3o_1, this.e3o_1, this.d3o_1);
|
|
284
|
+
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.d3o_1, null), this);
|
|
306
285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
307
286
|
return suspendResult;
|
|
308
287
|
}
|
|
@@ -314,14 +293,14 @@
|
|
|
314
293
|
if (!(result == null)) {
|
|
315
294
|
tmp_1 = result;
|
|
316
295
|
} else {
|
|
317
|
-
if (!this.
|
|
318
|
-
tmp_1 = this.
|
|
296
|
+
if (!this.d3o_1.b1p()) {
|
|
297
|
+
tmp_1 = this.d3o_1;
|
|
319
298
|
} else {
|
|
320
|
-
var tmp0_safe_receiver = this.
|
|
299
|
+
var tmp0_safe_receiver = this.e3o_1.n2u_1;
|
|
321
300
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
|
|
322
301
|
tmp_1 = NullBody_instance;
|
|
323
302
|
} else {
|
|
324
|
-
throw new ContentConvertException('No suitable converter found for ' + this.
|
|
303
|
+
throw new ContentConvertException('No suitable converter found for ' + this.e3o_1.toString());
|
|
325
304
|
}
|
|
326
305
|
}
|
|
327
306
|
}
|
|
@@ -348,7 +327,6 @@
|
|
|
348
327
|
_.$_$.c = Configuration;
|
|
349
328
|
_.$_$.d = ContentConvertException;
|
|
350
329
|
_.$_$.e = JsonConvertException;
|
|
351
|
-
_.$_$.f = suitableCharset;
|
|
352
330
|
//endregion
|
|
353
331
|
return _;
|
|
354
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./
|
|
332
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-http.js')));
|