@doordeck/doordeck-headless-sdk 0.198.0 → 0.200.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/README.md +9 -9
- package/kotlin/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +9 -9
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.js +6980 -6979
- package/kotlin/kotlin-kotlin-stdlib.js +488 -467
- package/kotlin/kotlinx-atomicfu.js +9 -9
- package/kotlin/kotlinx-coroutines-core.js +125 -124
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +21 -21
- package/kotlin/kotlinx-io-kotlinx-io-core.js +36 -36
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +199 -198
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1245 -1244
- package/kotlin/ktor-ktor-client-auth.js +264 -264
- package/kotlin/ktor-ktor-client-content-negotiation.js +155 -155
- package/kotlin/ktor-ktor-client-core.js +2361 -2247
- package/kotlin/ktor-ktor-client-logging.js +621 -621
- package/kotlin/ktor-ktor-events.js +8 -8
- package/kotlin/ktor-ktor-http-cio.js +70 -70
- package/kotlin/ktor-ktor-http.js +118 -117
- package/kotlin/ktor-ktor-io.js +67 -67
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +128 -128
- package/kotlin/ktor-ktor-serialization.js +16 -16
- package/kotlin/ktor-ktor-utils.js +160 -139
- package/kotlin/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
-
var plus = kotlin_kotlin.$_$.
|
|
7
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
8
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.ec;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.hb;
|
|
6
|
+
var plus = kotlin_kotlin.$_$.w7;
|
|
7
|
+
var toMutableSet = kotlin_kotlin.$_$.s8;
|
|
8
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
9
9
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
10
10
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
11
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
+
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
12
12
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
13
|
-
var VOID = kotlin_kotlin.$_$.
|
|
14
|
-
var Exception = kotlin_kotlin.$_$.
|
|
15
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
17
|
-
var toString = kotlin_kotlin.$_$.
|
|
13
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
14
|
+
var Exception = kotlin_kotlin.$_$.xf;
|
|
15
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.i2;
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.qa;
|
|
17
|
+
var toString = kotlin_kotlin.$_$.hc;
|
|
18
18
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
19
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
20
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
19
|
+
var CoroutineImpl = kotlin_kotlin.$_$.q9;
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.eg;
|
|
21
21
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
22
22
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
23
23
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.p;
|
|
24
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
25
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
24
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.a9;
|
|
25
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.mb;
|
|
26
26
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
27
27
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
28
28
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.n1;
|
|
29
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
+
var isInterface = kotlin_kotlin.$_$.wb;
|
|
30
30
|
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
31
31
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
32
32
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
33
|
-
var Collection = kotlin_kotlin.$_$.
|
|
34
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
33
|
+
var Collection = kotlin_kotlin.$_$.h5;
|
|
34
|
+
var emptyList = kotlin_kotlin.$_$.v6;
|
|
35
35
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
36
36
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.f1;
|
|
37
37
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
38
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
38
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.vc;
|
|
39
39
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
40
40
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
41
|
-
var Unit = kotlin_kotlin.$_$.
|
|
41
|
+
var Unit = kotlin_kotlin.$_$.pg;
|
|
42
42
|
var charset = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
43
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
43
|
+
var ensureNotNull = kotlin_kotlin.$_$.wg;
|
|
44
44
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
45
|
-
var equals = kotlin_kotlin.$_$.
|
|
46
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
48
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
49
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
45
|
+
var equals = kotlin_kotlin.$_$.za;
|
|
46
|
+
var joinToString = kotlin_kotlin.$_$.l7;
|
|
47
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.jb;
|
|
48
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.a6;
|
|
49
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
|
|
50
50
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
51
51
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
52
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
52
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.o;
|
|
53
53
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
54
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
54
|
+
var getKClass = kotlin_kotlin.$_$.wc;
|
|
55
55
|
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
56
56
|
var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
57
|
-
var setOf = kotlin_kotlin.$_$.
|
|
58
|
-
var KtList = kotlin_kotlin.$_$.
|
|
57
|
+
var setOf = kotlin_kotlin.$_$.e8;
|
|
58
|
+
var KtList = kotlin_kotlin.$_$.m5;
|
|
59
59
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.z;
|
|
60
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
61
|
-
var createKType = kotlin_kotlin.$_$.
|
|
62
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
60
|
+
var arrayOf = kotlin_kotlin.$_$.sg;
|
|
61
|
+
var createKType = kotlin_kotlin.$_$.uc;
|
|
62
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.sc;
|
|
63
63
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.r;
|
|
64
64
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
65
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
66
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
67
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
65
|
+
var endsWith = kotlin_kotlin.$_$.od;
|
|
66
|
+
var initMetadataForObject = kotlin_kotlin.$_$.nb;
|
|
67
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
68
68
|
//endregion
|
|
69
69
|
//region block: pre-declaration
|
|
70
70
|
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
@@ -98,35 +98,35 @@
|
|
|
98
98
|
}
|
|
99
99
|
var ContentNegotiation;
|
|
100
100
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
101
|
+
this.o5m_1 = converter;
|
|
102
|
+
this.p5m_1 = contentTypeToSend;
|
|
103
|
+
this.q5m_1 = contentTypeMatcher;
|
|
104
104
|
}
|
|
105
105
|
function defaultMatcher($this, pattern) {
|
|
106
106
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
107
107
|
}
|
|
108
108
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
109
|
-
this.
|
|
109
|
+
this.r5m_1 = $pattern;
|
|
110
110
|
}
|
|
111
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
112
|
-
return contentType.p2v(this.
|
|
111
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).s5m = function (contentType) {
|
|
112
|
+
return contentType.p2v(this.r5m_1);
|
|
113
113
|
};
|
|
114
114
|
function ContentNegotiationConfig() {
|
|
115
|
-
this.
|
|
115
|
+
this.t5m_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
116
116
|
var tmp = this;
|
|
117
117
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
118
|
-
tmp.
|
|
119
|
-
this.
|
|
118
|
+
tmp.u5m_1 = ArrayList_init_$Create$();
|
|
119
|
+
this.v5m_1 = null;
|
|
120
120
|
}
|
|
121
121
|
protoOf(ContentNegotiationConfig).t3l = function (contentType, converter, configuration) {
|
|
122
122
|
var matcher = contentType.p2v(Application_getInstance().v2t_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
123
|
-
this.
|
|
123
|
+
this.w5m(contentType, converter, matcher, configuration);
|
|
124
124
|
};
|
|
125
|
-
protoOf(ContentNegotiationConfig).
|
|
125
|
+
protoOf(ContentNegotiationConfig).w5m = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
126
126
|
// Inline function 'kotlin.apply' call
|
|
127
127
|
configuration(converter);
|
|
128
128
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
129
|
-
this.
|
|
129
|
+
this.u5m_1.j1(registration);
|
|
130
130
|
};
|
|
131
131
|
function ContentConverterException(message) {
|
|
132
132
|
Exception_init_$Init$(message, this);
|
|
@@ -141,15 +141,15 @@
|
|
|
141
141
|
}
|
|
142
142
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
143
143
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
144
|
-
var registrations = $this$createClientPlugin.
|
|
145
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
146
|
-
$this$createClientPlugin.
|
|
147
|
-
$this$createClientPlugin.
|
|
144
|
+
var registrations = $this$createClientPlugin.x3x_1.u5m_1;
|
|
145
|
+
var ignoredTypes = $this$createClientPlugin.x3x_1.t5m_1;
|
|
146
|
+
$this$createClientPlugin.r4i(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
147
|
+
$this$createClientPlugin.d47(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
148
148
|
return Unit_instance;
|
|
149
149
|
}
|
|
150
150
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
151
151
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
152
|
-
return toString(it.
|
|
152
|
+
return toString(it.o5m_1);
|
|
153
153
|
}
|
|
154
154
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
155
155
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
@@ -165,22 +165,22 @@
|
|
|
165
165
|
return tmp.i9();
|
|
166
166
|
}
|
|
167
167
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
168
|
+
this.o5o_1 = $registrations;
|
|
169
|
+
this.p5o_1 = $this_createClientPlugin;
|
|
170
|
+
this.q5o_1 = $ignoredTypes;
|
|
171
171
|
CoroutineImpl.call(this, resultContinuation);
|
|
172
172
|
}
|
|
173
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
174
|
-
var tmp = this.
|
|
173
|
+
protoOf(ContentNegotiation$lambda$slambda).v5o = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
174
|
+
var tmp = this.w5o($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
175
175
|
tmp.c9_1 = Unit_instance;
|
|
176
176
|
tmp.d9_1 = null;
|
|
177
177
|
return tmp.i9();
|
|
178
178
|
};
|
|
179
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
179
|
+
protoOf(ContentNegotiation$lambda$slambda).i48 = function (p1, p2, p3, p4, $completion) {
|
|
180
180
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
181
181
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
182
182
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
183
|
-
return this.
|
|
183
|
+
return this.v5o(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
184
184
|
};
|
|
185
185
|
protoOf(ContentNegotiation$lambda$slambda).i9 = function () {
|
|
186
186
|
var suspendResult = this.c9_1;
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
case 0:
|
|
192
192
|
this.b9_1 = 2;
|
|
193
193
|
this.a9_1 = 1;
|
|
194
|
-
suspendResult = invoke$convertRequest(this.
|
|
194
|
+
suspendResult = invoke$convertRequest(this.o5o_1, this.p5o_1, this.q5o_1, this.s5o_1, this.t5o_1, this);
|
|
195
195
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
196
196
|
return suspendResult;
|
|
197
197
|
}
|
|
@@ -213,39 +213,39 @@
|
|
|
213
213
|
}
|
|
214
214
|
while (true);
|
|
215
215
|
};
|
|
216
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
217
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
218
|
-
i.
|
|
219
|
-
i.
|
|
220
|
-
i.
|
|
221
|
-
i.
|
|
216
|
+
protoOf(ContentNegotiation$lambda$slambda).w5o = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
217
|
+
var i = new ContentNegotiation$lambda$slambda(this.o5o_1, this.p5o_1, this.q5o_1, completion);
|
|
218
|
+
i.r5o_1 = $this$transformRequestBody;
|
|
219
|
+
i.s5o_1 = request;
|
|
220
|
+
i.t5o_1 = body;
|
|
221
|
+
i.u5o_1 = _unused_var__etf5q3;
|
|
222
222
|
return i;
|
|
223
223
|
};
|
|
224
224
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
225
225
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
226
226
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
227
|
-
return i.
|
|
227
|
+
return i.v5o($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
228
228
|
};
|
|
229
229
|
l.$arity = 4;
|
|
230
230
|
return l;
|
|
231
231
|
}
|
|
232
232
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
233
|
+
this.f5p_1 = $ignoredTypes;
|
|
234
|
+
this.g5p_1 = $registrations;
|
|
235
|
+
this.h5p_1 = $this_createClientPlugin;
|
|
236
236
|
CoroutineImpl.call(this, resultContinuation);
|
|
237
237
|
}
|
|
238
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
239
|
-
var tmp = this.
|
|
238
|
+
protoOf(ContentNegotiation$lambda$slambda_1).g48 = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
239
|
+
var tmp = this.h48($this$transformResponseBody, response, body, info, $completion);
|
|
240
240
|
tmp.c9_1 = Unit_instance;
|
|
241
241
|
tmp.d9_1 = null;
|
|
242
242
|
return tmp.i9();
|
|
243
243
|
};
|
|
244
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
244
|
+
protoOf(ContentNegotiation$lambda$slambda_1).i48 = function (p1, p2, p3, p4, $completion) {
|
|
245
245
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
246
246
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
247
247
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
248
|
-
return this.
|
|
248
|
+
return this.g48(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
249
249
|
};
|
|
250
250
|
protoOf(ContentNegotiation$lambda$slambda_1).i9 = function () {
|
|
251
251
|
var suspendResult = this.c9_1;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
switch (tmp) {
|
|
256
256
|
case 0:
|
|
257
257
|
this.b9_1 = 2;
|
|
258
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
258
|
+
var tmp0_elvis_lhs = contentType(this.j5p_1);
|
|
259
259
|
var tmp_0;
|
|
260
260
|
if (tmp0_elvis_lhs == null) {
|
|
261
261
|
return null;
|
|
@@ -264,9 +264,9 @@
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
var contentType_0 = tmp_0;
|
|
267
|
-
var charset = suitableCharset(get_request(this.
|
|
267
|
+
var charset = suitableCharset(get_request(this.j5p_1).z2z());
|
|
268
268
|
this.a9_1 = 1;
|
|
269
|
-
suspendResult = invoke$convertResponse(this.
|
|
269
|
+
suspendResult = invoke$convertResponse(this.f5p_1, this.g5p_1, this.h5p_1, get_request(this.j5p_1).o3r(), this.l5p_1, this.k5p_1, contentType_0, charset, this);
|
|
270
270
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
271
271
|
return suspendResult;
|
|
272
272
|
}
|
|
@@ -288,29 +288,29 @@
|
|
|
288
288
|
}
|
|
289
289
|
while (true);
|
|
290
290
|
};
|
|
291
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
292
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
293
|
-
i.
|
|
294
|
-
i.
|
|
295
|
-
i.
|
|
296
|
-
i.
|
|
291
|
+
protoOf(ContentNegotiation$lambda$slambda_1).h48 = function ($this$transformResponseBody, response, body, info, completion) {
|
|
292
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.f5p_1, this.g5p_1, this.h5p_1, completion);
|
|
293
|
+
i.i5p_1 = $this$transformResponseBody;
|
|
294
|
+
i.j5p_1 = response;
|
|
295
|
+
i.k5p_1 = body;
|
|
296
|
+
i.l5p_1 = info;
|
|
297
297
|
return i;
|
|
298
298
|
};
|
|
299
299
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
300
300
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
301
301
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
302
|
-
return i.
|
|
302
|
+
return i.g48($this$transformResponseBody, response, body, info, $completion);
|
|
303
303
|
};
|
|
304
304
|
l.$arity = 4;
|
|
305
305
|
return l;
|
|
306
306
|
}
|
|
307
307
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
308
308
|
CoroutineImpl.call(this, resultContinuation);
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
309
|
+
this.f5n_1 = registrations;
|
|
310
|
+
this.g5n_1 = $this_createClientPlugin;
|
|
311
|
+
this.h5n_1 = ignoredTypes;
|
|
312
|
+
this.i5n_1 = request;
|
|
313
|
+
this.j5n_1 = body;
|
|
314
314
|
}
|
|
315
315
|
protoOf($invoke$convertRequestCOROUTINE$).i9 = function () {
|
|
316
316
|
var suspendResult = this.c9_1;
|
|
@@ -321,9 +321,9 @@
|
|
|
321
321
|
case 0:
|
|
322
322
|
this.b9_1 = 7;
|
|
323
323
|
var tmp_0;
|
|
324
|
-
if (this.
|
|
325
|
-
var excluded = this.
|
|
326
|
-
var tmp0 = this.
|
|
324
|
+
if (this.i5n_1.c3q_1.s2j(get_ExcludedContentTypes())) {
|
|
325
|
+
var excluded = this.i5n_1.c3q_1.q2j(get_ExcludedContentTypes());
|
|
326
|
+
var tmp0 = this.f5n_1;
|
|
327
327
|
var destination = ArrayList_init_$Create$();
|
|
328
328
|
var _iterator__ex2g4s = tmp0.t();
|
|
329
329
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
var _iterator__ex2g4s_0 = excluded.t();
|
|
344
344
|
while (_iterator__ex2g4s_0.u()) {
|
|
345
345
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
346
|
-
if (element.
|
|
346
|
+
if (element.p5m_1.p2v(element_0)) {
|
|
347
347
|
tmp$ret$0 = false;
|
|
348
348
|
break l$ret$1;
|
|
349
349
|
}
|
|
@@ -357,11 +357,11 @@
|
|
|
357
357
|
}
|
|
358
358
|
tmp_0 = destination;
|
|
359
359
|
} else {
|
|
360
|
-
tmp_0 = this.
|
|
360
|
+
tmp_0 = this.f5n_1;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
var requestRegistrations = tmp_0;
|
|
364
|
-
var tmp0_elvis_lhs = this.
|
|
364
|
+
var tmp0_elvis_lhs = this.i5n_1.z3p_1.h2o('Accept');
|
|
365
365
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
366
366
|
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
367
367
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
382
382
|
while (_iterator__ex2g4s_2.u()) {
|
|
383
383
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
384
|
-
if (Companion_getInstance().um(element_2).p2v(element_1.
|
|
384
|
+
if (Companion_getInstance().um(element_2).p2v(element_1.p5m_1)) {
|
|
385
385
|
tmp$ret$2 = false;
|
|
386
386
|
break l$ret$3;
|
|
387
387
|
}
|
|
@@ -390,19 +390,19 @@
|
|
|
390
390
|
}
|
|
391
391
|
while (false);
|
|
392
392
|
if (tmp$ret$2) {
|
|
393
|
-
var qValue = this.
|
|
394
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
395
|
-
get_LOGGER().d2t('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.
|
|
396
|
-
accept(this.
|
|
393
|
+
var qValue = this.g5n_1.x3x_1.v5m_1;
|
|
394
|
+
var contentTypeToSend = qValue == null ? element_1.p5m_1 : element_1.p5m_1.n2v('q', qValue.toString());
|
|
395
|
+
get_LOGGER().d2t('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.i5n_1.x3p_1.toString());
|
|
396
|
+
accept(this.i5n_1, contentTypeToSend);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
var tmp_3;
|
|
401
|
-
var tmp_4 = this.
|
|
401
|
+
var tmp_4 = this.j5n_1;
|
|
402
402
|
if (tmp_4 instanceof OutgoingContent) {
|
|
403
403
|
tmp_3 = true;
|
|
404
404
|
} else {
|
|
405
|
-
var tmp0_0 = this.
|
|
405
|
+
var tmp0_0 = this.h5n_1;
|
|
406
406
|
var tmp$ret$4;
|
|
407
407
|
l$ret$5: do {
|
|
408
408
|
var tmp_5;
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
419
419
|
while (_iterator__ex2g4s_3.u()) {
|
|
420
420
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
421
|
-
if (element_3.bb(this.
|
|
421
|
+
if (element_3.bb(this.j5n_1)) {
|
|
422
422
|
tmp$ret$4 = true;
|
|
423
423
|
break l$ret$5;
|
|
424
424
|
}
|
|
@@ -430,36 +430,36 @@
|
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
if (tmp_3) {
|
|
433
|
-
get_LOGGER().d2t('Body type ' + toString(getKClassFromExpression(this.
|
|
433
|
+
get_LOGGER().d2t('Body type ' + toString(getKClassFromExpression(this.j5n_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.i5n_1.x3p_1.toString() + '.'));
|
|
434
434
|
return null;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
var tmp_6 = this;
|
|
438
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
438
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.i5n_1);
|
|
439
439
|
var tmp_7;
|
|
440
440
|
if (tmp0_elvis_lhs_0 == null) {
|
|
441
|
-
this.
|
|
442
|
-
get_LOGGER().d2t("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.
|
|
441
|
+
this.g5n_1;
|
|
442
|
+
get_LOGGER().d2t("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.i5n_1.x3p_1.toString() + '.');
|
|
443
443
|
return null;
|
|
444
444
|
} else {
|
|
445
445
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
tmp_6.
|
|
449
|
-
var tmp_8 = this.
|
|
448
|
+
tmp_6.l5n_1 = tmp_7;
|
|
449
|
+
var tmp_8 = this.j5n_1;
|
|
450
450
|
if (tmp_8 instanceof Unit) {
|
|
451
|
-
get_LOGGER().d2t('Sending empty body for ' + this.
|
|
452
|
-
this.
|
|
451
|
+
get_LOGGER().d2t('Sending empty body for ' + this.i5n_1.x3p_1.toString());
|
|
452
|
+
this.i5n_1.z3p_1.r2o('Content-Type');
|
|
453
453
|
return EmptyContent_getInstance();
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
var tmp_9 = this;
|
|
457
|
-
var tmp0_1 = this.
|
|
457
|
+
var tmp0_1 = this.f5n_1;
|
|
458
458
|
var destination_0 = ArrayList_init_$Create$();
|
|
459
459
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
460
460
|
while (_iterator__ex2g4s_4.u()) {
|
|
461
461
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
462
|
-
if (element_4.
|
|
462
|
+
if (element_4.q5m_1.s5m(this.l5n_1)) {
|
|
463
463
|
destination_0.j1(element_4);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
@@ -474,40 +474,40 @@
|
|
|
474
474
|
var tmp1_elvis_lhs = tmp_10;
|
|
475
475
|
var tmp_11;
|
|
476
476
|
if (tmp1_elvis_lhs == null) {
|
|
477
|
-
this.
|
|
478
|
-
get_LOGGER().d2t('None of the registered converters match request Content-Type=' + this.
|
|
477
|
+
this.g5n_1;
|
|
478
|
+
get_LOGGER().d2t('None of the registered converters match request Content-Type=' + this.l5n_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.i5n_1.x3p_1.toString() + '.'));
|
|
479
479
|
return null;
|
|
480
480
|
} else {
|
|
481
481
|
tmp_11 = tmp1_elvis_lhs;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
tmp_9.
|
|
485
|
-
if (this.
|
|
486
|
-
get_LOGGER().d2t('Request has unknown body type. Skipping ContentNegotiation for ' + this.
|
|
484
|
+
tmp_9.k5n_1 = tmp_11;
|
|
485
|
+
if (this.i5n_1.z4k() == null) {
|
|
486
|
+
get_LOGGER().d2t('Request has unknown body type. Skipping ContentNegotiation for ' + this.i5n_1.x3p_1.toString() + '.');
|
|
487
487
|
return null;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
490
|
+
this.i5n_1.z3p_1.r2o('Content-Type');
|
|
491
|
+
this.p5n_1 = this.k5n_1;
|
|
492
492
|
this.a9_1 = 1;
|
|
493
493
|
continue $sm;
|
|
494
494
|
case 1:
|
|
495
|
-
this.
|
|
495
|
+
this.o5n_1 = this.p5n_1.t();
|
|
496
496
|
this.a9_1 = 2;
|
|
497
497
|
continue $sm;
|
|
498
498
|
case 2:
|
|
499
|
-
if (!this.
|
|
499
|
+
if (!this.o5n_1.u()) {
|
|
500
500
|
this.a9_1 = 5;
|
|
501
501
|
continue $sm;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
var element_5 = this.
|
|
505
|
-
this.
|
|
504
|
+
var element_5 = this.o5n_1.v();
|
|
505
|
+
this.n5n_1 = element_5;
|
|
506
506
|
this.a9_1 = 3;
|
|
507
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
507
|
+
var tmp0_elvis_lhs_1 = charset(this.l5n_1);
|
|
508
508
|
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().t1x_1 : tmp0_elvis_lhs_1;
|
|
509
|
-
var tmp_13 = ensureNotNull(this.
|
|
510
|
-
var this_0 = this.
|
|
509
|
+
var tmp_13 = ensureNotNull(this.i5n_1.z4k());
|
|
510
|
+
var this_0 = this.j5n_1;
|
|
511
511
|
var tmp_14;
|
|
512
512
|
if (!equals(this_0, NullBody_instance)) {
|
|
513
513
|
tmp_14 = this_0;
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
tmp_14 = null;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
suspendResult = this.
|
|
518
|
+
suspendResult = this.n5n_1.o5m_1.m5p(this.l5n_1, tmp_12, tmp_13, tmp_14, this);
|
|
519
519
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
520
520
|
return suspendResult;
|
|
521
521
|
}
|
|
@@ -524,12 +524,12 @@
|
|
|
524
524
|
case 3:
|
|
525
525
|
var result = suspendResult;
|
|
526
526
|
if (!(result == null)) {
|
|
527
|
-
get_LOGGER().d2t('Converted request body using ' + toString(this.
|
|
527
|
+
get_LOGGER().d2t('Converted request body using ' + toString(this.n5n_1.o5m_1) + ' for ' + this.i5n_1.x3p_1.toString());
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
var result_0 = result;
|
|
531
531
|
if (!(result_0 == null)) {
|
|
532
|
-
this.
|
|
532
|
+
this.m5n_1 = result_0;
|
|
533
533
|
this.a9_1 = 6;
|
|
534
534
|
continue $sm;
|
|
535
535
|
} else {
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
this.a9_1 = 2;
|
|
542
542
|
continue $sm;
|
|
543
543
|
case 5:
|
|
544
|
-
this.
|
|
544
|
+
this.m5n_1 = null;
|
|
545
545
|
if (false) {
|
|
546
546
|
this.a9_1 = 1;
|
|
547
547
|
continue $sm;
|
|
@@ -550,11 +550,11 @@
|
|
|
550
550
|
this.a9_1 = 6;
|
|
551
551
|
continue $sm;
|
|
552
552
|
case 6:
|
|
553
|
-
var tmp2_elvis_lhs = this.
|
|
553
|
+
var tmp2_elvis_lhs = this.m5n_1;
|
|
554
554
|
var tmp_15;
|
|
555
555
|
if (tmp2_elvis_lhs == null) {
|
|
556
|
-
var tmp_16 = "Can't convert " + toString(this.
|
|
557
|
-
throw new ContentConverterException(tmp_16 + joinToString(this.
|
|
556
|
+
var tmp_16 = "Can't convert " + toString(this.j5n_1) + ' with contentType ' + this.l5n_1.toString() + ' using converters ';
|
|
557
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.k5n_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
558
558
|
} else {
|
|
559
559
|
tmp_15 = tmp2_elvis_lhs;
|
|
560
560
|
}
|
|
@@ -577,14 +577,14 @@
|
|
|
577
577
|
};
|
|
578
578
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
579
579
|
CoroutineImpl.call(this, resultContinuation);
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
580
|
+
this.y5n_1 = ignoredTypes;
|
|
581
|
+
this.z5n_1 = registrations;
|
|
582
|
+
this.a5o_1 = $this_createClientPlugin;
|
|
583
|
+
this.b5o_1 = requestUrl;
|
|
584
|
+
this.c5o_1 = info;
|
|
585
|
+
this.d5o_1 = body;
|
|
586
|
+
this.e5o_1 = responseContentType;
|
|
587
|
+
this.f5o_1 = charset;
|
|
588
588
|
}
|
|
589
589
|
protoOf($invoke$convertResponseCOROUTINE$).i9 = function () {
|
|
590
590
|
var suspendResult = this.c9_1;
|
|
@@ -594,23 +594,23 @@
|
|
|
594
594
|
switch (tmp) {
|
|
595
595
|
case 0:
|
|
596
596
|
this.b9_1 = 2;
|
|
597
|
-
var tmp_0 = this.
|
|
597
|
+
var tmp_0 = this.d5o_1;
|
|
598
598
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
599
|
-
get_LOGGER().d2t('Response body is already transformed. Skipping ContentNegotiation for ' + this.
|
|
599
|
+
get_LOGGER().d2t('Response body is already transformed. Skipping ContentNegotiation for ' + this.b5o_1.toString() + '.');
|
|
600
600
|
return null;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
if (this.
|
|
604
|
-
get_LOGGER().d2t('Response body type ' + toString(this.
|
|
603
|
+
if (this.y5n_1.n2(this.c5o_1.m2s_1)) {
|
|
604
|
+
get_LOGGER().d2t('Response body type ' + toString(this.c5o_1.m2s_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.b5o_1.toString() + '.'));
|
|
605
605
|
return null;
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
var tmp0 = this.
|
|
608
|
+
var tmp0 = this.z5n_1;
|
|
609
609
|
var destination = ArrayList_init_$Create$();
|
|
610
610
|
var _iterator__ex2g4s = tmp0.t();
|
|
611
611
|
while (_iterator__ex2g4s.u()) {
|
|
612
612
|
var element = _iterator__ex2g4s.v();
|
|
613
|
-
if (element.
|
|
613
|
+
if (element.q5m_1.s5m(this.e5o_1)) {
|
|
614
614
|
destination.j1(element);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
var _iterator__ex2g4s_0 = destination.t();
|
|
620
620
|
while (_iterator__ex2g4s_0.u()) {
|
|
621
621
|
var item = _iterator__ex2g4s_0.v();
|
|
622
|
-
destination_0.j1(item.
|
|
622
|
+
destination_0.j1(item.o5m_1);
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
var tmp_1;
|
|
@@ -632,8 +632,8 @@
|
|
|
632
632
|
var tmp0_elvis_lhs = tmp_1;
|
|
633
633
|
var tmp_2;
|
|
634
634
|
if (tmp0_elvis_lhs == null) {
|
|
635
|
-
this.
|
|
636
|
-
get_LOGGER().d2t('None of the registered converters match response with Content-Type=' + this.
|
|
635
|
+
this.a5o_1;
|
|
636
|
+
get_LOGGER().d2t('None of the registered converters match response with Content-Type=' + this.e5o_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.b5o_1.toString() + '.'));
|
|
637
637
|
return null;
|
|
638
638
|
} else {
|
|
639
639
|
tmp_2 = tmp0_elvis_lhs;
|
|
@@ -641,7 +641,7 @@
|
|
|
641
641
|
|
|
642
642
|
var suitableConverters = tmp_2;
|
|
643
643
|
this.a9_1 = 1;
|
|
644
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
644
|
+
suspendResult = deserialize(suitableConverters, this.d5o_1, this.c5o_1, this.f5o_1, this);
|
|
645
645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
646
646
|
return suspendResult;
|
|
647
647
|
}
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
case 1:
|
|
651
651
|
var result = suspendResult;
|
|
652
652
|
if (!isInterface(result, ByteReadChannel)) {
|
|
653
|
-
get_LOGGER().d2t('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.
|
|
653
|
+
get_LOGGER().d2t('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.b5o_1.toString() + '.');
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
return result;
|
|
@@ -701,7 +701,7 @@
|
|
|
701
701
|
}
|
|
702
702
|
function JsonContentTypeMatcher() {
|
|
703
703
|
}
|
|
704
|
-
protoOf(JsonContentTypeMatcher).
|
|
704
|
+
protoOf(JsonContentTypeMatcher).s5m = function (contentType) {
|
|
705
705
|
if (contentType.p2v(Application_getInstance().v2t_1)) {
|
|
706
706
|
return true;
|
|
707
707
|
}
|