game_client_logic_deb 1.8.304 → 1.8.310
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/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1376 -1376
- package/Logic_Debertz-core.js +1449 -1449
- package/Logic_Debertz-engine.js +13801 -13806
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +4 -3
- package/Logic_Debertz-game_client.js +3132 -3140
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1419 -1573
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +1801 -1801
- package/kotlinx-serialization-kotlinx-serialization-json.js +1328 -1328
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1536 -1536
- package/ktor-ktor-client-logging.js +287 -287
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +599 -599
- package/ktor-ktor-io.js +1255 -1255
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +138 -138
- package/ktor-ktor-serialization.js +64 -64
- package/ktor-ktor-utils.js +498 -498
- package/ktor-ktor-websockets.js +41 -41
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +190 -187
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +880 -948
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -107,32 +107,32 @@
|
|
|
107
107
|
}
|
|
108
108
|
var DefaultCommonIgnoredTypes;
|
|
109
109
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
110
|
+
this.d40_1 = converter;
|
|
111
|
+
this.e40_1 = contentTypeToSend;
|
|
112
|
+
this.f40_1 = contentTypeMatcher;
|
|
113
113
|
}
|
|
114
114
|
function defaultMatcher($this, pattern) {
|
|
115
115
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
116
116
|
}
|
|
117
117
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
118
|
-
this.
|
|
118
|
+
this.g40_1 = $pattern;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
121
|
-
return contentType.
|
|
120
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).h40 = function (contentType) {
|
|
121
|
+
return contentType.o2e(this.g40_1);
|
|
122
122
|
};
|
|
123
123
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
124
|
-
this.
|
|
124
|
+
this.q40_1 = $plugin;
|
|
125
125
|
CoroutineImpl.call(this, resultContinuation);
|
|
126
126
|
}
|
|
127
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
128
|
-
var tmp = this.
|
|
127
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).b2t = function ($this$intercept, it, $completion) {
|
|
128
|
+
var tmp = this.c2t($this$intercept, it, $completion);
|
|
129
129
|
tmp.h9_1 = Unit_instance;
|
|
130
130
|
tmp.i9_1 = null;
|
|
131
131
|
return tmp.n9();
|
|
132
132
|
};
|
|
133
133
|
protoOf(ContentNegotiation$Plugin$install$slambda).y9 = function (p1, p2, $completion) {
|
|
134
134
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
135
|
-
return this.
|
|
135
|
+
return this.b2t(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
136
136
|
};
|
|
137
137
|
protoOf(ContentNegotiation$Plugin$install$slambda).n9 = function () {
|
|
138
138
|
var suspendResult = this.h9_1;
|
|
@@ -143,25 +143,25 @@
|
|
|
143
143
|
case 0:
|
|
144
144
|
this.g9_1 = 3;
|
|
145
145
|
this.f9_1 = 1;
|
|
146
|
-
suspendResult = this.
|
|
146
|
+
suspendResult = this.q40_1.x40(this.r40_1.y2b_1, this.r40_1.b2b(), this);
|
|
147
147
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
148
148
|
return suspendResult;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
continue $sm;
|
|
152
152
|
case 1:
|
|
153
|
-
this.
|
|
153
|
+
this.t40_1 = suspendResult;
|
|
154
154
|
var tmp_0 = this;
|
|
155
155
|
var tmp_1;
|
|
156
|
-
if (this.
|
|
156
|
+
if (this.t40_1 == null) {
|
|
157
157
|
return Unit_instance;
|
|
158
158
|
} else {
|
|
159
|
-
tmp_1 = this.
|
|
159
|
+
tmp_1 = this.t40_1;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
tmp_0.
|
|
162
|
+
tmp_0.u40_1 = tmp_1;
|
|
163
163
|
this.f9_1 = 2;
|
|
164
|
-
suspendResult = this.
|
|
164
|
+
suspendResult = this.r40_1.c2b(this.u40_1, this);
|
|
165
165
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
166
166
|
return suspendResult;
|
|
167
167
|
}
|
|
@@ -183,33 +183,33 @@
|
|
|
183
183
|
}
|
|
184
184
|
while (true);
|
|
185
185
|
};
|
|
186
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
187
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
188
|
-
i.
|
|
189
|
-
i.
|
|
186
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).c2t = function ($this$intercept, it, completion) {
|
|
187
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.q40_1, completion);
|
|
188
|
+
i.r40_1 = $this$intercept;
|
|
189
|
+
i.s40_1 = it;
|
|
190
190
|
return i;
|
|
191
191
|
};
|
|
192
192
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
193
193
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
194
194
|
var l = function ($this$intercept, it, $completion) {
|
|
195
|
-
return i.
|
|
195
|
+
return i.b2t($this$intercept, it, $completion);
|
|
196
196
|
};
|
|
197
197
|
l.$arity = 2;
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
200
200
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
201
|
-
this.
|
|
201
|
+
this.g41_1 = $plugin;
|
|
202
202
|
CoroutineImpl.call(this, resultContinuation);
|
|
203
203
|
}
|
|
204
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
205
|
-
var tmp = this.
|
|
204
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).v2t = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
205
|
+
var tmp = this.w2t($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
206
206
|
tmp.h9_1 = Unit_instance;
|
|
207
207
|
tmp.i9_1 = null;
|
|
208
208
|
return tmp.n9();
|
|
209
209
|
};
|
|
210
210
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).y9 = function (p1, p2, $completion) {
|
|
211
211
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
212
|
-
return this.
|
|
212
|
+
return this.v2t(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
213
213
|
};
|
|
214
214
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).n9 = function () {
|
|
215
215
|
var suspendResult = this.h9_1;
|
|
@@ -219,42 +219,42 @@
|
|
|
219
219
|
switch (tmp) {
|
|
220
220
|
case 0:
|
|
221
221
|
this.g9_1 = 3;
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
222
|
+
this.j41_1 = this.i41_1.qe();
|
|
223
|
+
this.k41_1 = this.i41_1.re();
|
|
224
224
|
var tmp_0 = this;
|
|
225
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
225
|
+
var tmp0_elvis_lhs = contentType(this.h41_1.y2b_1.i2t());
|
|
226
226
|
var tmp_1;
|
|
227
227
|
if (tmp0_elvis_lhs == null) {
|
|
228
|
-
this.
|
|
229
|
-
get_LOGGER().
|
|
228
|
+
this.h41_1;
|
|
229
|
+
get_LOGGER().u2c('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
230
230
|
return Unit_instance;
|
|
231
231
|
} else {
|
|
232
232
|
tmp_1 = tmp0_elvis_lhs;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
tmp_0.
|
|
236
|
-
this.
|
|
235
|
+
tmp_0.l41_1 = tmp_1;
|
|
236
|
+
this.m41_1 = suitableCharset(this.h41_1.y2b_1.r2w().w2i());
|
|
237
237
|
this.f9_1 = 1;
|
|
238
|
-
suspendResult = this.
|
|
238
|
+
suspendResult = this.g41_1.q41(this.h41_1.y2b_1.r2w().u2w(), this.j41_1, this.k41_1, this.l41_1, this.m41_1, this);
|
|
239
239
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
240
240
|
return suspendResult;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
continue $sm;
|
|
244
244
|
case 1:
|
|
245
|
-
this.
|
|
245
|
+
this.n41_1 = suspendResult;
|
|
246
246
|
var tmp_2 = this;
|
|
247
247
|
var tmp_3;
|
|
248
|
-
if (this.
|
|
248
|
+
if (this.n41_1 == null) {
|
|
249
249
|
return Unit_instance;
|
|
250
250
|
} else {
|
|
251
|
-
tmp_3 = this.
|
|
251
|
+
tmp_3 = this.n41_1;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
tmp_2.
|
|
255
|
-
this.
|
|
254
|
+
tmp_2.o41_1 = tmp_3;
|
|
255
|
+
this.p41_1 = new HttpResponseContainer(this.j41_1, this.o41_1);
|
|
256
256
|
this.f9_1 = 2;
|
|
257
|
-
suspendResult = this.
|
|
257
|
+
suspendResult = this.h41_1.c2b(this.p41_1, this);
|
|
258
258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
259
259
|
return suspendResult;
|
|
260
260
|
}
|
|
@@ -276,63 +276,63 @@
|
|
|
276
276
|
}
|
|
277
277
|
while (true);
|
|
278
278
|
};
|
|
279
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
280
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
281
|
-
i.
|
|
282
|
-
i.
|
|
279
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).w2t = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
280
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.g41_1, completion);
|
|
281
|
+
i.h41_1 = $this$intercept;
|
|
282
|
+
i.i41_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
283
283
|
return i;
|
|
284
284
|
};
|
|
285
285
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
286
286
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
287
287
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
288
|
-
return i.
|
|
288
|
+
return i.v2t($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
289
289
|
};
|
|
290
290
|
l.$arity = 2;
|
|
291
291
|
return l;
|
|
292
292
|
}
|
|
293
293
|
function Config() {
|
|
294
|
-
this.
|
|
294
|
+
this.r41_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
295
295
|
var tmp = this;
|
|
296
296
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
297
|
-
tmp.
|
|
297
|
+
tmp.s41_1 = ArrayList_init_$Create$();
|
|
298
298
|
}
|
|
299
|
-
protoOf(Config).
|
|
300
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
301
|
-
this.
|
|
299
|
+
protoOf(Config).q2p = function (contentType, converter, configuration) {
|
|
300
|
+
var matcher = contentType.equals(Application_getInstance().h2d_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
301
|
+
this.t41(contentType, converter, matcher, configuration);
|
|
302
302
|
};
|
|
303
|
-
protoOf(Config).
|
|
303
|
+
protoOf(Config).t41 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
304
304
|
// Inline function 'kotlin.apply' call
|
|
305
305
|
// Inline function 'kotlin.contracts.contract' call
|
|
306
306
|
configuration(converter);
|
|
307
307
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
308
|
-
this.
|
|
308
|
+
this.s41_1.e(registration);
|
|
309
309
|
};
|
|
310
310
|
function Plugin() {
|
|
311
311
|
Plugin_instance = this;
|
|
312
|
-
this.
|
|
312
|
+
this.u41_1 = new AttributeKey('ContentNegotiation');
|
|
313
313
|
}
|
|
314
314
|
protoOf(Plugin).t = function () {
|
|
315
|
-
return this.
|
|
315
|
+
return this.u41_1;
|
|
316
316
|
};
|
|
317
|
-
protoOf(Plugin).
|
|
317
|
+
protoOf(Plugin).v41 = function (block) {
|
|
318
318
|
// Inline function 'kotlin.apply' call
|
|
319
319
|
var this_0 = new Config();
|
|
320
320
|
// Inline function 'kotlin.contracts.contract' call
|
|
321
321
|
block(this_0);
|
|
322
322
|
var config = this_0;
|
|
323
|
-
return new ContentNegotiation(config.
|
|
323
|
+
return new ContentNegotiation(config.s41_1, config.r41_1);
|
|
324
324
|
};
|
|
325
|
-
protoOf(Plugin).
|
|
326
|
-
return this.
|
|
325
|
+
protoOf(Plugin).m2v = function (block) {
|
|
326
|
+
return this.v41(block);
|
|
327
327
|
};
|
|
328
|
-
protoOf(Plugin).
|
|
329
|
-
var tmp = Phases_getInstance().
|
|
330
|
-
scope.
|
|
331
|
-
var tmp_0 = Phases_getInstance_0().
|
|
332
|
-
scope.
|
|
328
|
+
protoOf(Plugin).w41 = function (plugin, scope) {
|
|
329
|
+
var tmp = Phases_getInstance().g31_1;
|
|
330
|
+
scope.h2s_1.c2c(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
331
|
+
var tmp_0 = Phases_getInstance_0().h2v_1;
|
|
332
|
+
scope.i2s_1.c2c(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
333
333
|
};
|
|
334
|
-
protoOf(Plugin).
|
|
335
|
-
return this.
|
|
334
|
+
protoOf(Plugin).n2v = function (plugin, scope) {
|
|
335
|
+
return this.w41(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
336
336
|
};
|
|
337
337
|
var Plugin_instance;
|
|
338
338
|
function Plugin_getInstance() {
|
|
@@ -341,13 +341,13 @@
|
|
|
341
341
|
return Plugin_instance;
|
|
342
342
|
}
|
|
343
343
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
344
|
-
return toString(it.
|
|
344
|
+
return toString(it.d40_1);
|
|
345
345
|
}
|
|
346
346
|
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
347
347
|
CoroutineImpl.call(this, resultContinuation);
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
348
|
+
this.f42_1 = _this__u8e3s4;
|
|
349
|
+
this.g42_1 = request;
|
|
350
|
+
this.h42_1 = body;
|
|
351
351
|
}
|
|
352
352
|
protoOf($convertRequestCOROUTINE$0).n9 = function () {
|
|
353
353
|
var suspendResult = this.h9_1;
|
|
@@ -357,27 +357,27 @@
|
|
|
357
357
|
switch (tmp) {
|
|
358
358
|
case 0:
|
|
359
359
|
this.g9_1 = 7;
|
|
360
|
-
var tmp0_iterator = this.
|
|
360
|
+
var tmp0_iterator = this.f42_1.v40_1.j();
|
|
361
361
|
while (tmp0_iterator.k()) {
|
|
362
362
|
var element = tmp0_iterator.l();
|
|
363
363
|
l$ret$1: do {
|
|
364
|
-
get_LOGGER().
|
|
365
|
-
if (this.
|
|
364
|
+
get_LOGGER().u2c('Adding Accept=' + element.e40_1.k2e_1 + ' header for ' + this.g42_1.h2u_1.toString());
|
|
365
|
+
if (this.g42_1.j2u_1.c29(HttpHeaders_getInstance().t2e_1, element.e40_1.toString())) {
|
|
366
366
|
break l$ret$1;
|
|
367
367
|
}
|
|
368
|
-
accept(this.
|
|
368
|
+
accept(this.g42_1, element.e40_1);
|
|
369
369
|
}
|
|
370
370
|
while (false);
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
var tmp_0;
|
|
374
|
-
var tmp_1 = this.
|
|
374
|
+
var tmp_1 = this.h42_1;
|
|
375
375
|
if (tmp_1 instanceof OutgoingContent) {
|
|
376
376
|
tmp_0 = true;
|
|
377
377
|
} else {
|
|
378
378
|
var tmp$ret$2;
|
|
379
379
|
l$ret$3: do {
|
|
380
|
-
var this_0 = this.
|
|
380
|
+
var this_0 = this.f42_1.w40_1;
|
|
381
381
|
var tmp_2;
|
|
382
382
|
if (isInterface(this_0, Collection)) {
|
|
383
383
|
tmp_2 = this_0.p();
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
var tmp0_iterator_0 = this_0.j();
|
|
392
392
|
while (tmp0_iterator_0.k()) {
|
|
393
393
|
var element_0 = tmp0_iterator_0.l();
|
|
394
|
-
if (element_0.na(this.
|
|
394
|
+
if (element_0.na(this.h42_1)) {
|
|
395
395
|
tmp$ret$2 = true;
|
|
396
396
|
break l$ret$3;
|
|
397
397
|
}
|
|
@@ -403,36 +403,36 @@
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
if (tmp_0) {
|
|
406
|
-
get_LOGGER().
|
|
406
|
+
get_LOGGER().u2c('Body type ' + toString(getKClassFromExpression(this.h42_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.g42_1.h2u_1.toString() + '.'));
|
|
407
407
|
return null;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
var tmp_3 = this;
|
|
411
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
411
|
+
var tmp0_elvis_lhs = contentType_0(this.g42_1);
|
|
412
412
|
var tmp_4;
|
|
413
413
|
if (tmp0_elvis_lhs == null) {
|
|
414
|
-
this.
|
|
415
|
-
get_LOGGER().
|
|
414
|
+
this.f42_1;
|
|
415
|
+
get_LOGGER().u2c("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.g42_1.h2u_1.toString() + '.');
|
|
416
416
|
return null;
|
|
417
417
|
} else {
|
|
418
418
|
tmp_4 = tmp0_elvis_lhs;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
tmp_3.
|
|
422
|
-
var tmp_5 = this.
|
|
421
|
+
tmp_3.i42_1 = tmp_4;
|
|
422
|
+
var tmp_5 = this.h42_1;
|
|
423
423
|
if (tmp_5 instanceof Unit) {
|
|
424
|
-
get_LOGGER().
|
|
425
|
-
this.
|
|
424
|
+
get_LOGGER().u2c('Sending empty body for ' + this.g42_1.h2u_1.toString());
|
|
425
|
+
this.g42_1.j2u_1.h29(HttpHeaders_getInstance().l2f_1);
|
|
426
426
|
return EmptyContent_getInstance();
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
var tmp_6 = this;
|
|
430
|
-
var this_1 = this.
|
|
430
|
+
var this_1 = this.f42_1.v40_1;
|
|
431
431
|
var destination = ArrayList_init_$Create$();
|
|
432
432
|
var tmp0_iterator_1 = this_1.j();
|
|
433
433
|
while (tmp0_iterator_1.k()) {
|
|
434
434
|
var element_1 = tmp0_iterator_1.l();
|
|
435
|
-
if (element_1.
|
|
435
|
+
if (element_1.f40_1.h40(this.i42_1)) {
|
|
436
436
|
destination.e(element_1);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
@@ -447,42 +447,42 @@
|
|
|
447
447
|
var tmp1_elvis_lhs = tmp_7;
|
|
448
448
|
var tmp_8;
|
|
449
449
|
if (tmp1_elvis_lhs == null) {
|
|
450
|
-
this.
|
|
451
|
-
get_LOGGER().
|
|
450
|
+
this.f42_1;
|
|
451
|
+
get_LOGGER().u2c('None of the registered converters match request Content-Type=' + this.i42_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.g42_1.h2u_1.toString() + '.'));
|
|
452
452
|
return null;
|
|
453
453
|
} else {
|
|
454
454
|
tmp_8 = tmp1_elvis_lhs;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
tmp_6.
|
|
458
|
-
if (this.
|
|
459
|
-
get_LOGGER().
|
|
457
|
+
tmp_6.j42_1 = tmp_8;
|
|
458
|
+
if (this.g42_1.k3j() == null) {
|
|
459
|
+
get_LOGGER().u2c('Request has unknown body type. Skipping ContentNegotiation for ' + this.g42_1.h2u_1.toString() + '.');
|
|
460
460
|
return null;
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
-
this.
|
|
463
|
+
this.g42_1.j2u_1.h29(HttpHeaders_getInstance().l2f_1);
|
|
464
464
|
this.f9_1 = 1;
|
|
465
465
|
continue $sm;
|
|
466
466
|
case 1:
|
|
467
467
|
var tmp_9 = this;
|
|
468
|
-
tmp_9.
|
|
469
|
-
this.
|
|
468
|
+
tmp_9.l42_1 = this.j42_1;
|
|
469
|
+
this.m42_1 = this.l42_1.j();
|
|
470
470
|
this.f9_1 = 2;
|
|
471
471
|
continue $sm;
|
|
472
472
|
case 2:
|
|
473
|
-
if (!this.
|
|
473
|
+
if (!this.m42_1.k()) {
|
|
474
474
|
this.f9_1 = 5;
|
|
475
475
|
continue $sm;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
-
this.
|
|
478
|
+
this.n42_1 = this.m42_1.l();
|
|
479
479
|
var tmp_10 = this;
|
|
480
|
-
tmp_10.
|
|
480
|
+
tmp_10.o42_1 = this.n42_1;
|
|
481
481
|
this.f9_1 = 3;
|
|
482
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
483
|
-
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().
|
|
484
|
-
var tmp_12 = ensureNotNull(this.
|
|
485
|
-
var this_2 = this.
|
|
482
|
+
var tmp0_elvis_lhs_0 = charset(this.i42_1);
|
|
483
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().y20_1 : tmp0_elvis_lhs_0;
|
|
484
|
+
var tmp_12 = ensureNotNull(this.g42_1.k3j());
|
|
485
|
+
var this_2 = this.h42_1;
|
|
486
486
|
var tmp_13;
|
|
487
487
|
if (!equals(this_2, NullBody_instance)) {
|
|
488
488
|
tmp_13 = this_2;
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
tmp_13 = null;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
suspendResult = this.
|
|
493
|
+
suspendResult = this.o42_1.d40_1.t2p(this.i42_1, tmp_11, tmp_12, tmp_13, this);
|
|
494
494
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
495
495
|
return suspendResult;
|
|
496
496
|
}
|
|
@@ -499,12 +499,12 @@
|
|
|
499
499
|
case 3:
|
|
500
500
|
var result = suspendResult;
|
|
501
501
|
if (!(result == null)) {
|
|
502
|
-
get_LOGGER().
|
|
502
|
+
get_LOGGER().u2c('Converted request body using ' + toString(this.o42_1.d40_1) + ' for ' + this.g42_1.h2u_1.toString());
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
var result_0 = result;
|
|
506
506
|
if (!(result_0 == null)) {
|
|
507
|
-
this.
|
|
507
|
+
this.k42_1 = result_0;
|
|
508
508
|
this.f9_1 = 6;
|
|
509
509
|
continue $sm;
|
|
510
510
|
} else {
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
this.f9_1 = 2;
|
|
517
517
|
continue $sm;
|
|
518
518
|
case 5:
|
|
519
|
-
this.
|
|
519
|
+
this.k42_1 = null;
|
|
520
520
|
if (false) {
|
|
521
521
|
this.f9_1 = 1;
|
|
522
522
|
continue $sm;
|
|
@@ -525,11 +525,11 @@
|
|
|
525
525
|
this.f9_1 = 6;
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 6:
|
|
528
|
-
var tmp2_elvis_lhs = this.
|
|
528
|
+
var tmp2_elvis_lhs = this.k42_1;
|
|
529
529
|
var tmp_14;
|
|
530
530
|
if (tmp2_elvis_lhs == null) {
|
|
531
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
532
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
531
|
+
var tmp_15 = "Can't convert " + toString(this.h42_1) + ' with contentType ' + this.i42_1.toString() + ' using converters ';
|
|
532
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.j42_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
533
533
|
} else {
|
|
534
534
|
tmp_14 = tmp2_elvis_lhs;
|
|
535
535
|
}
|
|
@@ -552,12 +552,12 @@
|
|
|
552
552
|
};
|
|
553
553
|
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
554
554
|
CoroutineImpl.call(this, resultContinuation);
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
555
|
+
this.x42_1 = _this__u8e3s4;
|
|
556
|
+
this.y42_1 = requestUrl;
|
|
557
|
+
this.z42_1 = info;
|
|
558
|
+
this.a43_1 = body;
|
|
559
|
+
this.b43_1 = responseContentType;
|
|
560
|
+
this.c43_1 = charset;
|
|
561
561
|
}
|
|
562
562
|
protoOf($convertResponseCOROUTINE$1).n9 = function () {
|
|
563
563
|
var suspendResult = this.h9_1;
|
|
@@ -567,24 +567,24 @@
|
|
|
567
567
|
switch (tmp) {
|
|
568
568
|
case 0:
|
|
569
569
|
this.g9_1 = 2;
|
|
570
|
-
var tmp_0 = this.
|
|
570
|
+
var tmp_0 = this.a43_1;
|
|
571
571
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
572
|
-
get_LOGGER().
|
|
572
|
+
get_LOGGER().u2c('Response body is already transformed. Skipping ContentNegotiation for ' + this.y42_1.toString() + '.');
|
|
573
573
|
return null;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
if (this.
|
|
577
|
-
get_LOGGER().
|
|
576
|
+
if (this.x42_1.w40_1.s1(this.z42_1.p2c_1)) {
|
|
577
|
+
get_LOGGER().u2c('Response body type ' + toString(this.z42_1.p2c_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.y42_1.toString() + '.'));
|
|
578
578
|
return null;
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
var tmp_1 = this;
|
|
582
|
-
var this_0 = this.
|
|
582
|
+
var this_0 = this.x42_1.v40_1;
|
|
583
583
|
var destination = ArrayList_init_$Create$();
|
|
584
584
|
var tmp0_iterator = this_0.j();
|
|
585
585
|
while (tmp0_iterator.k()) {
|
|
586
586
|
var element = tmp0_iterator.l();
|
|
587
|
-
if (element.
|
|
587
|
+
if (element.f40_1.h40(this.b43_1)) {
|
|
588
588
|
destination.e(element);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
var tmp0_iterator_0 = destination.j();
|
|
594
594
|
while (tmp0_iterator_0.k()) {
|
|
595
595
|
var item = tmp0_iterator_0.l();
|
|
596
|
-
destination_0.e(item.
|
|
596
|
+
destination_0.e(item.d40_1);
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
var tmp_2;
|
|
@@ -606,16 +606,16 @@
|
|
|
606
606
|
var tmp0_elvis_lhs = tmp_2;
|
|
607
607
|
var tmp_3;
|
|
608
608
|
if (tmp0_elvis_lhs == null) {
|
|
609
|
-
this.
|
|
610
|
-
get_LOGGER().
|
|
609
|
+
this.x42_1;
|
|
610
|
+
get_LOGGER().u2c('None of the registered converters match response with Content-Type=' + this.b43_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.y42_1.toString() + '.'));
|
|
611
611
|
return null;
|
|
612
612
|
} else {
|
|
613
613
|
tmp_3 = tmp0_elvis_lhs;
|
|
614
614
|
}
|
|
615
615
|
|
|
616
|
-
tmp_1.
|
|
616
|
+
tmp_1.d43_1 = tmp_3;
|
|
617
617
|
this.f9_1 = 1;
|
|
618
|
-
suspendResult = deserialize(this.
|
|
618
|
+
suspendResult = deserialize(this.d43_1, this.a43_1, this.z42_1, this.c43_1, this);
|
|
619
619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
620
620
|
return suspendResult;
|
|
621
621
|
}
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
case 1:
|
|
625
625
|
var result = suspendResult;
|
|
626
626
|
if (!isInterface(result, ByteReadChannel)) {
|
|
627
|
-
get_LOGGER().
|
|
627
|
+
get_LOGGER().u2c('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.y42_1.toString() + '.');
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
return result;
|
|
@@ -644,16 +644,16 @@
|
|
|
644
644
|
};
|
|
645
645
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
646
646
|
Plugin_getInstance();
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
647
|
+
this.v40_1 = registrations;
|
|
648
|
+
this.w40_1 = ignoredTypes;
|
|
649
649
|
}
|
|
650
|
-
protoOf(ContentNegotiation).
|
|
650
|
+
protoOf(ContentNegotiation).x40 = function (request, body, $completion) {
|
|
651
651
|
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
652
652
|
tmp.h9_1 = Unit_instance;
|
|
653
653
|
tmp.i9_1 = null;
|
|
654
654
|
return tmp.n9();
|
|
655
655
|
};
|
|
656
|
-
protoOf(ContentNegotiation).
|
|
656
|
+
protoOf(ContentNegotiation).q41 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
657
657
|
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
658
658
|
tmp.h9_1 = Unit_instance;
|
|
659
659
|
tmp.i9_1 = null;
|
|
@@ -673,11 +673,11 @@
|
|
|
673
673
|
}
|
|
674
674
|
function JsonContentTypeMatcher() {
|
|
675
675
|
}
|
|
676
|
-
protoOf(JsonContentTypeMatcher).
|
|
677
|
-
if (contentType.
|
|
676
|
+
protoOf(JsonContentTypeMatcher).h40 = function (contentType) {
|
|
677
|
+
if (contentType.o2e(Application_getInstance().h2d_1)) {
|
|
678
678
|
return true;
|
|
679
679
|
}
|
|
680
|
-
var value = contentType.
|
|
680
|
+
var value = contentType.n2e().toString();
|
|
681
681
|
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
682
682
|
};
|
|
683
683
|
var JsonContentTypeMatcher_instance;
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
//region block: post-declaration
|
|
701
|
-
protoOf(Config).
|
|
701
|
+
protoOf(Config).r2p = register$default;
|
|
702
702
|
//endregion
|
|
703
703
|
//region block: init
|
|
704
704
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|