mrs-toolbox-cli 0.0.129 → 0.0.131
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/88b0986a7186d029-atomicfu-js-ir.js +19 -19
- package/clikt-clikt-mordant.js +245 -0
- package/clikt-clikt-mordant.js.map +1 -0
- package/clikt-clikt.js +3345 -3129
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +806 -611
- package/colormath-root-colormath.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js +6125 -5640
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3750 -2808
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +47 -47
- package/kotlin-node.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2084 -2056
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1640 -1629
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +2124 -2101
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +223 -223
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2531 -2532
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +13 -13
- package/ktor-ktor-http.js +702 -703
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1583 -1583
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +265 -265
- package/ktor-ktor-serialization.js +126 -126
- package/ktor-ktor-utils.js +519 -519
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +60 -60
- package/ktor-ktor-websockets.js.map +1 -1
- package/mordant-mordant-omnibus.js +8 -0
- package/mordant-mordant-omnibus.js.map +1 -0
- package/mordant-mordant.js +4442 -9011
- package/mordant-mordant.js.map +1 -1
- package/mrs-toolbox-cli.d.ts +43 -1
- package/mrs-toolbox-cli.js +1020 -145
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +1 -1
- package/static/init/hooks.webpack.config.js +35 -0
- package/static/init/webpackRoot.config.js +35 -0
- package/toolbox.js +6193 -5547
- package/toolbox.js.map +1 -1
- package/markdown.js +0 -6644
- package/markdown.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
7
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
8
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ab;
|
|
6
|
+
var CoroutineImpl = kotlin_kotlin.$_$.aa;
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
8
|
+
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
9
9
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
10
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
10
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.k9;
|
|
11
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.fb;
|
|
12
12
|
var VOID = kotlin_kotlin.$_$.g;
|
|
13
13
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
14
14
|
var contentType = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
15
15
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
16
|
-
var plus = kotlin_kotlin.$_$.
|
|
17
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
18
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
16
|
+
var plus = kotlin_kotlin.$_$.f8;
|
|
17
|
+
var toMutableSet = kotlin_kotlin.$_$.b9;
|
|
18
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
19
19
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
20
20
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
21
21
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
@@ -23,39 +23,39 @@
|
|
|
23
23
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
24
24
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
25
25
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
26
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
27
|
-
var toString = kotlin_kotlin.$_$.
|
|
26
|
+
var initMetadataForObject = kotlin_kotlin.$_$.gb;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.fc;
|
|
28
28
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
29
|
-
var Collection = kotlin_kotlin.$_$.
|
|
30
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
+
var Collection = kotlin_kotlin.$_$.h5;
|
|
30
|
+
var isInterface = kotlin_kotlin.$_$.pb;
|
|
31
31
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
|
|
32
32
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
33
33
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.z;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
35
35
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
36
|
-
var Unit = kotlin_kotlin.$_$.
|
|
36
|
+
var Unit = kotlin_kotlin.$_$.zg;
|
|
37
37
|
var charset = kotlin_io_ktor_ktor_http.$_$.x;
|
|
38
38
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.f;
|
|
39
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
39
|
+
var ensureNotNull = kotlin_kotlin.$_$.gh;
|
|
40
40
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
41
|
-
var equals = kotlin_kotlin.$_$.
|
|
42
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
43
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
41
|
+
var equals = kotlin_kotlin.$_$.sa;
|
|
42
|
+
var joinToString = kotlin_kotlin.$_$.k7;
|
|
43
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.cb;
|
|
44
44
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
45
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
46
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
45
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.c6;
|
|
46
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
47
47
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
48
|
-
var Exception = kotlin_kotlin.$_$.
|
|
49
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
50
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
48
|
+
var Exception = kotlin_kotlin.$_$.gg;
|
|
49
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.k1;
|
|
50
|
+
var captureStack = kotlin_kotlin.$_$.ka;
|
|
51
51
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
52
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
52
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.u4;
|
|
53
53
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.r;
|
|
54
54
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
55
|
-
var setOf = kotlin_kotlin.$_$.
|
|
56
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
57
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
58
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
+
var setOf = kotlin_kotlin.$_$.n8;
|
|
56
|
+
var startsWith = kotlin_kotlin.$_$.xe;
|
|
57
|
+
var endsWith = kotlin_kotlin.$_$.ud;
|
|
58
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
59
59
|
//endregion
|
|
60
60
|
//region block: pre-declaration
|
|
61
61
|
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
@@ -81,61 +81,61 @@
|
|
|
81
81
|
}
|
|
82
82
|
var DefaultCommonIgnoredTypes;
|
|
83
83
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
84
|
+
this.c53_1 = converter;
|
|
85
|
+
this.d53_1 = contentTypeToSend;
|
|
86
|
+
this.e53_1 = contentTypeMatcher;
|
|
87
87
|
}
|
|
88
88
|
function defaultMatcher($this, pattern) {
|
|
89
89
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
90
90
|
}
|
|
91
91
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
92
|
-
this.
|
|
92
|
+
this.f53_1 = $pattern;
|
|
93
93
|
}
|
|
94
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
95
|
-
return contentType.
|
|
94
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).g53 = function (contentType) {
|
|
95
|
+
return contentType.b20(this.f53_1);
|
|
96
96
|
};
|
|
97
97
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
98
|
-
this.
|
|
98
|
+
this.p53_1 = $plugin;
|
|
99
99
|
CoroutineImpl.call(this, resultContinuation);
|
|
100
100
|
}
|
|
101
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
102
|
-
var tmp = this.
|
|
103
|
-
tmp.
|
|
104
|
-
tmp.
|
|
105
|
-
return tmp.
|
|
101
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).e43 = function ($this$intercept, it, $completion) {
|
|
102
|
+
var tmp = this.f43($this$intercept, it, $completion);
|
|
103
|
+
tmp.n9_1 = Unit_instance;
|
|
104
|
+
tmp.o9_1 = null;
|
|
105
|
+
return tmp.t9();
|
|
106
106
|
};
|
|
107
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
107
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).ca = function (p1, p2, $completion) {
|
|
108
108
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
109
|
-
return this.
|
|
109
|
+
return this.e43(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
110
110
|
};
|
|
111
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
112
|
-
var suspendResult = this.
|
|
111
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).t9 = function () {
|
|
112
|
+
var suspendResult = this.n9_1;
|
|
113
113
|
$sm: do
|
|
114
114
|
try {
|
|
115
|
-
var tmp = this.
|
|
115
|
+
var tmp = this.l9_1;
|
|
116
116
|
switch (tmp) {
|
|
117
117
|
case 0:
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
suspendResult = this.
|
|
118
|
+
this.m9_1 = 3;
|
|
119
|
+
this.l9_1 = 1;
|
|
120
|
+
suspendResult = this.p53_1.w53(this.q53_1.n1x_1, this.q53_1.q1w(), this);
|
|
121
121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
122
122
|
return suspendResult;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
continue $sm;
|
|
126
126
|
case 1:
|
|
127
|
-
this.
|
|
127
|
+
this.s53_1 = suspendResult;
|
|
128
128
|
var tmp_0 = this;
|
|
129
129
|
var tmp_1;
|
|
130
|
-
if (this.
|
|
130
|
+
if (this.s53_1 == null) {
|
|
131
131
|
return Unit_instance;
|
|
132
132
|
} else {
|
|
133
|
-
tmp_1 = this.
|
|
133
|
+
tmp_1 = this.s53_1;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
tmp_0.
|
|
137
|
-
this.
|
|
138
|
-
suspendResult = this.
|
|
136
|
+
tmp_0.t53_1 = tmp_1;
|
|
137
|
+
this.l9_1 = 2;
|
|
138
|
+
suspendResult = this.q53_1.r1w(this.t53_1, this);
|
|
139
139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
140
140
|
return suspendResult;
|
|
141
141
|
}
|
|
@@ -144,91 +144,91 @@
|
|
|
144
144
|
case 2:
|
|
145
145
|
return Unit_instance;
|
|
146
146
|
case 3:
|
|
147
|
-
throw this.
|
|
147
|
+
throw this.o9_1;
|
|
148
148
|
}
|
|
149
149
|
} catch ($p) {
|
|
150
150
|
var e = $p;
|
|
151
|
-
if (this.
|
|
151
|
+
if (this.m9_1 === 3) {
|
|
152
152
|
throw e;
|
|
153
153
|
} else {
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
154
|
+
this.l9_1 = this.m9_1;
|
|
155
|
+
this.o9_1 = e;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
while (true);
|
|
159
159
|
};
|
|
160
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
161
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
162
|
-
i.
|
|
163
|
-
i.
|
|
160
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).f43 = function ($this$intercept, it, completion) {
|
|
161
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.p53_1, completion);
|
|
162
|
+
i.q53_1 = $this$intercept;
|
|
163
|
+
i.r53_1 = it;
|
|
164
164
|
return i;
|
|
165
165
|
};
|
|
166
166
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
167
167
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
168
168
|
var l = function ($this$intercept, it, $completion) {
|
|
169
|
-
return i.
|
|
169
|
+
return i.e43($this$intercept, it, $completion);
|
|
170
170
|
};
|
|
171
171
|
l.$arity = 2;
|
|
172
172
|
return l;
|
|
173
173
|
}
|
|
174
174
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
175
|
-
this.
|
|
175
|
+
this.f54_1 = $plugin;
|
|
176
176
|
CoroutineImpl.call(this, resultContinuation);
|
|
177
177
|
}
|
|
178
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
179
|
-
var tmp = this.
|
|
180
|
-
tmp.
|
|
181
|
-
tmp.
|
|
182
|
-
return tmp.
|
|
178
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).y43 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
179
|
+
var tmp = this.z43($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
180
|
+
tmp.n9_1 = Unit_instance;
|
|
181
|
+
tmp.o9_1 = null;
|
|
182
|
+
return tmp.t9();
|
|
183
183
|
};
|
|
184
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
184
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).ca = function (p1, p2, $completion) {
|
|
185
185
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
186
|
-
return this.
|
|
186
|
+
return this.y43(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
187
187
|
};
|
|
188
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
189
|
-
var suspendResult = this.
|
|
188
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).t9 = function () {
|
|
189
|
+
var suspendResult = this.n9_1;
|
|
190
190
|
$sm: do
|
|
191
191
|
try {
|
|
192
|
-
var tmp = this.
|
|
192
|
+
var tmp = this.l9_1;
|
|
193
193
|
switch (tmp) {
|
|
194
194
|
case 0:
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
195
|
+
this.m9_1 = 3;
|
|
196
|
+
this.i54_1 = this.h54_1.qg();
|
|
197
|
+
this.j54_1 = this.h54_1.rg();
|
|
198
198
|
var tmp_0 = this;
|
|
199
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
199
|
+
var tmp0_elvis_lhs = contentType(this.g54_1.n1x_1.l43());
|
|
200
200
|
var tmp_1;
|
|
201
201
|
if (tmp0_elvis_lhs == null) {
|
|
202
|
-
this.
|
|
203
|
-
get_LOGGER().
|
|
202
|
+
this.g54_1;
|
|
203
|
+
get_LOGGER().h1y('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
204
204
|
return Unit_instance;
|
|
205
205
|
} else {
|
|
206
206
|
tmp_1 = tmp0_elvis_lhs;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
tmp_0.
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
suspendResult = this.
|
|
209
|
+
tmp_0.k54_1 = tmp_1;
|
|
210
|
+
this.l54_1 = suitableCharset(this.g54_1.n1x_1.t46().j24());
|
|
211
|
+
this.l9_1 = 1;
|
|
212
|
+
suspendResult = this.f54_1.p54(this.g54_1.n1x_1.t46().f3p(), this.i54_1, this.j54_1, this.k54_1, this.l54_1, this);
|
|
213
213
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
214
|
return suspendResult;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
continue $sm;
|
|
218
218
|
case 1:
|
|
219
|
-
this.
|
|
219
|
+
this.m54_1 = suspendResult;
|
|
220
220
|
var tmp_2 = this;
|
|
221
221
|
var tmp_3;
|
|
222
|
-
if (this.
|
|
222
|
+
if (this.m54_1 == null) {
|
|
223
223
|
return Unit_instance;
|
|
224
224
|
} else {
|
|
225
|
-
tmp_3 = this.
|
|
225
|
+
tmp_3 = this.m54_1;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
tmp_2.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
231
|
-
suspendResult = this.
|
|
228
|
+
tmp_2.n54_1 = tmp_3;
|
|
229
|
+
this.o54_1 = new HttpResponseContainer(this.i54_1, this.n54_1);
|
|
230
|
+
this.l9_1 = 2;
|
|
231
|
+
suspendResult = this.g54_1.r1w(this.o54_1, this);
|
|
232
232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
233
233
|
return suspendResult;
|
|
234
234
|
}
|
|
@@ -237,76 +237,76 @@
|
|
|
237
237
|
case 2:
|
|
238
238
|
return Unit_instance;
|
|
239
239
|
case 3:
|
|
240
|
-
throw this.
|
|
240
|
+
throw this.o9_1;
|
|
241
241
|
}
|
|
242
242
|
} catch ($p) {
|
|
243
243
|
var e = $p;
|
|
244
|
-
if (this.
|
|
244
|
+
if (this.m9_1 === 3) {
|
|
245
245
|
throw e;
|
|
246
246
|
} else {
|
|
247
|
-
this.
|
|
248
|
-
this.
|
|
247
|
+
this.l9_1 = this.m9_1;
|
|
248
|
+
this.o9_1 = e;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
while (true);
|
|
252
252
|
};
|
|
253
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
254
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
255
|
-
i.
|
|
256
|
-
i.
|
|
253
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).z43 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
254
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.f54_1, completion);
|
|
255
|
+
i.g54_1 = $this$intercept;
|
|
256
|
+
i.h54_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
257
257
|
return i;
|
|
258
258
|
};
|
|
259
259
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
260
260
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
261
261
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
262
|
-
return i.
|
|
262
|
+
return i.y43($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
263
263
|
};
|
|
264
264
|
l.$arity = 2;
|
|
265
265
|
return l;
|
|
266
266
|
}
|
|
267
267
|
function Config() {
|
|
268
|
-
this.
|
|
268
|
+
this.q54_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
269
269
|
var tmp = this;
|
|
270
270
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
271
|
-
tmp.
|
|
271
|
+
tmp.r54_1 = ArrayList_init_$Create$();
|
|
272
272
|
}
|
|
273
|
-
protoOf(Config).
|
|
274
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
275
|
-
this.
|
|
273
|
+
protoOf(Config).v2a = function (contentType, converter, configuration) {
|
|
274
|
+
var matcher = contentType.equals(Application_getInstance().u1y_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
275
|
+
this.s54(contentType, converter, matcher, configuration);
|
|
276
276
|
};
|
|
277
|
-
protoOf(Config).
|
|
277
|
+
protoOf(Config).s54 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
278
278
|
// Inline function 'kotlin.apply' call
|
|
279
279
|
// Inline function 'kotlin.contracts.contract' call
|
|
280
280
|
configuration(converter);
|
|
281
281
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
282
|
-
this.
|
|
282
|
+
this.r54_1.e(registration);
|
|
283
283
|
};
|
|
284
284
|
function Plugin() {
|
|
285
285
|
Plugin_instance = this;
|
|
286
|
-
this.
|
|
286
|
+
this.t54_1 = new AttributeKey('ContentNegotiation');
|
|
287
287
|
}
|
|
288
|
-
protoOf(Plugin).
|
|
289
|
-
return this.
|
|
288
|
+
protoOf(Plugin).u = function () {
|
|
289
|
+
return this.t54_1;
|
|
290
290
|
};
|
|
291
|
-
protoOf(Plugin).
|
|
291
|
+
protoOf(Plugin).u54 = function (block) {
|
|
292
292
|
// Inline function 'kotlin.apply' call
|
|
293
293
|
var this_0 = new Config();
|
|
294
294
|
// Inline function 'kotlin.contracts.contract' call
|
|
295
295
|
block(this_0);
|
|
296
296
|
var config = this_0;
|
|
297
|
-
return new ContentNegotiation(config.
|
|
297
|
+
return new ContentNegotiation(config.r54_1, config.q54_1);
|
|
298
298
|
};
|
|
299
|
-
protoOf(Plugin).
|
|
300
|
-
return this.
|
|
299
|
+
protoOf(Plugin).p45 = function (block) {
|
|
300
|
+
return this.u54(block);
|
|
301
301
|
};
|
|
302
|
-
protoOf(Plugin).
|
|
303
|
-
var tmp = Phases_getInstance().
|
|
304
|
-
scope.
|
|
305
|
-
var tmp_0 = Phases_getInstance_0().
|
|
306
|
-
scope.
|
|
302
|
+
protoOf(Plugin).v54 = function (plugin, scope) {
|
|
303
|
+
var tmp = Phases_getInstance().f4b_1;
|
|
304
|
+
scope.k42_1.r1x(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
305
|
+
var tmp_0 = Phases_getInstance_0().k45_1;
|
|
306
|
+
scope.l42_1.r1x(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
307
307
|
};
|
|
308
|
-
protoOf(Plugin).
|
|
309
|
-
return this.
|
|
308
|
+
protoOf(Plugin).q45 = function (plugin, scope) {
|
|
309
|
+
return this.v54(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
310
310
|
};
|
|
311
311
|
var Plugin_instance;
|
|
312
312
|
function Plugin_getInstance() {
|
|
@@ -315,37 +315,37 @@
|
|
|
315
315
|
return Plugin_instance;
|
|
316
316
|
}
|
|
317
317
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
318
|
-
return toString(it.
|
|
318
|
+
return toString(it.c53_1);
|
|
319
319
|
}
|
|
320
320
|
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
321
321
|
CoroutineImpl.call(this, resultContinuation);
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
322
|
+
this.e55_1 = _this__u8e3s4;
|
|
323
|
+
this.f55_1 = request;
|
|
324
|
+
this.g55_1 = body;
|
|
325
325
|
}
|
|
326
|
-
protoOf($convertRequestCOROUTINE$0).
|
|
327
|
-
var suspendResult = this.
|
|
326
|
+
protoOf($convertRequestCOROUTINE$0).t9 = function () {
|
|
327
|
+
var suspendResult = this.n9_1;
|
|
328
328
|
$sm: do
|
|
329
329
|
try {
|
|
330
|
-
var tmp = this.
|
|
330
|
+
var tmp = this.l9_1;
|
|
331
331
|
switch (tmp) {
|
|
332
332
|
case 0:
|
|
333
|
-
this.
|
|
334
|
-
var tmp0_iterator = this.
|
|
333
|
+
this.m9_1 = 7;
|
|
334
|
+
var tmp0_iterator = this.e55_1.u53_1.k();
|
|
335
335
|
while (tmp0_iterator.l()) {
|
|
336
336
|
var element = tmp0_iterator.m();
|
|
337
|
-
get_LOGGER().
|
|
338
|
-
accept(this.
|
|
337
|
+
get_LOGGER().h1y('Adding Accept=' + element.d53_1.x1z_1 + ' header for ' + this.f55_1.k44_1.toString());
|
|
338
|
+
accept(this.f55_1, element.d53_1);
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
var tmp_0;
|
|
342
|
-
var tmp_1 = this.
|
|
342
|
+
var tmp_1 = this.g55_1;
|
|
343
343
|
if (tmp_1 instanceof OutgoingContent) {
|
|
344
344
|
tmp_0 = true;
|
|
345
345
|
} else {
|
|
346
346
|
var tmp$ret$0;
|
|
347
347
|
l$ret$1: do {
|
|
348
|
-
var this_0 = this.
|
|
348
|
+
var this_0 = this.e55_1.v53_1;
|
|
349
349
|
var tmp_2;
|
|
350
350
|
if (isInterface(this_0, Collection)) {
|
|
351
351
|
tmp_2 = this_0.q();
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
var tmp0_iterator_0 = this_0.k();
|
|
360
360
|
while (tmp0_iterator_0.l()) {
|
|
361
361
|
var element_0 = tmp0_iterator_0.m();
|
|
362
|
-
if (element_0.
|
|
362
|
+
if (element_0.sa(this.g55_1)) {
|
|
363
363
|
tmp$ret$0 = true;
|
|
364
364
|
break l$ret$1;
|
|
365
365
|
}
|
|
@@ -371,36 +371,36 @@
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
if (tmp_0) {
|
|
374
|
-
get_LOGGER().
|
|
374
|
+
get_LOGGER().h1y('Body type ' + toString(getKClassFromExpression(this.g55_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.f55_1.k44_1.toString() + '.'));
|
|
375
375
|
return null;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
var tmp_3 = this;
|
|
379
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
379
|
+
var tmp0_elvis_lhs = contentType_0(this.f55_1);
|
|
380
380
|
var tmp_4;
|
|
381
381
|
if (tmp0_elvis_lhs == null) {
|
|
382
|
-
this.
|
|
383
|
-
get_LOGGER().
|
|
382
|
+
this.e55_1;
|
|
383
|
+
get_LOGGER().h1y("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.f55_1.k44_1.toString() + '.');
|
|
384
384
|
return null;
|
|
385
385
|
} else {
|
|
386
386
|
tmp_4 = tmp0_elvis_lhs;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
tmp_3.
|
|
390
|
-
var tmp_5 = this.
|
|
389
|
+
tmp_3.h55_1 = tmp_4;
|
|
390
|
+
var tmp_5 = this.g55_1;
|
|
391
391
|
if (tmp_5 instanceof Unit) {
|
|
392
|
-
get_LOGGER().
|
|
393
|
-
this.
|
|
392
|
+
get_LOGGER().h1y('Sending empty body for ' + this.f55_1.k44_1.toString());
|
|
393
|
+
this.f55_1.m44_1.b1v(HttpHeaders_getInstance().y20_1);
|
|
394
394
|
return EmptyContent_getInstance();
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
var tmp_6 = this;
|
|
398
|
-
var this_1 = this.
|
|
398
|
+
var this_1 = this.e55_1.u53_1;
|
|
399
399
|
var destination = ArrayList_init_$Create$();
|
|
400
400
|
var tmp0_iterator_1 = this_1.k();
|
|
401
401
|
while (tmp0_iterator_1.l()) {
|
|
402
402
|
var element_1 = tmp0_iterator_1.m();
|
|
403
|
-
if (element_1.
|
|
403
|
+
if (element_1.e53_1.g53(this.h55_1)) {
|
|
404
404
|
destination.e(element_1);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -415,42 +415,42 @@
|
|
|
415
415
|
var tmp1_elvis_lhs = tmp_7;
|
|
416
416
|
var tmp_8;
|
|
417
417
|
if (tmp1_elvis_lhs == null) {
|
|
418
|
-
this.
|
|
419
|
-
get_LOGGER().
|
|
418
|
+
this.e55_1;
|
|
419
|
+
get_LOGGER().h1y('None of the registered converters match request Content-Type=' + this.h55_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.f55_1.k44_1.toString() + '.'));
|
|
420
420
|
return null;
|
|
421
421
|
} else {
|
|
422
422
|
tmp_8 = tmp1_elvis_lhs;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
tmp_6.
|
|
426
|
-
if (this.
|
|
427
|
-
get_LOGGER().
|
|
425
|
+
tmp_6.i55_1 = tmp_8;
|
|
426
|
+
if (this.f55_1.n4t() == null) {
|
|
427
|
+
get_LOGGER().h1y('Request has unknown body type. Skipping ContentNegotiation for ' + this.f55_1.k44_1.toString() + '.');
|
|
428
428
|
return null;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
431
|
+
this.f55_1.m44_1.b1v(HttpHeaders_getInstance().y20_1);
|
|
432
|
+
this.l9_1 = 1;
|
|
433
433
|
continue $sm;
|
|
434
434
|
case 1:
|
|
435
435
|
var tmp_9 = this;
|
|
436
|
-
tmp_9.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
436
|
+
tmp_9.k55_1 = this.i55_1;
|
|
437
|
+
this.l55_1 = this.k55_1.k();
|
|
438
|
+
this.l9_1 = 2;
|
|
439
439
|
continue $sm;
|
|
440
440
|
case 2:
|
|
441
|
-
if (!this.
|
|
442
|
-
this.
|
|
441
|
+
if (!this.l55_1.l()) {
|
|
442
|
+
this.l9_1 = 5;
|
|
443
443
|
continue $sm;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
this.
|
|
446
|
+
this.m55_1 = this.l55_1.m();
|
|
447
447
|
var tmp_10 = this;
|
|
448
|
-
tmp_10.
|
|
449
|
-
this.
|
|
450
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
451
|
-
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().
|
|
452
|
-
var tmp_12 = ensureNotNull(this.
|
|
453
|
-
var this_2 = this.
|
|
448
|
+
tmp_10.n55_1 = this.m55_1;
|
|
449
|
+
this.l9_1 = 3;
|
|
450
|
+
var tmp0_elvis_lhs_0 = charset(this.h55_1);
|
|
451
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().a1p_1 : tmp0_elvis_lhs_0;
|
|
452
|
+
var tmp_12 = ensureNotNull(this.f55_1.n4t());
|
|
453
|
+
var this_2 = this.g55_1;
|
|
454
454
|
var tmp_13;
|
|
455
455
|
if (!equals(this_2, NullBody_instance)) {
|
|
456
456
|
tmp_13 = this_2;
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
tmp_13 = null;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
suspendResult = this.
|
|
461
|
+
suspendResult = this.n55_1.c53_1.y2a(this.h55_1, tmp_11, tmp_12, tmp_13, this);
|
|
462
462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
463
463
|
return suspendResult;
|
|
464
464
|
}
|
|
@@ -467,37 +467,37 @@
|
|
|
467
467
|
case 3:
|
|
468
468
|
var result = suspendResult;
|
|
469
469
|
if (!(result == null)) {
|
|
470
|
-
get_LOGGER().
|
|
470
|
+
get_LOGGER().h1y('Converted request body using ' + toString(this.n55_1.c53_1) + ' for ' + this.f55_1.k44_1.toString());
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
var result_0 = result;
|
|
474
474
|
if (!(result_0 == null)) {
|
|
475
|
-
this.
|
|
476
|
-
this.
|
|
475
|
+
this.j55_1 = result_0;
|
|
476
|
+
this.l9_1 = 6;
|
|
477
477
|
continue $sm;
|
|
478
478
|
} else {
|
|
479
|
-
this.
|
|
479
|
+
this.l9_1 = 4;
|
|
480
480
|
continue $sm;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
case 4:
|
|
484
|
-
this.
|
|
484
|
+
this.l9_1 = 2;
|
|
485
485
|
continue $sm;
|
|
486
486
|
case 5:
|
|
487
|
-
this.
|
|
487
|
+
this.j55_1 = null;
|
|
488
488
|
if (false) {
|
|
489
|
-
this.
|
|
489
|
+
this.l9_1 = 1;
|
|
490
490
|
continue $sm;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
this.
|
|
493
|
+
this.l9_1 = 6;
|
|
494
494
|
continue $sm;
|
|
495
495
|
case 6:
|
|
496
|
-
var tmp2_elvis_lhs = this.
|
|
496
|
+
var tmp2_elvis_lhs = this.j55_1;
|
|
497
497
|
var tmp_14;
|
|
498
498
|
if (tmp2_elvis_lhs == null) {
|
|
499
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
500
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
499
|
+
var tmp_15 = "Can't convert " + toString(this.g55_1) + ' with contentType ' + this.h55_1.toString() + ' using converters ';
|
|
500
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.i55_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
501
501
|
} else {
|
|
502
502
|
tmp_14 = tmp2_elvis_lhs;
|
|
503
503
|
}
|
|
@@ -505,54 +505,54 @@
|
|
|
505
505
|
var serializedContent = tmp_14;
|
|
506
506
|
return serializedContent;
|
|
507
507
|
case 7:
|
|
508
|
-
throw this.
|
|
508
|
+
throw this.o9_1;
|
|
509
509
|
}
|
|
510
510
|
} catch ($p) {
|
|
511
511
|
var e = $p;
|
|
512
|
-
if (this.
|
|
512
|
+
if (this.m9_1 === 7) {
|
|
513
513
|
throw e;
|
|
514
514
|
} else {
|
|
515
|
-
this.
|
|
516
|
-
this.
|
|
515
|
+
this.l9_1 = this.m9_1;
|
|
516
|
+
this.o9_1 = e;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
while (true);
|
|
520
520
|
};
|
|
521
521
|
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
522
522
|
CoroutineImpl.call(this, resultContinuation);
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
523
|
+
this.w55_1 = _this__u8e3s4;
|
|
524
|
+
this.x55_1 = requestUrl;
|
|
525
|
+
this.y55_1 = info;
|
|
526
|
+
this.z55_1 = body;
|
|
527
|
+
this.a56_1 = responseContentType;
|
|
528
|
+
this.b56_1 = charset;
|
|
529
529
|
}
|
|
530
|
-
protoOf($convertResponseCOROUTINE$1).
|
|
531
|
-
var suspendResult = this.
|
|
530
|
+
protoOf($convertResponseCOROUTINE$1).t9 = function () {
|
|
531
|
+
var suspendResult = this.n9_1;
|
|
532
532
|
$sm: do
|
|
533
533
|
try {
|
|
534
|
-
var tmp = this.
|
|
534
|
+
var tmp = this.l9_1;
|
|
535
535
|
switch (tmp) {
|
|
536
536
|
case 0:
|
|
537
|
-
this.
|
|
538
|
-
var tmp_0 = this.
|
|
537
|
+
this.m9_1 = 2;
|
|
538
|
+
var tmp_0 = this.z55_1;
|
|
539
539
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
540
|
-
get_LOGGER().
|
|
540
|
+
get_LOGGER().h1y('Response body is already transformed. Skipping ContentNegotiation for ' + this.x55_1.toString() + '.');
|
|
541
541
|
return null;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
if (this.
|
|
545
|
-
get_LOGGER().
|
|
544
|
+
if (this.w55_1.v53_1.h1(this.y55_1.d1y_1)) {
|
|
545
|
+
get_LOGGER().h1y('Response body type ' + toString(this.y55_1.d1y_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.x55_1.toString() + '.'));
|
|
546
546
|
return null;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
var tmp_1 = this;
|
|
550
|
-
var this_0 = this.
|
|
550
|
+
var this_0 = this.w55_1.u53_1;
|
|
551
551
|
var destination = ArrayList_init_$Create$();
|
|
552
552
|
var tmp0_iterator = this_0.k();
|
|
553
553
|
while (tmp0_iterator.l()) {
|
|
554
554
|
var element = tmp0_iterator.m();
|
|
555
|
-
if (element.
|
|
555
|
+
if (element.e53_1.g53(this.a56_1)) {
|
|
556
556
|
destination.e(element);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
var tmp0_iterator_0 = destination.k();
|
|
562
562
|
while (tmp0_iterator_0.l()) {
|
|
563
563
|
var item = tmp0_iterator_0.m();
|
|
564
|
-
destination_0.e(item.
|
|
564
|
+
destination_0.e(item.c53_1);
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
var tmp_2;
|
|
@@ -574,16 +574,16 @@
|
|
|
574
574
|
var tmp0_elvis_lhs = tmp_2;
|
|
575
575
|
var tmp_3;
|
|
576
576
|
if (tmp0_elvis_lhs == null) {
|
|
577
|
-
this.
|
|
578
|
-
get_LOGGER().
|
|
577
|
+
this.w55_1;
|
|
578
|
+
get_LOGGER().h1y('None of the registered converters match response with Content-Type=' + this.a56_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.x55_1.toString() + '.'));
|
|
579
579
|
return null;
|
|
580
580
|
} else {
|
|
581
581
|
tmp_3 = tmp0_elvis_lhs;
|
|
582
582
|
}
|
|
583
583
|
|
|
584
|
-
tmp_1.
|
|
585
|
-
this.
|
|
586
|
-
suspendResult = deserialize(this.
|
|
584
|
+
tmp_1.c56_1 = tmp_3;
|
|
585
|
+
this.l9_1 = 1;
|
|
586
|
+
suspendResult = deserialize(this.c56_1, this.z55_1, this.y55_1, this.b56_1, this);
|
|
587
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
588
588
|
return suspendResult;
|
|
589
589
|
}
|
|
@@ -592,40 +592,40 @@
|
|
|
592
592
|
case 1:
|
|
593
593
|
var result = suspendResult;
|
|
594
594
|
if (!isInterface(result, ByteReadChannel)) {
|
|
595
|
-
get_LOGGER().
|
|
595
|
+
get_LOGGER().h1y('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.x55_1.toString() + '.');
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
return result;
|
|
599
599
|
case 2:
|
|
600
|
-
throw this.
|
|
600
|
+
throw this.o9_1;
|
|
601
601
|
}
|
|
602
602
|
} catch ($p) {
|
|
603
603
|
var e = $p;
|
|
604
|
-
if (this.
|
|
604
|
+
if (this.m9_1 === 2) {
|
|
605
605
|
throw e;
|
|
606
606
|
} else {
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
607
|
+
this.l9_1 = this.m9_1;
|
|
608
|
+
this.o9_1 = e;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
while (true);
|
|
612
612
|
};
|
|
613
613
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
614
614
|
Plugin_getInstance();
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
615
|
+
this.u53_1 = registrations;
|
|
616
|
+
this.v53_1 = ignoredTypes;
|
|
617
617
|
}
|
|
618
|
-
protoOf(ContentNegotiation).
|
|
618
|
+
protoOf(ContentNegotiation).w53 = function (request, body, $completion) {
|
|
619
619
|
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
620
|
-
tmp.
|
|
621
|
-
tmp.
|
|
622
|
-
return tmp.
|
|
620
|
+
tmp.n9_1 = Unit_instance;
|
|
621
|
+
tmp.o9_1 = null;
|
|
622
|
+
return tmp.t9();
|
|
623
623
|
};
|
|
624
|
-
protoOf(ContentNegotiation).
|
|
624
|
+
protoOf(ContentNegotiation).p54 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
625
625
|
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
626
|
-
tmp.
|
|
627
|
-
tmp.
|
|
628
|
-
return tmp.
|
|
626
|
+
tmp.n9_1 = Unit_instance;
|
|
627
|
+
tmp.o9_1 = null;
|
|
628
|
+
return tmp.t9();
|
|
629
629
|
};
|
|
630
630
|
function ContentConverterException(message) {
|
|
631
631
|
Exception_init_$Init$(message, this);
|
|
@@ -636,16 +636,16 @@
|
|
|
636
636
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
637
637
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
638
638
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
639
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
639
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().xb(), PrimitiveClasses_getInstance().tb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
function JsonContentTypeMatcher() {
|
|
643
643
|
}
|
|
644
|
-
protoOf(JsonContentTypeMatcher).
|
|
645
|
-
if (contentType.
|
|
644
|
+
protoOf(JsonContentTypeMatcher).g53 = function (contentType) {
|
|
645
|
+
if (contentType.b20(Application_getInstance().u1y_1)) {
|
|
646
646
|
return true;
|
|
647
647
|
}
|
|
648
|
-
var value = contentType.
|
|
648
|
+
var value = contentType.a20().toString();
|
|
649
649
|
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
650
650
|
};
|
|
651
651
|
var JsonContentTypeMatcher_instance;
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
//region block: post-declaration
|
|
669
|
-
protoOf(Config).
|
|
669
|
+
protoOf(Config).w2a = register$default;
|
|
670
670
|
//endregion
|
|
671
671
|
//region block: init
|
|
672
672
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|