@doordeck/doordeck-headless-sdk 0.34.0 → 0.36.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/Kotlin-DateTime-library-kotlinx-datetime.js +1192 -1192
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +14 -0
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -6
- package/kotlin/Stately-stately-concurrency.js +6 -6
- package/kotlin/Stately-stately-concurrent-collections.js +53 -53
- package/kotlin/doordeck-sdk.js +7989 -7922
- package/kotlin/doordeck-sdk.js.map +1 -1
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +1555 -1555
- package/kotlin/kotlinx-coroutines-core.js.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js +412 -412
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1657 -1657
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1310 -1310
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1696 -1696
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +212 -212
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +120 -120
- package/kotlin/ktor-ktor-http.js +629 -629
- package/kotlin/ktor-ktor-io.js +378 -378
- package/kotlin/ktor-ktor-shared-ktor-events.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +132 -132
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +37 -37
- package/kotlin/ktor-ktor-utils.js +507 -507
- package/kotlin/projects-core-koin-core.js +246 -246
- package/package.json +1 -1
|
@@ -85,35 +85,35 @@
|
|
|
85
85
|
}
|
|
86
86
|
var ContentNegotiation;
|
|
87
87
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
88
|
+
this.g46_1 = converter;
|
|
89
|
+
this.h46_1 = contentTypeToSend;
|
|
90
|
+
this.i46_1 = contentTypeMatcher;
|
|
91
91
|
}
|
|
92
92
|
function defaultMatcher($this, pattern) {
|
|
93
93
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
94
94
|
}
|
|
95
95
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
96
|
-
this.
|
|
96
|
+
this.j46_1 = $pattern;
|
|
97
97
|
}
|
|
98
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
99
|
-
return contentType.
|
|
98
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).k46 = function (contentType) {
|
|
99
|
+
return contentType.g2e(this.j46_1);
|
|
100
100
|
};
|
|
101
101
|
function ContentNegotiationConfig() {
|
|
102
|
-
this.
|
|
102
|
+
this.l46_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
103
103
|
var tmp = this;
|
|
104
104
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
105
|
-
tmp.
|
|
105
|
+
tmp.m46_1 = ArrayList_init_$Create$();
|
|
106
106
|
}
|
|
107
|
-
protoOf(ContentNegotiationConfig).
|
|
108
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
109
|
-
this.
|
|
107
|
+
protoOf(ContentNegotiationConfig).n2q = function (contentType, converter, configuration) {
|
|
108
|
+
var matcher = contentType.equals(Application_getInstance().y2c_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
109
|
+
this.n46(contentType, converter, matcher, configuration);
|
|
110
110
|
};
|
|
111
|
-
protoOf(ContentNegotiationConfig).
|
|
111
|
+
protoOf(ContentNegotiationConfig).n46 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
112
112
|
// Inline function 'kotlin.apply' call
|
|
113
113
|
// Inline function 'kotlin.contracts.contract' call
|
|
114
114
|
configuration(converter);
|
|
115
115
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
116
|
-
this.
|
|
116
|
+
this.m46_1.k(registration);
|
|
117
117
|
};
|
|
118
118
|
function ContentConverterException(message) {
|
|
119
119
|
Exception_init_$Init$(message, this);
|
|
@@ -128,10 +128,10 @@
|
|
|
128
128
|
}
|
|
129
129
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
130
130
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
131
|
-
var registrations = $this$createClientPlugin.
|
|
132
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
133
|
-
$this$createClientPlugin.
|
|
134
|
-
$this$createClientPlugin.
|
|
131
|
+
var registrations = $this$createClientPlugin.d33_1.m46_1;
|
|
132
|
+
var ignoredTypes = $this$createClientPlugin.d33_1.l46_1;
|
|
133
|
+
$this$createClientPlugin.w3l(ContentNegotiation$lambda$slambda_0(registrations, ignoredTypes, $this$createClientPlugin, null));
|
|
134
|
+
$this$createClientPlugin.b3e(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
135
135
|
return Unit_instance;
|
|
136
136
|
}
|
|
137
137
|
function invoke$convertRequest(registrations, ignoredTypes, $this_createClientPlugin, request, body, $completion) {
|
|
@@ -141,29 +141,29 @@
|
|
|
141
141
|
return tmp.l9();
|
|
142
142
|
}
|
|
143
143
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
144
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
144
|
+
charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
|
|
145
145
|
var tmp = new $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
146
146
|
tmp.f9_1 = Unit_instance;
|
|
147
147
|
tmp.g9_1 = null;
|
|
148
148
|
return tmp.l9();
|
|
149
149
|
}
|
|
150
150
|
function ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
151
|
+
this.h48_1 = $registrations;
|
|
152
|
+
this.i48_1 = $ignoredTypes;
|
|
153
|
+
this.j48_1 = $this_createClientPlugin;
|
|
154
154
|
CoroutineImpl.call(this, resultContinuation);
|
|
155
155
|
}
|
|
156
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
157
|
-
var tmp = this.
|
|
156
|
+
protoOf(ContentNegotiation$lambda$slambda).o48 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
157
|
+
var tmp = this.p48($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
158
158
|
tmp.f9_1 = Unit_instance;
|
|
159
159
|
tmp.g9_1 = null;
|
|
160
160
|
return tmp.l9();
|
|
161
161
|
};
|
|
162
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
162
|
+
protoOf(ContentNegotiation$lambda$slambda).g3f = function (p1, p2, p3, p4, $completion) {
|
|
163
163
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
164
164
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
165
165
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
166
|
-
return this.
|
|
166
|
+
return this.o48(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
167
167
|
};
|
|
168
168
|
protoOf(ContentNegotiation$lambda$slambda).l9 = function () {
|
|
169
169
|
var suspendResult = this.f9_1;
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
case 0:
|
|
175
175
|
this.e9_1 = 2;
|
|
176
176
|
this.d9_1 = 1;
|
|
177
|
-
suspendResult = invoke$convertRequest(this.
|
|
177
|
+
suspendResult = invoke$convertRequest(this.h48_1, this.i48_1, this.j48_1, this.l48_1, this.m48_1, this);
|
|
178
178
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
179
179
|
return suspendResult;
|
|
180
180
|
}
|
|
@@ -196,39 +196,39 @@
|
|
|
196
196
|
}
|
|
197
197
|
while (true);
|
|
198
198
|
};
|
|
199
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
200
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
201
|
-
i.
|
|
202
|
-
i.
|
|
203
|
-
i.
|
|
204
|
-
i.
|
|
199
|
+
protoOf(ContentNegotiation$lambda$slambda).p48 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
200
|
+
var i = new ContentNegotiation$lambda$slambda(this.h48_1, this.i48_1, this.j48_1, completion);
|
|
201
|
+
i.k48_1 = $this$transformRequestBody;
|
|
202
|
+
i.l48_1 = request;
|
|
203
|
+
i.m48_1 = body;
|
|
204
|
+
i.n48_1 = _unused_var__etf5q3;
|
|
205
205
|
return i;
|
|
206
206
|
};
|
|
207
207
|
function ContentNegotiation$lambda$slambda_0($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
|
|
208
208
|
var i = new ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation);
|
|
209
209
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
210
|
-
return i.
|
|
210
|
+
return i.o48($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
211
211
|
};
|
|
212
212
|
l.$arity = 4;
|
|
213
213
|
return l;
|
|
214
214
|
}
|
|
215
215
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
216
|
+
this.y48_1 = $ignoredTypes;
|
|
217
|
+
this.z48_1 = $registrations;
|
|
218
|
+
this.a49_1 = $this_createClientPlugin;
|
|
219
219
|
CoroutineImpl.call(this, resultContinuation);
|
|
220
220
|
}
|
|
221
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
222
|
-
var tmp = this.
|
|
221
|
+
protoOf(ContentNegotiation$lambda$slambda_1).e3f = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
222
|
+
var tmp = this.f3f($this$transformResponseBody, response, body, info, $completion);
|
|
223
223
|
tmp.f9_1 = Unit_instance;
|
|
224
224
|
tmp.g9_1 = null;
|
|
225
225
|
return tmp.l9();
|
|
226
226
|
};
|
|
227
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
227
|
+
protoOf(ContentNegotiation$lambda$slambda_1).g3f = function (p1, p2, p3, p4, $completion) {
|
|
228
228
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
229
229
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
230
230
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
231
|
-
return this.
|
|
231
|
+
return this.e3f(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
232
232
|
};
|
|
233
233
|
protoOf(ContentNegotiation$lambda$slambda_1).l9 = function () {
|
|
234
234
|
var suspendResult = this.f9_1;
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
case 0:
|
|
240
240
|
this.e9_1 = 2;
|
|
241
241
|
var tmp_0 = this;
|
|
242
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
242
|
+
var tmp0_elvis_lhs = contentType(this.c49_1);
|
|
243
243
|
var tmp_1;
|
|
244
244
|
if (tmp0_elvis_lhs == null) {
|
|
245
245
|
return null;
|
|
@@ -247,10 +247,10 @@
|
|
|
247
247
|
tmp_1 = tmp0_elvis_lhs;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
tmp_0.
|
|
251
|
-
this.
|
|
250
|
+
tmp_0.f49_1 = tmp_1;
|
|
251
|
+
this.g49_1 = suitableCharset(get_request(this.c49_1).p2i());
|
|
252
252
|
this.d9_1 = 1;
|
|
253
|
-
suspendResult = invoke$convertResponse(this.
|
|
253
|
+
suspendResult = invoke$convertResponse(this.y48_1, this.z48_1, this.a49_1, get_request(this.c49_1).d2x(), this.e49_1, this.d49_1, this.f49_1, this.g49_1, this);
|
|
254
254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
255
255
|
return suspendResult;
|
|
256
256
|
}
|
|
@@ -272,33 +272,33 @@
|
|
|
272
272
|
}
|
|
273
273
|
while (true);
|
|
274
274
|
};
|
|
275
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
276
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
277
|
-
i.
|
|
278
|
-
i.
|
|
279
|
-
i.
|
|
280
|
-
i.
|
|
275
|
+
protoOf(ContentNegotiation$lambda$slambda_1).f3f = function ($this$transformResponseBody, response, body, info, completion) {
|
|
276
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.y48_1, this.z48_1, this.a49_1, completion);
|
|
277
|
+
i.b49_1 = $this$transformResponseBody;
|
|
278
|
+
i.c49_1 = response;
|
|
279
|
+
i.d49_1 = body;
|
|
280
|
+
i.e49_1 = info;
|
|
281
281
|
return i;
|
|
282
282
|
};
|
|
283
283
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
284
284
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
285
285
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
286
|
-
return i.
|
|
286
|
+
return i.e3f($this$transformResponseBody, response, body, info, $completion);
|
|
287
287
|
};
|
|
288
288
|
l.$arity = 4;
|
|
289
289
|
return l;
|
|
290
290
|
}
|
|
291
291
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
292
292
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
293
|
-
return toString(it.
|
|
293
|
+
return toString(it.g46_1);
|
|
294
294
|
}
|
|
295
295
|
function $invoke$convertRequestCOROUTINE$0(registrations, ignoredTypes, $this_createClientPlugin, request, body, resultContinuation) {
|
|
296
296
|
CoroutineImpl.call(this, resultContinuation);
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
297
|
+
this.w46_1 = registrations;
|
|
298
|
+
this.x46_1 = ignoredTypes;
|
|
299
|
+
this.y46_1 = $this_createClientPlugin;
|
|
300
|
+
this.z46_1 = request;
|
|
301
|
+
this.a47_1 = body;
|
|
302
302
|
}
|
|
303
303
|
protoOf($invoke$convertRequestCOROUTINE$0).l9 = function () {
|
|
304
304
|
var suspendResult = this.f9_1;
|
|
@@ -308,27 +308,27 @@
|
|
|
308
308
|
switch (tmp) {
|
|
309
309
|
case 0:
|
|
310
310
|
this.e9_1 = 7;
|
|
311
|
-
var tmp0_iterator = this.
|
|
311
|
+
var tmp0_iterator = this.w46_1.p();
|
|
312
312
|
while (tmp0_iterator.q()) {
|
|
313
313
|
var element = tmp0_iterator.r();
|
|
314
314
|
l$ret$1: do {
|
|
315
|
-
get_LOGGER().
|
|
316
|
-
if (this.
|
|
315
|
+
get_LOGGER().l2c('Adding Accept=' + element.h46_1.c2e_1 + ' header for ' + this.z46_1.r2u_1.toString());
|
|
316
|
+
if (this.z46_1.t2u_1.h28(HttpHeaders_getInstance().m2e_1, element.h46_1.toString())) {
|
|
317
317
|
break l$ret$1;
|
|
318
318
|
}
|
|
319
|
-
accept(this.
|
|
319
|
+
accept(this.z46_1, element.h46_1);
|
|
320
320
|
}
|
|
321
321
|
while (false);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
var tmp_0;
|
|
325
|
-
var tmp_1 = this.
|
|
325
|
+
var tmp_1 = this.a47_1;
|
|
326
326
|
if (tmp_1 instanceof OutgoingContent) {
|
|
327
327
|
tmp_0 = true;
|
|
328
328
|
} else {
|
|
329
329
|
var tmp$ret$2;
|
|
330
330
|
l$ret$3: do {
|
|
331
|
-
var this_0 = this.
|
|
331
|
+
var this_0 = this.x46_1;
|
|
332
332
|
var tmp_2;
|
|
333
333
|
if (isInterface(this_0, Collection)) {
|
|
334
334
|
tmp_2 = this_0.h();
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
var tmp0_iterator_0 = this_0.p();
|
|
343
343
|
while (tmp0_iterator_0.q()) {
|
|
344
344
|
var element_0 = tmp0_iterator_0.r();
|
|
345
|
-
if (element_0.wa(this.
|
|
345
|
+
if (element_0.wa(this.a47_1)) {
|
|
346
346
|
tmp$ret$2 = true;
|
|
347
347
|
break l$ret$3;
|
|
348
348
|
}
|
|
@@ -354,36 +354,36 @@
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
if (tmp_0) {
|
|
357
|
-
get_LOGGER().
|
|
357
|
+
get_LOGGER().l2c('Body type ' + toString(getKClassFromExpression(this.a47_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.z46_1.r2u_1.toString() + '.'));
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
var tmp_3 = this;
|
|
362
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
362
|
+
var tmp0_elvis_lhs = contentType_0(this.z46_1);
|
|
363
363
|
var tmp_4;
|
|
364
364
|
if (tmp0_elvis_lhs == null) {
|
|
365
|
-
this.
|
|
366
|
-
get_LOGGER().
|
|
365
|
+
this.y46_1;
|
|
366
|
+
get_LOGGER().l2c("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.z46_1.r2u_1.toString() + '.');
|
|
367
367
|
return null;
|
|
368
368
|
} else {
|
|
369
369
|
tmp_4 = tmp0_elvis_lhs;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
tmp_3.
|
|
373
|
-
var tmp_5 = this.
|
|
372
|
+
tmp_3.b47_1 = tmp_4;
|
|
373
|
+
var tmp_5 = this.a47_1;
|
|
374
374
|
if (tmp_5 instanceof Unit) {
|
|
375
|
-
get_LOGGER().
|
|
376
|
-
this.
|
|
375
|
+
get_LOGGER().l2c('Sending empty body for ' + this.z46_1.r2u_1.toString());
|
|
376
|
+
this.z46_1.t2u_1.n28(HttpHeaders_getInstance().e2f_1);
|
|
377
377
|
return EmptyContent_getInstance();
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
var tmp_6 = this;
|
|
381
|
-
var this_1 = this.
|
|
381
|
+
var this_1 = this.w46_1;
|
|
382
382
|
var destination = ArrayList_init_$Create$();
|
|
383
383
|
var tmp0_iterator_1 = this_1.p();
|
|
384
384
|
while (tmp0_iterator_1.q()) {
|
|
385
385
|
var element_1 = tmp0_iterator_1.r();
|
|
386
|
-
if (element_1.
|
|
386
|
+
if (element_1.i46_1.k46(this.b47_1)) {
|
|
387
387
|
destination.k(element_1);
|
|
388
388
|
}
|
|
389
389
|
}
|
|
@@ -398,42 +398,42 @@
|
|
|
398
398
|
var tmp1_elvis_lhs = tmp_7;
|
|
399
399
|
var tmp_8;
|
|
400
400
|
if (tmp1_elvis_lhs == null) {
|
|
401
|
-
this.
|
|
402
|
-
get_LOGGER().
|
|
401
|
+
this.y46_1;
|
|
402
|
+
get_LOGGER().l2c('None of the registered converters match request Content-Type=' + this.b47_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.z46_1.r2u_1.toString() + '.'));
|
|
403
403
|
return null;
|
|
404
404
|
} else {
|
|
405
405
|
tmp_8 = tmp1_elvis_lhs;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
tmp_6.
|
|
409
|
-
if (this.
|
|
410
|
-
get_LOGGER().
|
|
408
|
+
tmp_6.c47_1 = tmp_8;
|
|
409
|
+
if (this.z46_1.f3o() == null) {
|
|
410
|
+
get_LOGGER().l2c('Request has unknown body type. Skipping ContentNegotiation for ' + this.z46_1.r2u_1.toString() + '.');
|
|
411
411
|
return null;
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
this.
|
|
414
|
+
this.z46_1.t2u_1.n28(HttpHeaders_getInstance().e2f_1);
|
|
415
415
|
this.d9_1 = 1;
|
|
416
416
|
continue $sm;
|
|
417
417
|
case 1:
|
|
418
418
|
var tmp_9 = this;
|
|
419
|
-
tmp_9.
|
|
420
|
-
this.
|
|
419
|
+
tmp_9.e47_1 = this.c47_1;
|
|
420
|
+
this.f47_1 = this.e47_1.p();
|
|
421
421
|
this.d9_1 = 2;
|
|
422
422
|
continue $sm;
|
|
423
423
|
case 2:
|
|
424
|
-
if (!this.
|
|
424
|
+
if (!this.f47_1.q()) {
|
|
425
425
|
this.d9_1 = 5;
|
|
426
426
|
continue $sm;
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
this.
|
|
429
|
+
this.g47_1 = this.f47_1.r();
|
|
430
430
|
var tmp_10 = this;
|
|
431
|
-
tmp_10.
|
|
431
|
+
tmp_10.h47_1 = this.g47_1;
|
|
432
432
|
this.d9_1 = 3;
|
|
433
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
434
|
-
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().
|
|
435
|
-
var tmp_12 = ensureNotNull(this.
|
|
436
|
-
var this_2 = this.
|
|
433
|
+
var tmp0_elvis_lhs_0 = charset(this.b47_1);
|
|
434
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().p1k_1 : tmp0_elvis_lhs_0;
|
|
435
|
+
var tmp_12 = ensureNotNull(this.z46_1.f3o());
|
|
436
|
+
var this_2 = this.a47_1;
|
|
437
437
|
var tmp_13;
|
|
438
438
|
if (!equals(this_2, NullBody_instance)) {
|
|
439
439
|
tmp_13 = this_2;
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
tmp_13 = null;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
suspendResult = this.
|
|
444
|
+
suspendResult = this.h47_1.g46_1.h49(this.b47_1, tmp_11, tmp_12, tmp_13, this);
|
|
445
445
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
446
446
|
return suspendResult;
|
|
447
447
|
}
|
|
@@ -450,12 +450,12 @@
|
|
|
450
450
|
case 3:
|
|
451
451
|
var result = suspendResult;
|
|
452
452
|
if (!(result == null)) {
|
|
453
|
-
get_LOGGER().
|
|
453
|
+
get_LOGGER().l2c('Converted request body using ' + toString(this.h47_1.g46_1) + ' for ' + this.z46_1.r2u_1.toString());
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
var result_0 = result;
|
|
457
457
|
if (!(result_0 == null)) {
|
|
458
|
-
this.
|
|
458
|
+
this.d47_1 = result_0;
|
|
459
459
|
this.d9_1 = 6;
|
|
460
460
|
continue $sm;
|
|
461
461
|
} else {
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
this.d9_1 = 2;
|
|
468
468
|
continue $sm;
|
|
469
469
|
case 5:
|
|
470
|
-
this.
|
|
470
|
+
this.d47_1 = null;
|
|
471
471
|
if (false) {
|
|
472
472
|
this.d9_1 = 1;
|
|
473
473
|
continue $sm;
|
|
@@ -476,11 +476,11 @@
|
|
|
476
476
|
this.d9_1 = 6;
|
|
477
477
|
continue $sm;
|
|
478
478
|
case 6:
|
|
479
|
-
var tmp2_elvis_lhs = this.
|
|
479
|
+
var tmp2_elvis_lhs = this.d47_1;
|
|
480
480
|
var tmp_14;
|
|
481
481
|
if (tmp2_elvis_lhs == null) {
|
|
482
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
483
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
482
|
+
var tmp_15 = "Can't convert " + toString(this.a47_1) + ' with contentType ' + this.b47_1.toString() + ' using converters ';
|
|
483
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.c47_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
484
484
|
} else {
|
|
485
485
|
tmp_14 = tmp2_elvis_lhs;
|
|
486
486
|
}
|
|
@@ -503,14 +503,14 @@
|
|
|
503
503
|
};
|
|
504
504
|
function $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
505
505
|
CoroutineImpl.call(this, resultContinuation);
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
506
|
+
this.q47_1 = ignoredTypes;
|
|
507
|
+
this.r47_1 = registrations;
|
|
508
|
+
this.s47_1 = $this_createClientPlugin;
|
|
509
|
+
this.t47_1 = requestUrl;
|
|
510
|
+
this.u47_1 = info;
|
|
511
|
+
this.v47_1 = body;
|
|
512
|
+
this.w47_1 = responseContentType;
|
|
513
|
+
this.x47_1 = charset;
|
|
514
514
|
}
|
|
515
515
|
protoOf($invoke$convertResponseCOROUTINE$1).l9 = function () {
|
|
516
516
|
var suspendResult = this.f9_1;
|
|
@@ -520,24 +520,24 @@
|
|
|
520
520
|
switch (tmp) {
|
|
521
521
|
case 0:
|
|
522
522
|
this.e9_1 = 2;
|
|
523
|
-
var tmp_0 = this.
|
|
523
|
+
var tmp_0 = this.v47_1;
|
|
524
524
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
525
|
-
get_LOGGER().
|
|
525
|
+
get_LOGGER().l2c('Response body is already transformed. Skipping ContentNegotiation for ' + this.t47_1.toString() + '.');
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
if (this.
|
|
530
|
-
get_LOGGER().
|
|
529
|
+
if (this.q47_1.x1(this.u47_1.z2b_1)) {
|
|
530
|
+
get_LOGGER().l2c('Response body type ' + toString(this.u47_1.z2b_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.t47_1.toString() + '.'));
|
|
531
531
|
return null;
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
var tmp_1 = this;
|
|
535
|
-
var this_0 = this.
|
|
535
|
+
var this_0 = this.r47_1;
|
|
536
536
|
var destination = ArrayList_init_$Create$();
|
|
537
537
|
var tmp0_iterator = this_0.p();
|
|
538
538
|
while (tmp0_iterator.q()) {
|
|
539
539
|
var element = tmp0_iterator.r();
|
|
540
|
-
if (element.
|
|
540
|
+
if (element.i46_1.k46(this.w47_1)) {
|
|
541
541
|
destination.k(element);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
var tmp0_iterator_0 = destination.p();
|
|
547
547
|
while (tmp0_iterator_0.q()) {
|
|
548
548
|
var item = tmp0_iterator_0.r();
|
|
549
|
-
destination_0.k(item.
|
|
549
|
+
destination_0.k(item.g46_1);
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
var tmp_2;
|
|
@@ -559,16 +559,16 @@
|
|
|
559
559
|
var tmp0_elvis_lhs = tmp_2;
|
|
560
560
|
var tmp_3;
|
|
561
561
|
if (tmp0_elvis_lhs == null) {
|
|
562
|
-
this.
|
|
563
|
-
get_LOGGER().
|
|
562
|
+
this.s47_1;
|
|
563
|
+
get_LOGGER().l2c('None of the registered converters match response with Content-Type=' + this.w47_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.t47_1.toString() + '.'));
|
|
564
564
|
return null;
|
|
565
565
|
} else {
|
|
566
566
|
tmp_3 = tmp0_elvis_lhs;
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
tmp_1.
|
|
569
|
+
tmp_1.y47_1 = tmp_3;
|
|
570
570
|
this.d9_1 = 1;
|
|
571
|
-
suspendResult = deserialize(this.
|
|
571
|
+
suspendResult = deserialize(this.y47_1, this.v47_1, this.u47_1, this.x47_1, this);
|
|
572
572
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
573
573
|
return suspendResult;
|
|
574
574
|
}
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
case 1:
|
|
578
578
|
var result = suspendResult;
|
|
579
579
|
if (!isInterface(result, ByteReadChannel)) {
|
|
580
|
-
get_LOGGER().
|
|
580
|
+
get_LOGGER().l2c('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.t47_1.toString() + '.');
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
return result;
|
|
@@ -607,11 +607,11 @@
|
|
|
607
607
|
}
|
|
608
608
|
function JsonContentTypeMatcher() {
|
|
609
609
|
}
|
|
610
|
-
protoOf(JsonContentTypeMatcher).
|
|
611
|
-
if (contentType.
|
|
610
|
+
protoOf(JsonContentTypeMatcher).k46 = function (contentType) {
|
|
611
|
+
if (contentType.g2e(Application_getInstance().y2c_1)) {
|
|
612
612
|
return true;
|
|
613
613
|
}
|
|
614
|
-
var value = contentType.
|
|
614
|
+
var value = contentType.f2e().toString();
|
|
615
615
|
return startsWith(value, 'application/', true) && endsWith(value, '+json', true);
|
|
616
616
|
};
|
|
617
617
|
var JsonContentTypeMatcher_instance;
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
//region block: post-declaration
|
|
635
|
-
protoOf(ContentNegotiationConfig).
|
|
635
|
+
protoOf(ContentNegotiationConfig).o2q = register$default;
|
|
636
636
|
//endregion
|
|
637
637
|
//region block: init
|
|
638
638
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|