@doordeck/doordeck-headless-sdk 0.44.0 → 0.46.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 +1395 -1465
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +19 -21
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -8
- package/kotlin/Stately-stately-concurrency.js +6 -8
- package/kotlin/Stately-stately-concurrent-collections.js +53 -55
- package/kotlin/Stately-stately-strict.js +0 -2
- package/kotlin/doordeck-sdk.js +11754 -11221
- package/kotlin/kotlin-kotlin-stdlib.js +1938 -1924
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -2
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -2
- package/kotlin/kotlinx-atomicfu.js +13 -15
- package/kotlin/kotlinx-coroutines-core.js +2055 -2093
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +0 -2
- package/kotlin/kotlinx-io-kotlinx-io-core.js +559 -550
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1849 -1872
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1523 -1523
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2832 -2843
- package/kotlin/ktor-ktor-client-ktor-client-js.js +0 -2
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +388 -391
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +198 -199
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js +0 -2
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +0 -2
- package/kotlin/ktor-ktor-http.js +833 -860
- package/kotlin/ktor-ktor-io.js +641 -653
- package/kotlin/ktor-ktor-shared-ktor-events.js +7 -10
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -9
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +266 -263
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +113 -111
- package/kotlin/ktor-ktor-shared-ktor-sse.js +0 -2
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js +0 -2
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +46 -46
- package/kotlin/ktor-ktor-utils.js +590 -606
- package/kotlin/projects-core-koin-core.js +299 -316
- package/package.json +4 -3
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +0 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js.map +0 -1
- package/kotlin/Stately-stately-concurrency.js.map +0 -1
- package/kotlin/Stately-stately-concurrent-collections.js.map +0 -1
- package/kotlin/Stately-stately-strict.js.map +0 -1
- package/kotlin/doordeck-sdk.js.map +0 -1
- package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +0 -1
- package/kotlin/kotlinx-atomicfu.js.map +0 -1
- package/kotlin/kotlinx-coroutines-core.js.map +0 -1
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-core.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-js.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js.map +0 -1
- package/kotlin/ktor-ktor-http.js.map +0 -1
- package/kotlin/ktor-ktor-io.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-events.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-sse.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +0 -1
- package/kotlin/ktor-ktor-utils.js.map +0 -1
- package/kotlin/projects-core-koin-core.js.map +0 -1
|
@@ -85,35 +85,34 @@
|
|
|
85
85
|
}
|
|
86
86
|
var ContentNegotiation;
|
|
87
87
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
88
|
+
this.i48_1 = converter;
|
|
89
|
+
this.j48_1 = contentTypeToSend;
|
|
90
|
+
this.k48_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.l48_1 = $pattern;
|
|
97
97
|
}
|
|
98
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
99
|
-
return contentType.
|
|
98
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).m48 = function (contentType) {
|
|
99
|
+
return contentType.p2f(this.l48_1);
|
|
100
100
|
};
|
|
101
101
|
function ContentNegotiationConfig() {
|
|
102
|
-
this.
|
|
102
|
+
this.n48_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
103
103
|
var tmp = this;
|
|
104
104
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
105
|
-
tmp.
|
|
105
|
+
tmp.o48_1 = ArrayList_init_$Create$();
|
|
106
106
|
}
|
|
107
|
-
protoOf(ContentNegotiationConfig).
|
|
108
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
109
|
-
this.
|
|
107
|
+
protoOf(ContentNegotiationConfig).w2r = function (contentType, converter, configuration) {
|
|
108
|
+
var matcher = contentType.equals(Application_getInstance().h2e_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
109
|
+
this.p48(contentType, converter, matcher, configuration);
|
|
110
110
|
};
|
|
111
|
-
protoOf(ContentNegotiationConfig).
|
|
111
|
+
protoOf(ContentNegotiationConfig).p48 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
112
112
|
// Inline function 'kotlin.apply' call
|
|
113
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
114
113
|
configuration(converter);
|
|
115
114
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
116
|
-
this.
|
|
115
|
+
this.o48_1.k(registration);
|
|
117
116
|
};
|
|
118
117
|
function ContentConverterException(message) {
|
|
119
118
|
Exception_init_$Init$(message, this);
|
|
@@ -128,53 +127,53 @@
|
|
|
128
127
|
}
|
|
129
128
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
130
129
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
131
|
-
var registrations = $this$createClientPlugin.
|
|
132
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
133
|
-
$this$createClientPlugin.
|
|
134
|
-
$this$createClientPlugin.
|
|
130
|
+
var registrations = $this$createClientPlugin.q34_1.o48_1;
|
|
131
|
+
var ignoredTypes = $this$createClientPlugin.q34_1.n48_1;
|
|
132
|
+
$this$createClientPlugin.o3n(ContentNegotiation$lambda$slambda_0(registrations, ignoredTypes, $this$createClientPlugin, null));
|
|
133
|
+
$this$createClientPlugin.t3f(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
135
134
|
return Unit_instance;
|
|
136
135
|
}
|
|
137
136
|
function invoke$convertRequest(registrations, ignoredTypes, $this_createClientPlugin, request, body, $completion) {
|
|
138
137
|
var tmp = new $invoke$convertRequestCOROUTINE$0(registrations, ignoredTypes, $this_createClientPlugin, request, body, $completion);
|
|
139
|
-
tmp.
|
|
140
|
-
tmp.
|
|
141
|
-
return tmp.
|
|
138
|
+
tmp.g9_1 = Unit_instance;
|
|
139
|
+
tmp.h9_1 = null;
|
|
140
|
+
return tmp.m9();
|
|
142
141
|
}
|
|
143
142
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
144
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
143
|
+
charset = charset === VOID ? Charsets_getInstance().y1l_1 : charset;
|
|
145
144
|
var tmp = new $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
146
|
-
tmp.
|
|
147
|
-
tmp.
|
|
148
|
-
return tmp.
|
|
145
|
+
tmp.g9_1 = Unit_instance;
|
|
146
|
+
tmp.h9_1 = null;
|
|
147
|
+
return tmp.m9();
|
|
149
148
|
}
|
|
150
149
|
function ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
150
|
+
this.l4a_1 = $registrations;
|
|
151
|
+
this.m4a_1 = $ignoredTypes;
|
|
152
|
+
this.n4a_1 = $this_createClientPlugin;
|
|
154
153
|
CoroutineImpl.call(this, resultContinuation);
|
|
155
154
|
}
|
|
156
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
157
|
-
var tmp = this.
|
|
158
|
-
tmp.
|
|
159
|
-
tmp.
|
|
160
|
-
return tmp.
|
|
155
|
+
protoOf(ContentNegotiation$lambda$slambda).s4a = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
156
|
+
var tmp = this.t4a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
157
|
+
tmp.g9_1 = Unit_instance;
|
|
158
|
+
tmp.h9_1 = null;
|
|
159
|
+
return tmp.m9();
|
|
161
160
|
};
|
|
162
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
161
|
+
protoOf(ContentNegotiation$lambda$slambda).y3g = function (p1, p2, p3, p4, $completion) {
|
|
163
162
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
164
163
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
165
164
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
166
|
-
return this.
|
|
165
|
+
return this.s4a(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
167
166
|
};
|
|
168
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
169
|
-
var suspendResult = this.
|
|
167
|
+
protoOf(ContentNegotiation$lambda$slambda).m9 = function () {
|
|
168
|
+
var suspendResult = this.g9_1;
|
|
170
169
|
$sm: do
|
|
171
170
|
try {
|
|
172
|
-
var tmp = this.
|
|
171
|
+
var tmp = this.e9_1;
|
|
173
172
|
switch (tmp) {
|
|
174
173
|
case 0:
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
suspendResult = invoke$convertRequest(this.
|
|
174
|
+
this.f9_1 = 2;
|
|
175
|
+
this.e9_1 = 1;
|
|
176
|
+
suspendResult = invoke$convertRequest(this.l4a_1, this.m4a_1, this.n4a_1, this.p4a_1, this.q4a_1, this);
|
|
178
177
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
179
178
|
return suspendResult;
|
|
180
179
|
}
|
|
@@ -183,63 +182,63 @@
|
|
|
183
182
|
case 1:
|
|
184
183
|
return suspendResult;
|
|
185
184
|
case 2:
|
|
186
|
-
throw this.
|
|
185
|
+
throw this.h9_1;
|
|
187
186
|
}
|
|
188
187
|
} catch ($p) {
|
|
189
188
|
var e = $p;
|
|
190
|
-
if (this.
|
|
189
|
+
if (this.f9_1 === 2) {
|
|
191
190
|
throw e;
|
|
192
191
|
} else {
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
192
|
+
this.e9_1 = this.f9_1;
|
|
193
|
+
this.h9_1 = e;
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
while (true);
|
|
198
197
|
};
|
|
199
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
200
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
201
|
-
i.
|
|
202
|
-
i.
|
|
203
|
-
i.
|
|
204
|
-
i.
|
|
198
|
+
protoOf(ContentNegotiation$lambda$slambda).t4a = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
199
|
+
var i = new ContentNegotiation$lambda$slambda(this.l4a_1, this.m4a_1, this.n4a_1, completion);
|
|
200
|
+
i.o4a_1 = $this$transformRequestBody;
|
|
201
|
+
i.p4a_1 = request;
|
|
202
|
+
i.q4a_1 = body;
|
|
203
|
+
i.r4a_1 = _unused_var__etf5q3;
|
|
205
204
|
return i;
|
|
206
205
|
};
|
|
207
206
|
function ContentNegotiation$lambda$slambda_0($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
|
|
208
207
|
var i = new ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation);
|
|
209
208
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
210
|
-
return i.
|
|
209
|
+
return i.s4a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
211
210
|
};
|
|
212
211
|
l.$arity = 4;
|
|
213
212
|
return l;
|
|
214
213
|
}
|
|
215
214
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
215
|
+
this.c4b_1 = $ignoredTypes;
|
|
216
|
+
this.d4b_1 = $registrations;
|
|
217
|
+
this.e4b_1 = $this_createClientPlugin;
|
|
219
218
|
CoroutineImpl.call(this, resultContinuation);
|
|
220
219
|
}
|
|
221
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
222
|
-
var tmp = this.
|
|
223
|
-
tmp.
|
|
224
|
-
tmp.
|
|
225
|
-
return tmp.
|
|
220
|
+
protoOf(ContentNegotiation$lambda$slambda_1).w3g = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
221
|
+
var tmp = this.x3g($this$transformResponseBody, response, body, info, $completion);
|
|
222
|
+
tmp.g9_1 = Unit_instance;
|
|
223
|
+
tmp.h9_1 = null;
|
|
224
|
+
return tmp.m9();
|
|
226
225
|
};
|
|
227
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
226
|
+
protoOf(ContentNegotiation$lambda$slambda_1).y3g = function (p1, p2, p3, p4, $completion) {
|
|
228
227
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
229
228
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
230
229
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
231
|
-
return this.
|
|
230
|
+
return this.w3g(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
232
231
|
};
|
|
233
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
234
|
-
var suspendResult = this.
|
|
232
|
+
protoOf(ContentNegotiation$lambda$slambda_1).m9 = function () {
|
|
233
|
+
var suspendResult = this.g9_1;
|
|
235
234
|
$sm: do
|
|
236
235
|
try {
|
|
237
|
-
var tmp = this.
|
|
236
|
+
var tmp = this.e9_1;
|
|
238
237
|
switch (tmp) {
|
|
239
238
|
case 0:
|
|
240
|
-
this.
|
|
239
|
+
this.f9_1 = 2;
|
|
241
240
|
var tmp_0 = this;
|
|
242
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
241
|
+
var tmp0_elvis_lhs = contentType(this.g4b_1);
|
|
243
242
|
var tmp_1;
|
|
244
243
|
if (tmp0_elvis_lhs == null) {
|
|
245
244
|
return null;
|
|
@@ -247,10 +246,10 @@
|
|
|
247
246
|
tmp_1 = tmp0_elvis_lhs;
|
|
248
247
|
}
|
|
249
248
|
|
|
250
|
-
tmp_0.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
253
|
-
suspendResult = invoke$convertResponse(this.
|
|
249
|
+
tmp_0.j4b_1 = tmp_1;
|
|
250
|
+
this.k4b_1 = suitableCharset(get_request(this.g4b_1).y2j());
|
|
251
|
+
this.e9_1 = 1;
|
|
252
|
+
suspendResult = invoke$convertResponse(this.c4b_1, this.d4b_1, this.e4b_1, get_request(this.g4b_1).q2y(), this.i4b_1, this.h4b_1, this.j4b_1, this.k4b_1, this);
|
|
254
253
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
255
254
|
return suspendResult;
|
|
256
255
|
}
|
|
@@ -259,79 +258,79 @@
|
|
|
259
258
|
case 1:
|
|
260
259
|
return suspendResult;
|
|
261
260
|
case 2:
|
|
262
|
-
throw this.
|
|
261
|
+
throw this.h9_1;
|
|
263
262
|
}
|
|
264
263
|
} catch ($p) {
|
|
265
264
|
var e = $p;
|
|
266
|
-
if (this.
|
|
265
|
+
if (this.f9_1 === 2) {
|
|
267
266
|
throw e;
|
|
268
267
|
} else {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
268
|
+
this.e9_1 = this.f9_1;
|
|
269
|
+
this.h9_1 = e;
|
|
271
270
|
}
|
|
272
271
|
}
|
|
273
272
|
while (true);
|
|
274
273
|
};
|
|
275
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
276
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
277
|
-
i.
|
|
278
|
-
i.
|
|
279
|
-
i.
|
|
280
|
-
i.
|
|
274
|
+
protoOf(ContentNegotiation$lambda$slambda_1).x3g = function ($this$transformResponseBody, response, body, info, completion) {
|
|
275
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.c4b_1, this.d4b_1, this.e4b_1, completion);
|
|
276
|
+
i.f4b_1 = $this$transformResponseBody;
|
|
277
|
+
i.g4b_1 = response;
|
|
278
|
+
i.h4b_1 = body;
|
|
279
|
+
i.i4b_1 = info;
|
|
281
280
|
return i;
|
|
282
281
|
};
|
|
283
282
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
284
283
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
285
284
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
286
|
-
return i.
|
|
285
|
+
return i.w3g($this$transformResponseBody, response, body, info, $completion);
|
|
287
286
|
};
|
|
288
287
|
l.$arity = 4;
|
|
289
288
|
return l;
|
|
290
289
|
}
|
|
291
290
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
292
291
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
293
|
-
return toString(it.
|
|
292
|
+
return toString(it.i48_1);
|
|
294
293
|
}
|
|
295
294
|
function $invoke$convertRequestCOROUTINE$0(registrations, ignoredTypes, $this_createClientPlugin, request, body, resultContinuation) {
|
|
296
295
|
CoroutineImpl.call(this, resultContinuation);
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
296
|
+
this.y48_1 = registrations;
|
|
297
|
+
this.z48_1 = ignoredTypes;
|
|
298
|
+
this.a49_1 = $this_createClientPlugin;
|
|
299
|
+
this.b49_1 = request;
|
|
300
|
+
this.c49_1 = body;
|
|
302
301
|
}
|
|
303
|
-
protoOf($invoke$convertRequestCOROUTINE$0).
|
|
304
|
-
var suspendResult = this.
|
|
302
|
+
protoOf($invoke$convertRequestCOROUTINE$0).m9 = function () {
|
|
303
|
+
var suspendResult = this.g9_1;
|
|
305
304
|
$sm: do
|
|
306
305
|
try {
|
|
307
|
-
var tmp = this.
|
|
306
|
+
var tmp = this.e9_1;
|
|
308
307
|
switch (tmp) {
|
|
309
308
|
case 0:
|
|
310
|
-
this.
|
|
311
|
-
var
|
|
312
|
-
while (
|
|
313
|
-
var element =
|
|
309
|
+
this.f9_1 = 7;
|
|
310
|
+
var _iterator__ex2g4s = this.y48_1.p();
|
|
311
|
+
while (_iterator__ex2g4s.q()) {
|
|
312
|
+
var element = _iterator__ex2g4s.r();
|
|
314
313
|
l$ret$1: do {
|
|
315
|
-
get_LOGGER().
|
|
316
|
-
if (this.
|
|
314
|
+
get_LOGGER().u2d('Adding Accept=' + element.j48_1.l2f_1 + ' header for ' + this.b49_1.e2w_1.toString());
|
|
315
|
+
if (this.b49_1.g2w_1.q29(HttpHeaders_getInstance().v2f_1, element.j48_1.toString())) {
|
|
317
316
|
break l$ret$1;
|
|
318
317
|
}
|
|
319
|
-
accept(this.
|
|
318
|
+
accept(this.b49_1, element.j48_1);
|
|
320
319
|
}
|
|
321
320
|
while (false);
|
|
322
321
|
}
|
|
323
322
|
|
|
324
323
|
var tmp_0;
|
|
325
|
-
var tmp_1 = this.
|
|
324
|
+
var tmp_1 = this.c49_1;
|
|
326
325
|
if (tmp_1 instanceof OutgoingContent) {
|
|
327
326
|
tmp_0 = true;
|
|
328
327
|
} else {
|
|
328
|
+
var tmp2 = this.z48_1;
|
|
329
329
|
var tmp$ret$2;
|
|
330
330
|
l$ret$3: do {
|
|
331
|
-
var this_0 = this.x46_1;
|
|
332
331
|
var tmp_2;
|
|
333
|
-
if (isInterface(
|
|
334
|
-
tmp_2 =
|
|
332
|
+
if (isInterface(tmp2, Collection)) {
|
|
333
|
+
tmp_2 = tmp2.h();
|
|
335
334
|
} else {
|
|
336
335
|
tmp_2 = false;
|
|
337
336
|
}
|
|
@@ -339,10 +338,10 @@
|
|
|
339
338
|
tmp$ret$2 = false;
|
|
340
339
|
break l$ret$3;
|
|
341
340
|
}
|
|
342
|
-
var
|
|
343
|
-
while (
|
|
344
|
-
var element_0 =
|
|
345
|
-
if (element_0.
|
|
341
|
+
var _iterator__ex2g4s_0 = tmp2.p();
|
|
342
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
343
|
+
var element_0 = _iterator__ex2g4s_0.r();
|
|
344
|
+
if (element_0.fb(this.c49_1)) {
|
|
346
345
|
tmp$ret$2 = true;
|
|
347
346
|
break l$ret$3;
|
|
348
347
|
}
|
|
@@ -354,36 +353,36 @@
|
|
|
354
353
|
}
|
|
355
354
|
|
|
356
355
|
if (tmp_0) {
|
|
357
|
-
get_LOGGER().
|
|
356
|
+
get_LOGGER().u2d('Body type ' + toString(getKClassFromExpression(this.c49_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.b49_1.e2w_1.toString() + '.'));
|
|
358
357
|
return null;
|
|
359
358
|
}
|
|
360
359
|
|
|
361
360
|
var tmp_3 = this;
|
|
362
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
361
|
+
var tmp0_elvis_lhs = contentType_0(this.b49_1);
|
|
363
362
|
var tmp_4;
|
|
364
363
|
if (tmp0_elvis_lhs == null) {
|
|
365
|
-
this.
|
|
366
|
-
get_LOGGER().
|
|
364
|
+
this.a49_1;
|
|
365
|
+
get_LOGGER().u2d("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.b49_1.e2w_1.toString() + '.');
|
|
367
366
|
return null;
|
|
368
367
|
} else {
|
|
369
368
|
tmp_4 = tmp0_elvis_lhs;
|
|
370
369
|
}
|
|
371
370
|
|
|
372
|
-
tmp_3.
|
|
373
|
-
var tmp_5 = this.
|
|
371
|
+
tmp_3.d49_1 = tmp_4;
|
|
372
|
+
var tmp_5 = this.c49_1;
|
|
374
373
|
if (tmp_5 instanceof Unit) {
|
|
375
|
-
get_LOGGER().
|
|
376
|
-
this.
|
|
374
|
+
get_LOGGER().u2d('Sending empty body for ' + this.b49_1.e2w_1.toString());
|
|
375
|
+
this.b49_1.g2w_1.w29(HttpHeaders_getInstance().n2g_1);
|
|
377
376
|
return EmptyContent_getInstance();
|
|
378
377
|
}
|
|
379
378
|
|
|
380
379
|
var tmp_6 = this;
|
|
381
|
-
var
|
|
380
|
+
var tmp0 = this.y48_1;
|
|
382
381
|
var destination = ArrayList_init_$Create$();
|
|
383
|
-
var
|
|
384
|
-
while (
|
|
385
|
-
var element_1 =
|
|
386
|
-
if (element_1.
|
|
382
|
+
var _iterator__ex2g4s_1 = tmp0.p();
|
|
383
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
384
|
+
var element_1 = _iterator__ex2g4s_1.r();
|
|
385
|
+
if (element_1.k48_1.m48(this.d49_1)) {
|
|
387
386
|
destination.k(element_1);
|
|
388
387
|
}
|
|
389
388
|
}
|
|
@@ -398,50 +397,52 @@
|
|
|
398
397
|
var tmp1_elvis_lhs = tmp_7;
|
|
399
398
|
var tmp_8;
|
|
400
399
|
if (tmp1_elvis_lhs == null) {
|
|
401
|
-
this.
|
|
402
|
-
get_LOGGER().
|
|
400
|
+
this.a49_1;
|
|
401
|
+
get_LOGGER().u2d('None of the registered converters match request Content-Type=' + this.d49_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.b49_1.e2w_1.toString() + '.'));
|
|
403
402
|
return null;
|
|
404
403
|
} else {
|
|
405
404
|
tmp_8 = tmp1_elvis_lhs;
|
|
406
405
|
}
|
|
407
406
|
|
|
408
|
-
tmp_6.
|
|
409
|
-
if (this.
|
|
410
|
-
get_LOGGER().
|
|
407
|
+
tmp_6.e49_1 = tmp_8;
|
|
408
|
+
if (this.b49_1.x3p() == null) {
|
|
409
|
+
get_LOGGER().u2d('Request has unknown body type. Skipping ContentNegotiation for ' + this.b49_1.e2w_1.toString() + '.');
|
|
411
410
|
return null;
|
|
412
411
|
}
|
|
413
412
|
|
|
414
|
-
this.
|
|
415
|
-
|
|
413
|
+
this.b49_1.g2w_1.w29(HttpHeaders_getInstance().n2g_1);
|
|
414
|
+
var tmp_9 = this;
|
|
415
|
+
tmp_9.f49_1 = this.e49_1;
|
|
416
|
+
this.e9_1 = 1;
|
|
416
417
|
continue $sm;
|
|
417
418
|
case 1:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
this.
|
|
421
|
-
this.d9_1 = 2;
|
|
419
|
+
this.h49_1 = this.f49_1;
|
|
420
|
+
this.i49_1 = this.h49_1.p();
|
|
421
|
+
this.e9_1 = 2;
|
|
422
422
|
continue $sm;
|
|
423
423
|
case 2:
|
|
424
|
-
if (!this.
|
|
425
|
-
this.
|
|
424
|
+
if (!this.i49_1.q()) {
|
|
425
|
+
this.e9_1 = 5;
|
|
426
426
|
continue $sm;
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
this.
|
|
429
|
+
this.j49_1 = this.i49_1.r();
|
|
430
430
|
var tmp_10 = this;
|
|
431
|
-
tmp_10.
|
|
432
|
-
this.
|
|
433
|
-
|
|
434
|
-
var
|
|
435
|
-
var
|
|
436
|
-
var
|
|
431
|
+
tmp_10.k49_1 = this.j49_1;
|
|
432
|
+
this.l49_1 = this.k49_1;
|
|
433
|
+
this.e9_1 = 3;
|
|
434
|
+
var tmp0_elvis_lhs_0 = charset(this.d49_1);
|
|
435
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().y1l_1 : tmp0_elvis_lhs_0;
|
|
436
|
+
var tmp_12 = ensureNotNull(this.b49_1.x3p());
|
|
437
|
+
var this_0 = this.c49_1;
|
|
437
438
|
var tmp_13;
|
|
438
|
-
if (!equals(
|
|
439
|
-
tmp_13 =
|
|
439
|
+
if (!equals(this_0, NullBody_instance)) {
|
|
440
|
+
tmp_13 = this_0;
|
|
440
441
|
} else {
|
|
441
442
|
tmp_13 = null;
|
|
442
443
|
}
|
|
443
444
|
|
|
444
|
-
suspendResult = this.
|
|
445
|
+
suspendResult = this.l49_1.i48_1.l4b(this.d49_1, tmp_11, tmp_12, tmp_13, this);
|
|
445
446
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
446
447
|
return suspendResult;
|
|
447
448
|
}
|
|
@@ -450,37 +451,37 @@
|
|
|
450
451
|
case 3:
|
|
451
452
|
var result = suspendResult;
|
|
452
453
|
if (!(result == null)) {
|
|
453
|
-
get_LOGGER().
|
|
454
|
+
get_LOGGER().u2d('Converted request body using ' + toString(this.l49_1.i48_1) + ' for ' + this.b49_1.e2w_1.toString());
|
|
454
455
|
}
|
|
455
456
|
|
|
456
457
|
var result_0 = result;
|
|
457
458
|
if (!(result_0 == null)) {
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
459
|
+
this.g49_1 = result_0;
|
|
460
|
+
this.e9_1 = 6;
|
|
460
461
|
continue $sm;
|
|
461
462
|
} else {
|
|
462
|
-
this.
|
|
463
|
+
this.e9_1 = 4;
|
|
463
464
|
continue $sm;
|
|
464
465
|
}
|
|
465
466
|
|
|
466
467
|
case 4:
|
|
467
|
-
this.
|
|
468
|
+
this.e9_1 = 2;
|
|
468
469
|
continue $sm;
|
|
469
470
|
case 5:
|
|
470
|
-
this.
|
|
471
|
+
this.g49_1 = null;
|
|
471
472
|
if (false) {
|
|
472
|
-
this.
|
|
473
|
+
this.e9_1 = 1;
|
|
473
474
|
continue $sm;
|
|
474
475
|
}
|
|
475
476
|
|
|
476
|
-
this.
|
|
477
|
+
this.e9_1 = 6;
|
|
477
478
|
continue $sm;
|
|
478
479
|
case 6:
|
|
479
|
-
var tmp2_elvis_lhs = this.
|
|
480
|
+
var tmp2_elvis_lhs = this.g49_1;
|
|
480
481
|
var tmp_14;
|
|
481
482
|
if (tmp2_elvis_lhs == null) {
|
|
482
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
483
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
483
|
+
var tmp_15 = "Can't convert " + toString(this.c49_1) + ' with contentType ' + this.d49_1.toString() + ' using converters ';
|
|
484
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.e49_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
484
485
|
} else {
|
|
485
486
|
tmp_14 = tmp2_elvis_lhs;
|
|
486
487
|
}
|
|
@@ -488,65 +489,65 @@
|
|
|
488
489
|
var serializedContent = tmp_14;
|
|
489
490
|
return serializedContent;
|
|
490
491
|
case 7:
|
|
491
|
-
throw this.
|
|
492
|
+
throw this.h9_1;
|
|
492
493
|
}
|
|
493
494
|
} catch ($p) {
|
|
494
495
|
var e = $p;
|
|
495
|
-
if (this.
|
|
496
|
+
if (this.f9_1 === 7) {
|
|
496
497
|
throw e;
|
|
497
498
|
} else {
|
|
498
|
-
this.
|
|
499
|
-
this.
|
|
499
|
+
this.e9_1 = this.f9_1;
|
|
500
|
+
this.h9_1 = e;
|
|
500
501
|
}
|
|
501
502
|
}
|
|
502
503
|
while (true);
|
|
503
504
|
};
|
|
504
505
|
function $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
505
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
507
|
+
this.u49_1 = ignoredTypes;
|
|
508
|
+
this.v49_1 = registrations;
|
|
509
|
+
this.w49_1 = $this_createClientPlugin;
|
|
510
|
+
this.x49_1 = requestUrl;
|
|
511
|
+
this.y49_1 = info;
|
|
512
|
+
this.z49_1 = body;
|
|
513
|
+
this.a4a_1 = responseContentType;
|
|
514
|
+
this.b4a_1 = charset;
|
|
514
515
|
}
|
|
515
|
-
protoOf($invoke$convertResponseCOROUTINE$1).
|
|
516
|
-
var suspendResult = this.
|
|
516
|
+
protoOf($invoke$convertResponseCOROUTINE$1).m9 = function () {
|
|
517
|
+
var suspendResult = this.g9_1;
|
|
517
518
|
$sm: do
|
|
518
519
|
try {
|
|
519
|
-
var tmp = this.
|
|
520
|
+
var tmp = this.e9_1;
|
|
520
521
|
switch (tmp) {
|
|
521
522
|
case 0:
|
|
522
|
-
this.
|
|
523
|
-
var tmp_0 = this.
|
|
523
|
+
this.f9_1 = 2;
|
|
524
|
+
var tmp_0 = this.z49_1;
|
|
524
525
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
525
|
-
get_LOGGER().
|
|
526
|
+
get_LOGGER().u2d('Response body is already transformed. Skipping ContentNegotiation for ' + this.x49_1.toString() + '.');
|
|
526
527
|
return null;
|
|
527
528
|
}
|
|
528
529
|
|
|
529
|
-
if (this.
|
|
530
|
-
get_LOGGER().
|
|
530
|
+
if (this.u49_1.x1(this.y49_1.i2d_1)) {
|
|
531
|
+
get_LOGGER().u2d('Response body type ' + toString(this.y49_1.i2d_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.x49_1.toString() + '.'));
|
|
531
532
|
return null;
|
|
532
533
|
}
|
|
533
534
|
|
|
534
535
|
var tmp_1 = this;
|
|
535
|
-
var
|
|
536
|
+
var tmp0 = this.v49_1;
|
|
536
537
|
var destination = ArrayList_init_$Create$();
|
|
537
|
-
var
|
|
538
|
-
while (
|
|
539
|
-
var element =
|
|
540
|
-
if (element.
|
|
538
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
539
|
+
while (_iterator__ex2g4s.q()) {
|
|
540
|
+
var element = _iterator__ex2g4s.r();
|
|
541
|
+
if (element.k48_1.m48(this.a4a_1)) {
|
|
541
542
|
destination.k(element);
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
545
|
|
|
545
546
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
546
|
-
var
|
|
547
|
-
while (
|
|
548
|
-
var item =
|
|
549
|
-
destination_0.k(item.
|
|
547
|
+
var _iterator__ex2g4s_0 = destination.p();
|
|
548
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
549
|
+
var item = _iterator__ex2g4s_0.r();
|
|
550
|
+
destination_0.k(item.i48_1);
|
|
550
551
|
}
|
|
551
552
|
|
|
552
553
|
var tmp_2;
|
|
@@ -559,16 +560,16 @@
|
|
|
559
560
|
var tmp0_elvis_lhs = tmp_2;
|
|
560
561
|
var tmp_3;
|
|
561
562
|
if (tmp0_elvis_lhs == null) {
|
|
562
|
-
this.
|
|
563
|
-
get_LOGGER().
|
|
563
|
+
this.w49_1;
|
|
564
|
+
get_LOGGER().u2d('None of the registered converters match response with Content-Type=' + this.a4a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.x49_1.toString() + '.'));
|
|
564
565
|
return null;
|
|
565
566
|
} else {
|
|
566
567
|
tmp_3 = tmp0_elvis_lhs;
|
|
567
568
|
}
|
|
568
569
|
|
|
569
|
-
tmp_1.
|
|
570
|
-
this.
|
|
571
|
-
suspendResult = deserialize(this.
|
|
570
|
+
tmp_1.c4a_1 = tmp_3;
|
|
571
|
+
this.e9_1 = 1;
|
|
572
|
+
suspendResult = deserialize(this.c4a_1, this.z49_1, this.y49_1, this.b4a_1, this);
|
|
572
573
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
573
574
|
return suspendResult;
|
|
574
575
|
}
|
|
@@ -577,20 +578,20 @@
|
|
|
577
578
|
case 1:
|
|
578
579
|
var result = suspendResult;
|
|
579
580
|
if (!isInterface(result, ByteReadChannel)) {
|
|
580
|
-
get_LOGGER().
|
|
581
|
+
get_LOGGER().u2d('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.x49_1.toString() + '.');
|
|
581
582
|
}
|
|
582
583
|
|
|
583
584
|
return result;
|
|
584
585
|
case 2:
|
|
585
|
-
throw this.
|
|
586
|
+
throw this.h9_1;
|
|
586
587
|
}
|
|
587
588
|
} catch ($p) {
|
|
588
589
|
var e = $p;
|
|
589
|
-
if (this.
|
|
590
|
+
if (this.f9_1 === 2) {
|
|
590
591
|
throw e;
|
|
591
592
|
} else {
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
593
|
+
this.e9_1 = this.f9_1;
|
|
594
|
+
this.h9_1 = e;
|
|
594
595
|
}
|
|
595
596
|
}
|
|
596
597
|
while (true);
|
|
@@ -600,18 +601,18 @@
|
|
|
600
601
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
601
602
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
602
603
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
603
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
604
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().oc(), PrimitiveClasses_getInstance().kc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
604
605
|
var tmp = ContentNegotiationConfig$_init_$ref_1ne3ob();
|
|
605
606
|
ContentNegotiation = createClientPlugin('ContentNegotiation', tmp, ContentNegotiation$lambda);
|
|
606
607
|
}
|
|
607
608
|
}
|
|
608
609
|
function JsonContentTypeMatcher() {
|
|
609
610
|
}
|
|
610
|
-
protoOf(JsonContentTypeMatcher).
|
|
611
|
-
if (contentType.
|
|
611
|
+
protoOf(JsonContentTypeMatcher).m48 = function (contentType) {
|
|
612
|
+
if (contentType.p2f(Application_getInstance().h2e_1)) {
|
|
612
613
|
return true;
|
|
613
614
|
}
|
|
614
|
-
var value = contentType.
|
|
615
|
+
var value = contentType.o2f().toString();
|
|
615
616
|
return startsWith(value, 'application/', true) && endsWith(value, '+json', true);
|
|
616
617
|
};
|
|
617
618
|
var JsonContentTypeMatcher_instance;
|
|
@@ -632,7 +633,7 @@
|
|
|
632
633
|
}
|
|
633
634
|
}
|
|
634
635
|
//region block: post-declaration
|
|
635
|
-
protoOf(ContentNegotiationConfig).
|
|
636
|
+
protoOf(ContentNegotiationConfig).x2r = register$default;
|
|
636
637
|
//endregion
|
|
637
638
|
//region block: init
|
|
638
639
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|
|
@@ -643,5 +644,3 @@
|
|
|
643
644
|
//endregion
|
|
644
645
|
return _;
|
|
645
646
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-shared-ktor-serialization.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-client-ktor-client-core.js'), require('./ktor-ktor-utils.js')));
|
|
646
|
-
|
|
647
|
-
//# sourceMappingURL=ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map
|