mrs-toolbox-cli 0.0.87 → 0.0.90
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 +47 -65
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +632 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/clikt-clikt.js +6454 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +1367 -0
- package/colormath-root-colormath.js.map +1 -0
- package/com.mrs.platform.configuration.dto.js +5180 -6529
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +12925 -13905
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-logging-js-ir.js +68 -106
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-node.js +1 -2
- package/kotlin-node.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js → kotlinx-html.js} +1 -1
- package/kotlinx-html.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6053 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +4903 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +2572 -3423
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +280 -290
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +3006 -3347
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +20 -25
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +1184 -1662
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2091 -2972
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +12 -13
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +359 -388
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +146 -143
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +702 -900
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +92 -106
- package/ktor-ktor-websockets.js.map +1 -1
- package/markdown.js +6653 -0
- package/markdown.js.map +1 -0
- package/mordant-mordant.js +11785 -0
- package/mordant-mordant.js.map +1 -0
- package/mrs-toolbox-cli.d.ts +159 -62
- package/mrs-toolbox-cli.js +169 -169
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +3 -2
- package/toolbox.js +5394 -6365
- package/toolbox.js.map +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js.hash +0 -1
- package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.hash +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map.hash +0 -1
- package/clikt-clikt-js-ir.js +0 -7044
- package/clikt-clikt-js-ir.js.hash +0 -1
- package/clikt-clikt-js-ir.js.map +0 -1
- package/clikt-clikt-js-ir.js.map.hash +0 -1
- package/com.mrs.platform.configuration.dto.js.hash +0 -1
- package/com.mrs.platform.configuration.dto.js.map.hash +0 -1
- package/kotlin-js.js.hash +0 -1
- package/kotlin-js.js.map.hash +0 -1
- package/kotlin-kotlin-stdlib-js-ir.js.hash +0 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map.hash +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.hash +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map.hash +0 -1
- package/kotlin-logging-js-ir.js.hash +0 -1
- package/kotlin-logging-js-ir.js.map.hash +0 -1
- package/kotlin-node.js.hash +0 -1
- package/kotlin-node.js.map.hash +0 -1
- package/kotlin-web.js.hash +0 -1
- package/kotlin-web.js.map.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +0 -6431
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -5101
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +0 -1
- package/ktor-ktor-client-content-negotiation.js.hash +0 -1
- package/ktor-ktor-client-content-negotiation.js.map.hash +0 -1
- package/ktor-ktor-client-core.js.hash +0 -1
- package/ktor-ktor-client-core.js.map.hash +0 -1
- package/ktor-ktor-events.js.hash +0 -1
- package/ktor-ktor-events.js.map.hash +0 -1
- package/ktor-ktor-http.js.hash +0 -1
- package/ktor-ktor-http.js.map.hash +0 -1
- package/ktor-ktor-io.js.hash +0 -1
- package/ktor-ktor-io.js.map.hash +0 -1
- package/ktor-ktor-serialization-kotlinx-json.js.hash +0 -1
- package/ktor-ktor-serialization-kotlinx-json.js.map.hash +0 -1
- package/ktor-ktor-serialization-kotlinx.js.hash +0 -1
- package/ktor-ktor-serialization-kotlinx.js.map.hash +0 -1
- package/ktor-ktor-serialization.js.hash +0 -1
- package/ktor-ktor-serialization.js.map.hash +0 -1
- package/ktor-ktor-utils.js.hash +0 -1
- package/ktor-ktor-utils.js.map.hash +0 -1
- package/ktor-ktor-websocket-serialization.js.hash +0 -1
- package/ktor-ktor-websocket-serialization.js.map.hash +0 -1
- package/ktor-ktor-websockets.js.hash +0 -1
- package/ktor-ktor-websockets.js.map.hash +0 -1
- package/mrs-toolbox-cli.d.ts.hash +0 -1
- package/mrs-toolbox-cli.js.hash +0 -1
- package/mrs-toolbox-cli.js.map.hash +0 -1
- package/static/access.query.txt.hash +0 -1
- package/static/demo.test.ts.txt.hash +0 -1
- package/static/git.ignore.hash +0 -1
- package/static/graph.query.txt.hash +0 -1
- package/static/hook.ts.txt.hash +0 -1
- package/static/mrscconfig.json.hash +0 -1
- package/static/readme.md.hash +0 -1
- package/static/tsconfig.json.txt.hash +0 -1
- package/toolbox.js.hash +0 -1
- package/toolbox.js.map.hash +0 -1
- /package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map} +0 -0
|
@@ -1,22 +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 classMeta = kotlin_kotlin.$_$.
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
9
|
-
var
|
|
10
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.dc;
|
|
5
|
+
var classMeta = kotlin_kotlin.$_$.va;
|
|
6
|
+
var setMetadataFor = kotlin_kotlin.$_$.ec;
|
|
7
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
8
|
+
var CoroutineImpl = kotlin_kotlin.$_$.fa;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.ng;
|
|
11
11
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
12
|
-
var
|
|
13
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q8;
|
|
12
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r9;
|
|
14
13
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
15
14
|
var contentType = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
16
15
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
17
|
-
var plus = kotlin_kotlin.$_$.
|
|
18
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
19
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
16
|
+
var plus = kotlin_kotlin.$_$.g8;
|
|
17
|
+
var toMutableSet = kotlin_kotlin.$_$.f9;
|
|
18
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
20
19
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
21
20
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
22
21
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
@@ -24,49 +23,49 @@
|
|
|
24
23
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
25
24
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
26
25
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
27
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
26
|
+
var objectMeta = kotlin_kotlin.$_$.cc;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.ic;
|
|
29
28
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
30
|
-
var Collection = kotlin_kotlin.$_$.
|
|
31
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
+
var Collection = kotlin_kotlin.$_$.i5;
|
|
30
|
+
var isInterface = kotlin_kotlin.$_$.pb;
|
|
32
31
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
|
|
33
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
32
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
34
33
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.z;
|
|
35
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
36
35
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
37
|
-
var Unit = kotlin_kotlin.$_$.
|
|
36
|
+
var Unit = kotlin_kotlin.$_$.yg;
|
|
38
37
|
var charset = kotlin_io_ktor_ktor_http.$_$.x;
|
|
39
38
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.f;
|
|
40
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
41
|
-
var
|
|
42
|
-
var equals = kotlin_kotlin.$_$.
|
|
43
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
39
|
+
var ensureNotNull = kotlin_kotlin.$_$.eh;
|
|
40
|
+
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
41
|
+
var equals = kotlin_kotlin.$_$.ya;
|
|
42
|
+
var joinToString = kotlin_kotlin.$_$.k7;
|
|
44
43
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
45
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
46
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
44
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
45
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
47
46
|
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.$_$.
|
|
47
|
+
var Exception = kotlin_kotlin.$_$.eg;
|
|
48
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.m1;
|
|
49
|
+
var captureStack = kotlin_kotlin.$_$.pa;
|
|
51
50
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
52
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
51
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.x4;
|
|
53
52
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.r;
|
|
54
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
55
|
-
var setOf = kotlin_kotlin.$_$.
|
|
56
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
57
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
58
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
53
|
+
var getKClass = kotlin_kotlin.$_$.f;
|
|
54
|
+
var setOf = kotlin_kotlin.$_$.o8;
|
|
55
|
+
var endsWith = kotlin_kotlin.$_$.rd;
|
|
56
|
+
var startsWith = kotlin_kotlin.$_$.ve;
|
|
57
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
59
58
|
//endregion
|
|
60
59
|
//region block: pre-declaration
|
|
61
60
|
setMetadataFor(ConverterRegistration, 'ConverterRegistration', classMeta);
|
|
62
61
|
setMetadataFor(ContentNegotiation$Config$defaultMatcher$1, VOID, classMeta);
|
|
63
|
-
setMetadataFor(ContentNegotiation$Plugin$install$slambda, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [2]);
|
|
64
|
-
setMetadataFor(ContentNegotiation$Plugin$install$slambda_1, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [2]);
|
|
65
|
-
setMetadataFor(Config, 'Config', classMeta, VOID, [Configuration]);
|
|
62
|
+
setMetadataFor(ContentNegotiation$Plugin$install$slambda, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]);
|
|
63
|
+
setMetadataFor(ContentNegotiation$Plugin$install$slambda_1, 'ContentNegotiation$Plugin$install$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]);
|
|
64
|
+
setMetadataFor(Config, 'Config', classMeta, VOID, [Configuration], Config);
|
|
66
65
|
setMetadataFor(Plugin, 'Plugin', objectMeta, VOID, [HttpClientPlugin]);
|
|
67
66
|
setMetadataFor($convertRequestCOROUTINE$0, '$convertRequestCOROUTINE$0', classMeta, CoroutineImpl);
|
|
68
67
|
setMetadataFor($convertResponseCOROUTINE$1, '$convertResponseCOROUTINE$1', classMeta, CoroutineImpl);
|
|
69
|
-
setMetadataFor(ContentNegotiation, 'ContentNegotiation', classMeta, VOID, VOID, VOID, VOID, [2, 5]);
|
|
68
|
+
setMetadataFor(ContentNegotiation, 'ContentNegotiation', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 5]);
|
|
70
69
|
setMetadataFor(ContentConverterException, 'ContentConverterException', classMeta, Exception);
|
|
71
70
|
setMetadataFor(JsonContentTypeMatcher, 'JsonContentTypeMatcher', objectMeta);
|
|
72
71
|
//endregion
|
|
@@ -81,240 +80,232 @@
|
|
|
81
80
|
}
|
|
82
81
|
var DefaultCommonIgnoredTypes;
|
|
83
82
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
83
|
+
this.u4v_1 = converter;
|
|
84
|
+
this.v4v_1 = contentTypeToSend;
|
|
85
|
+
this.w4v_1 = contentTypeMatcher;
|
|
87
86
|
}
|
|
88
87
|
function defaultMatcher($this, pattern) {
|
|
89
88
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
90
89
|
}
|
|
91
90
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
92
|
-
this.
|
|
91
|
+
this.x4v_1 = $pattern;
|
|
93
92
|
}
|
|
94
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
95
|
-
return contentType.
|
|
93
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).y4v = function (contentType) {
|
|
94
|
+
return contentType.r1s(this.x4v_1);
|
|
96
95
|
};
|
|
97
96
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
98
|
-
this.
|
|
97
|
+
this.h4w_1 = $plugin;
|
|
99
98
|
CoroutineImpl.call(this, resultContinuation);
|
|
100
99
|
}
|
|
101
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
102
|
-
var tmp = this.
|
|
103
|
-
tmp.
|
|
104
|
-
tmp.
|
|
105
|
-
return tmp.
|
|
100
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).w3v = function ($this$intercept, it, $completion) {
|
|
101
|
+
var tmp = this.x3v($this$intercept, it, $completion);
|
|
102
|
+
tmp.zc_1 = Unit_instance;
|
|
103
|
+
tmp.ad_1 = null;
|
|
104
|
+
return tmp.kd();
|
|
106
105
|
};
|
|
107
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
106
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).oj = function (p1, p2, $completion) {
|
|
108
107
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
109
|
-
return this.
|
|
108
|
+
return this.w3v(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
110
109
|
};
|
|
111
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
112
|
-
var suspendResult = this.
|
|
110
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).kd = function () {
|
|
111
|
+
var suspendResult = this.zc_1;
|
|
113
112
|
$sm: do
|
|
114
113
|
try {
|
|
115
|
-
var tmp = this.
|
|
114
|
+
var tmp = this.xc_1;
|
|
116
115
|
switch (tmp) {
|
|
117
116
|
case 0:
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
suspendResult = this.
|
|
117
|
+
this.yc_1 = 3;
|
|
118
|
+
this.xc_1 = 1;
|
|
119
|
+
suspendResult = this.h4w_1.o4w(this.i4w_1.b1q_1, this.i4w_1.e1p(), this);
|
|
121
120
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
122
121
|
return suspendResult;
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
continue $sm;
|
|
126
125
|
case 1:
|
|
127
|
-
this.
|
|
126
|
+
this.k4w_1 = suspendResult;
|
|
128
127
|
var tmp_0 = this;
|
|
129
128
|
var tmp_1;
|
|
130
|
-
if (this.
|
|
131
|
-
return
|
|
129
|
+
if (this.k4w_1 == null) {
|
|
130
|
+
return Unit_instance;
|
|
132
131
|
} else {
|
|
133
|
-
tmp_1 = this.
|
|
132
|
+
tmp_1 = this.k4w_1;
|
|
134
133
|
}
|
|
135
134
|
|
|
136
|
-
tmp_0.
|
|
137
|
-
this.
|
|
138
|
-
suspendResult = this.
|
|
135
|
+
tmp_0.l4w_1 = tmp_1;
|
|
136
|
+
this.xc_1 = 2;
|
|
137
|
+
suspendResult = this.i4w_1.f1p(this.l4w_1, this);
|
|
139
138
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
140
139
|
return suspendResult;
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
continue $sm;
|
|
144
143
|
case 2:
|
|
145
|
-
;
|
|
146
|
-
return Unit_getInstance();
|
|
144
|
+
return Unit_instance;
|
|
147
145
|
case 3:
|
|
148
|
-
throw this.
|
|
146
|
+
throw this.ad_1;
|
|
149
147
|
}
|
|
150
148
|
} catch ($p) {
|
|
151
149
|
var e = $p;
|
|
152
|
-
if (this.
|
|
150
|
+
if (this.yc_1 === 3) {
|
|
153
151
|
throw e;
|
|
154
152
|
} else {
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
153
|
+
this.xc_1 = this.yc_1;
|
|
154
|
+
this.ad_1 = e;
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
while (true);
|
|
160
158
|
};
|
|
161
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
162
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
163
|
-
i.
|
|
164
|
-
i.
|
|
159
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).x3v = function ($this$intercept, it, completion) {
|
|
160
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.h4w_1, completion);
|
|
161
|
+
i.i4w_1 = $this$intercept;
|
|
162
|
+
i.j4w_1 = it;
|
|
165
163
|
return i;
|
|
166
164
|
};
|
|
167
165
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
168
166
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
169
167
|
var l = function ($this$intercept, it, $completion) {
|
|
170
|
-
return i.
|
|
168
|
+
return i.w3v($this$intercept, it, $completion);
|
|
171
169
|
};
|
|
172
170
|
l.$arity = 2;
|
|
173
171
|
return l;
|
|
174
172
|
}
|
|
175
173
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
176
|
-
this.
|
|
174
|
+
this.x4w_1 = $plugin;
|
|
177
175
|
CoroutineImpl.call(this, resultContinuation);
|
|
178
176
|
}
|
|
179
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
180
|
-
var tmp = this.
|
|
181
|
-
tmp.
|
|
182
|
-
tmp.
|
|
183
|
-
return tmp.
|
|
177
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).q3w = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
178
|
+
var tmp = this.r3w($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
179
|
+
tmp.zc_1 = Unit_instance;
|
|
180
|
+
tmp.ad_1 = null;
|
|
181
|
+
return tmp.kd();
|
|
184
182
|
};
|
|
185
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
183
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).oj = function (p1, p2, $completion) {
|
|
186
184
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
187
|
-
return this.
|
|
185
|
+
return this.q3w(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
188
186
|
};
|
|
189
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
190
|
-
var suspendResult = this.
|
|
187
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).kd = function () {
|
|
188
|
+
var suspendResult = this.zc_1;
|
|
191
189
|
$sm: do
|
|
192
190
|
try {
|
|
193
|
-
var tmp = this.
|
|
191
|
+
var tmp = this.xc_1;
|
|
194
192
|
switch (tmp) {
|
|
195
193
|
case 0:
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
194
|
+
this.yc_1 = 3;
|
|
195
|
+
this.a4x_1 = this.z4w_1.gf();
|
|
196
|
+
this.b4x_1 = this.z4w_1.hf();
|
|
199
197
|
var tmp_0 = this;
|
|
200
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
198
|
+
var tmp0_elvis_lhs = contentType(this.y4w_1.b1q_1.d3w());
|
|
201
199
|
var tmp_1;
|
|
202
200
|
if (tmp0_elvis_lhs == null) {
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
this.y4w_1;
|
|
202
|
+
get_LOGGER().w1q('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
203
|
+
return Unit_instance;
|
|
205
204
|
} else {
|
|
206
205
|
tmp_1 = tmp0_elvis_lhs;
|
|
207
206
|
}
|
|
208
207
|
|
|
209
|
-
tmp_0.
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
212
|
-
suspendResult = this.
|
|
208
|
+
tmp_0.c4x_1 = tmp_1;
|
|
209
|
+
this.d4x_1 = suitableCharset(this.y4w_1.b1q_1.m3z().z1w());
|
|
210
|
+
this.xc_1 = 1;
|
|
211
|
+
suspendResult = this.x4w_1.h4x(this.y4w_1.b1q_1.m3z().o3h(), this.a4x_1, this.b4x_1, this.c4x_1, this.d4x_1, this);
|
|
213
212
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
213
|
return suspendResult;
|
|
215
214
|
}
|
|
216
215
|
|
|
217
216
|
continue $sm;
|
|
218
217
|
case 1:
|
|
219
|
-
this.
|
|
218
|
+
this.e4x_1 = suspendResult;
|
|
220
219
|
var tmp_2 = this;
|
|
221
220
|
var tmp_3;
|
|
222
|
-
if (this.
|
|
223
|
-
return
|
|
221
|
+
if (this.e4x_1 == null) {
|
|
222
|
+
return Unit_instance;
|
|
224
223
|
} else {
|
|
225
|
-
tmp_3 = this.
|
|
224
|
+
tmp_3 = this.e4x_1;
|
|
226
225
|
}
|
|
227
226
|
|
|
228
|
-
tmp_2.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
231
|
-
suspendResult = this.
|
|
227
|
+
tmp_2.f4x_1 = tmp_3;
|
|
228
|
+
this.g4x_1 = new HttpResponseContainer(this.a4x_1, this.f4x_1);
|
|
229
|
+
this.xc_1 = 2;
|
|
230
|
+
suspendResult = this.y4w_1.f1p(this.g4x_1, this);
|
|
232
231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
233
232
|
return suspendResult;
|
|
234
233
|
}
|
|
235
234
|
|
|
236
235
|
continue $sm;
|
|
237
236
|
case 2:
|
|
238
|
-
;
|
|
239
|
-
return Unit_getInstance();
|
|
237
|
+
return Unit_instance;
|
|
240
238
|
case 3:
|
|
241
|
-
throw this.
|
|
239
|
+
throw this.ad_1;
|
|
242
240
|
}
|
|
243
241
|
} catch ($p) {
|
|
244
242
|
var e = $p;
|
|
245
|
-
if (this.
|
|
243
|
+
if (this.yc_1 === 3) {
|
|
246
244
|
throw e;
|
|
247
245
|
} else {
|
|
248
|
-
this.
|
|
249
|
-
this.
|
|
246
|
+
this.xc_1 = this.yc_1;
|
|
247
|
+
this.ad_1 = e;
|
|
250
248
|
}
|
|
251
249
|
}
|
|
252
250
|
while (true);
|
|
253
251
|
};
|
|
254
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
255
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
256
|
-
i.
|
|
257
|
-
i.
|
|
252
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).r3w = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
253
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.x4w_1, completion);
|
|
254
|
+
i.y4w_1 = $this$intercept;
|
|
255
|
+
i.z4w_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
258
256
|
return i;
|
|
259
257
|
};
|
|
260
258
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
261
259
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
262
260
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
263
|
-
return i.
|
|
261
|
+
return i.q3w($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
264
262
|
};
|
|
265
263
|
l.$arity = 2;
|
|
266
264
|
return l;
|
|
267
265
|
}
|
|
268
266
|
function Config() {
|
|
269
|
-
this.
|
|
267
|
+
this.i4x_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
270
268
|
var tmp = this;
|
|
271
|
-
var tmp$ret$0;
|
|
272
269
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
273
|
-
tmp
|
|
274
|
-
tmp.i37_1 = tmp$ret$0;
|
|
270
|
+
tmp.j4x_1 = ArrayList_init_$Create$();
|
|
275
271
|
}
|
|
276
|
-
protoOf(Config).
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
this.j37(contentType, converter, matcher, configuration);
|
|
272
|
+
protoOf(Config).l23 = function (contentType, converter, configuration) {
|
|
273
|
+
var matcher = contentType.equals(Application_getInstance().k1r_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
274
|
+
this.k4x(contentType, converter, matcher, configuration);
|
|
280
275
|
};
|
|
281
|
-
protoOf(Config).
|
|
282
|
-
var tmp$ret$0;
|
|
276
|
+
protoOf(Config).k4x = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
283
277
|
// Inline function 'kotlin.apply' call
|
|
284
278
|
// Inline function 'kotlin.contracts.contract' call
|
|
285
279
|
configuration(converter);
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
this.i37_1.a(registration);
|
|
280
|
+
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
281
|
+
this.j4x_1.s(registration);
|
|
289
282
|
};
|
|
290
283
|
function Plugin() {
|
|
291
284
|
Plugin_instance = this;
|
|
292
|
-
this.
|
|
285
|
+
this.l4x_1 = new AttributeKey('ContentNegotiation');
|
|
293
286
|
}
|
|
294
|
-
protoOf(Plugin).
|
|
295
|
-
return this.
|
|
287
|
+
protoOf(Plugin).r2 = function () {
|
|
288
|
+
return this.l4x_1;
|
|
296
289
|
};
|
|
297
|
-
protoOf(Plugin).
|
|
298
|
-
var tmp$ret$0;
|
|
290
|
+
protoOf(Plugin).m4x = function (block) {
|
|
299
291
|
// Inline function 'kotlin.apply' call
|
|
300
|
-
var
|
|
292
|
+
var this_0 = new Config();
|
|
301
293
|
// Inline function 'kotlin.contracts.contract' call
|
|
302
|
-
block(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return new ContentNegotiation(config.i37_1, config.h37_1);
|
|
294
|
+
block(this_0);
|
|
295
|
+
var config = this_0;
|
|
296
|
+
return new ContentNegotiation(config.j4x_1, config.i4x_1);
|
|
306
297
|
};
|
|
307
|
-
protoOf(Plugin).
|
|
308
|
-
return this.
|
|
298
|
+
protoOf(Plugin).h3y = function (block) {
|
|
299
|
+
return this.m4x(block);
|
|
309
300
|
};
|
|
310
|
-
protoOf(Plugin).
|
|
311
|
-
var tmp = Phases_getInstance().
|
|
312
|
-
scope.
|
|
313
|
-
var tmp_0 = Phases_getInstance_0().
|
|
314
|
-
scope.
|
|
301
|
+
protoOf(Plugin).n4x = function (plugin, scope) {
|
|
302
|
+
var tmp = Phases_getInstance().z43_1;
|
|
303
|
+
scope.c3v_1.f1q(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
304
|
+
var tmp_0 = Phases_getInstance_0().c3y_1;
|
|
305
|
+
scope.d3v_1.f1q(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
315
306
|
};
|
|
316
|
-
protoOf(Plugin).
|
|
317
|
-
return this.
|
|
307
|
+
protoOf(Plugin).i3y = function (plugin, scope) {
|
|
308
|
+
return this.n4x(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
318
309
|
};
|
|
319
310
|
var Plugin_instance;
|
|
320
311
|
function Plugin_getInstance() {
|
|
@@ -323,41 +314,40 @@
|
|
|
323
314
|
return Plugin_instance;
|
|
324
315
|
}
|
|
325
316
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
326
|
-
return toString(it.
|
|
317
|
+
return toString(it.u4v_1);
|
|
327
318
|
}
|
|
328
319
|
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
329
320
|
CoroutineImpl.call(this, resultContinuation);
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
321
|
+
this.w4x_1 = _this__u8e3s4;
|
|
322
|
+
this.x4x_1 = request;
|
|
323
|
+
this.y4x_1 = body;
|
|
333
324
|
}
|
|
334
|
-
protoOf($convertRequestCOROUTINE$0).
|
|
335
|
-
var suspendResult = this.
|
|
325
|
+
protoOf($convertRequestCOROUTINE$0).kd = function () {
|
|
326
|
+
var suspendResult = this.zc_1;
|
|
336
327
|
$sm: do
|
|
337
328
|
try {
|
|
338
|
-
var tmp = this.
|
|
329
|
+
var tmp = this.xc_1;
|
|
339
330
|
switch (tmp) {
|
|
340
331
|
case 0:
|
|
341
|
-
this.
|
|
342
|
-
var
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
accept(this.w37_1, element.u35_1);
|
|
332
|
+
this.yc_1 = 7;
|
|
333
|
+
var tmp0_iterator = this.w4x_1.m4w_1.v();
|
|
334
|
+
while (tmp0_iterator.w()) {
|
|
335
|
+
var element = tmp0_iterator.y();
|
|
336
|
+
get_LOGGER().w1q('Adding Accept=' + element.v4v_1.n1s_1 + ' header for ' + this.x4x_1.c3x_1);
|
|
337
|
+
accept(this.x4x_1, element.v4v_1);
|
|
348
338
|
}
|
|
349
339
|
|
|
350
340
|
var tmp_0;
|
|
351
|
-
var tmp_1 = this.
|
|
341
|
+
var tmp_1 = this.y4x_1;
|
|
352
342
|
if (tmp_1 instanceof OutgoingContent) {
|
|
353
343
|
tmp_0 = true;
|
|
354
344
|
} else {
|
|
355
345
|
var tmp$ret$0;
|
|
356
346
|
l$ret$1: do {
|
|
357
|
-
var
|
|
347
|
+
var this_0 = this.w4x_1.n4w_1;
|
|
358
348
|
var tmp_2;
|
|
359
|
-
if (isInterface(
|
|
360
|
-
tmp_2 =
|
|
349
|
+
if (isInterface(this_0, Collection)) {
|
|
350
|
+
tmp_2 = this_0.e1();
|
|
361
351
|
} else {
|
|
362
352
|
tmp_2 = false;
|
|
363
353
|
}
|
|
@@ -365,10 +355,10 @@
|
|
|
365
355
|
tmp$ret$0 = false;
|
|
366
356
|
break l$ret$1;
|
|
367
357
|
}
|
|
368
|
-
var tmp0_iterator_0 =
|
|
369
|
-
while (tmp0_iterator_0.
|
|
370
|
-
var element_0 = tmp0_iterator_0.
|
|
371
|
-
if (element_0.
|
|
358
|
+
var tmp0_iterator_0 = this_0.v();
|
|
359
|
+
while (tmp0_iterator_0.w()) {
|
|
360
|
+
var element_0 = tmp0_iterator_0.y();
|
|
361
|
+
if (element_0.w6(this.y4x_1)) {
|
|
372
362
|
tmp$ret$0 = true;
|
|
373
363
|
break l$ret$1;
|
|
374
364
|
}
|
|
@@ -380,43 +370,43 @@
|
|
|
380
370
|
}
|
|
381
371
|
|
|
382
372
|
if (tmp_0) {
|
|
383
|
-
get_LOGGER().
|
|
373
|
+
get_LOGGER().w1q('Body type ' + getKClassFromExpression(this.y4x_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.x4x_1.c3x_1 + '.'));
|
|
384
374
|
return null;
|
|
385
375
|
}
|
|
386
376
|
|
|
387
377
|
var tmp_3 = this;
|
|
388
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
378
|
+
var tmp0_elvis_lhs = contentType_0(this.x4x_1);
|
|
389
379
|
var tmp_4;
|
|
390
380
|
if (tmp0_elvis_lhs == null) {
|
|
391
|
-
|
|
381
|
+
this.w4x_1;
|
|
382
|
+
get_LOGGER().w1q("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.x4x_1.c3x_1 + '.');
|
|
392
383
|
return null;
|
|
393
384
|
} else {
|
|
394
385
|
tmp_4 = tmp0_elvis_lhs;
|
|
395
386
|
}
|
|
396
387
|
|
|
397
|
-
tmp_3.
|
|
398
|
-
var tmp_5 = this.
|
|
388
|
+
tmp_3.z4x_1 = tmp_4;
|
|
389
|
+
var tmp_5 = this.y4x_1;
|
|
399
390
|
if (tmp_5 instanceof Unit) {
|
|
400
|
-
get_LOGGER().
|
|
401
|
-
this.
|
|
391
|
+
get_LOGGER().w1q('Sending empty body for ' + this.x4x_1.c3x_1);
|
|
392
|
+
this.x4x_1.e3x_1.p1n(HttpHeaders_getInstance().o1t_1);
|
|
402
393
|
return EmptyContent_getInstance();
|
|
403
394
|
}
|
|
404
395
|
|
|
405
396
|
var tmp_6 = this;
|
|
406
|
-
var
|
|
407
|
-
var
|
|
408
|
-
var tmp0_iterator_1 =
|
|
409
|
-
while (tmp0_iterator_1.
|
|
410
|
-
var element_1 = tmp0_iterator_1.
|
|
411
|
-
if (element_1.
|
|
412
|
-
|
|
397
|
+
var this_1 = this.w4x_1.m4w_1;
|
|
398
|
+
var destination = ArrayList_init_$Create$();
|
|
399
|
+
var tmp0_iterator_1 = this_1.v();
|
|
400
|
+
while (tmp0_iterator_1.w()) {
|
|
401
|
+
var element_1 = tmp0_iterator_1.y();
|
|
402
|
+
if (element_1.w4v_1.y4v(this.z4x_1)) {
|
|
403
|
+
destination.s(element_1);
|
|
413
404
|
}
|
|
414
405
|
}
|
|
415
406
|
|
|
416
|
-
var tmp4_takeIf = tmp2_filterTo;
|
|
417
407
|
var tmp_7;
|
|
418
|
-
if (!
|
|
419
|
-
tmp_7 =
|
|
408
|
+
if (!destination.e1()) {
|
|
409
|
+
tmp_7 = destination;
|
|
420
410
|
} else {
|
|
421
411
|
tmp_7 = null;
|
|
422
412
|
}
|
|
@@ -424,44 +414,50 @@
|
|
|
424
414
|
var tmp1_elvis_lhs = tmp_7;
|
|
425
415
|
var tmp_8;
|
|
426
416
|
if (tmp1_elvis_lhs == null) {
|
|
427
|
-
|
|
417
|
+
this.w4x_1;
|
|
418
|
+
get_LOGGER().w1q('None of the registered converters match request Content-Type=' + this.z4x_1 + '. ' + ('Skipping ContentNegotiation for ' + this.x4x_1.c3x_1 + '.'));
|
|
428
419
|
return null;
|
|
429
420
|
} else {
|
|
430
421
|
tmp_8 = tmp1_elvis_lhs;
|
|
431
422
|
}
|
|
432
423
|
|
|
433
|
-
tmp_6.
|
|
434
|
-
if (this.
|
|
435
|
-
get_LOGGER().
|
|
424
|
+
tmp_6.a4y_1 = tmp_8;
|
|
425
|
+
if (this.x4x_1.f4m() == null) {
|
|
426
|
+
get_LOGGER().w1q('Request has unknown body type. Skipping ContentNegotiation for ' + this.x4x_1.c3x_1 + '.');
|
|
436
427
|
return null;
|
|
437
428
|
}
|
|
438
429
|
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
430
|
+
this.x4x_1.e3x_1.p1n(HttpHeaders_getInstance().o1t_1);
|
|
431
|
+
this.xc_1 = 1;
|
|
441
432
|
continue $sm;
|
|
442
433
|
case 1:
|
|
443
|
-
|
|
444
|
-
|
|
434
|
+
var tmp_9 = this;
|
|
435
|
+
tmp_9.c4y_1 = this.a4y_1;
|
|
436
|
+
this.d4y_1 = this.c4y_1.v();
|
|
437
|
+
this.xc_1 = 2;
|
|
445
438
|
continue $sm;
|
|
446
439
|
case 2:
|
|
447
|
-
if (!this.
|
|
448
|
-
this.
|
|
440
|
+
if (!this.d4y_1.w()) {
|
|
441
|
+
this.xc_1 = 5;
|
|
449
442
|
continue $sm;
|
|
450
443
|
}
|
|
451
444
|
|
|
452
|
-
this.
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
var
|
|
457
|
-
var tmp_11;
|
|
458
|
-
|
|
459
|
-
|
|
445
|
+
this.e4y_1 = this.d4y_1.y();
|
|
446
|
+
var tmp_10 = this;
|
|
447
|
+
tmp_10.f4y_1 = this.e4y_1;
|
|
448
|
+
this.xc_1 = 3;
|
|
449
|
+
var tmp0_elvis_lhs_0 = charset(this.z4x_1);
|
|
450
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().o1h_1 : tmp0_elvis_lhs_0;
|
|
451
|
+
var tmp_12 = ensureNotNull(this.x4x_1.f4m());
|
|
452
|
+
var this_2 = this.y4x_1;
|
|
453
|
+
var tmp_13;
|
|
454
|
+
if (!equals(this_2, NullBody_instance)) {
|
|
455
|
+
tmp_13 = this_2;
|
|
460
456
|
} else {
|
|
461
|
-
|
|
457
|
+
tmp_13 = null;
|
|
462
458
|
}
|
|
463
459
|
|
|
464
|
-
suspendResult = this.
|
|
460
|
+
suspendResult = this.f4y_1.u4v_1.o23(this.z4x_1, tmp_11, tmp_12, tmp_13, this);
|
|
465
461
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
466
462
|
return suspendResult;
|
|
467
463
|
}
|
|
@@ -470,109 +466,106 @@
|
|
|
470
466
|
case 3:
|
|
471
467
|
var result = suspendResult;
|
|
472
468
|
if (!(result == null)) {
|
|
473
|
-
get_LOGGER().
|
|
469
|
+
get_LOGGER().w1q('Converted request body using ' + this.f4y_1.u4v_1 + ' for ' + this.x4x_1.c3x_1);
|
|
474
470
|
}
|
|
475
471
|
|
|
476
472
|
var result_0 = result;
|
|
477
473
|
if (!(result_0 == null)) {
|
|
478
|
-
this.
|
|
479
|
-
this.
|
|
474
|
+
this.b4y_1 = result_0;
|
|
475
|
+
this.xc_1 = 6;
|
|
480
476
|
continue $sm;
|
|
481
477
|
} else {
|
|
482
|
-
this.
|
|
478
|
+
this.xc_1 = 4;
|
|
483
479
|
continue $sm;
|
|
484
480
|
}
|
|
485
481
|
|
|
486
|
-
break;
|
|
487
482
|
case 4:
|
|
488
|
-
this.
|
|
483
|
+
this.xc_1 = 2;
|
|
489
484
|
continue $sm;
|
|
490
485
|
case 5:
|
|
491
|
-
this.
|
|
486
|
+
this.b4y_1 = null;
|
|
492
487
|
if (false) {
|
|
493
|
-
this.
|
|
488
|
+
this.xc_1 = 1;
|
|
494
489
|
continue $sm;
|
|
495
490
|
}
|
|
496
491
|
|
|
497
|
-
this.
|
|
492
|
+
this.xc_1 = 6;
|
|
498
493
|
continue $sm;
|
|
499
494
|
case 6:
|
|
500
|
-
var tmp2_elvis_lhs = this.
|
|
501
|
-
var
|
|
495
|
+
var tmp2_elvis_lhs = this.b4y_1;
|
|
496
|
+
var tmp_14;
|
|
502
497
|
if (tmp2_elvis_lhs == null) {
|
|
503
|
-
var
|
|
504
|
-
throw new ContentConverterException(
|
|
498
|
+
var tmp_15 = "Can't convert " + toString(this.y4x_1) + ' with contentType ' + this.z4x_1 + ' using converters ';
|
|
499
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.a4y_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
505
500
|
} else {
|
|
506
|
-
|
|
501
|
+
tmp_14 = tmp2_elvis_lhs;
|
|
507
502
|
}
|
|
508
503
|
|
|
509
|
-
var serializedContent =
|
|
504
|
+
var serializedContent = tmp_14;
|
|
510
505
|
return serializedContent;
|
|
511
506
|
case 7:
|
|
512
|
-
throw this.
|
|
507
|
+
throw this.ad_1;
|
|
513
508
|
}
|
|
514
509
|
} catch ($p) {
|
|
515
510
|
var e = $p;
|
|
516
|
-
if (this.
|
|
511
|
+
if (this.yc_1 === 7) {
|
|
517
512
|
throw e;
|
|
518
513
|
} else {
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
514
|
+
this.xc_1 = this.yc_1;
|
|
515
|
+
this.ad_1 = e;
|
|
521
516
|
}
|
|
522
517
|
}
|
|
523
518
|
while (true);
|
|
524
519
|
};
|
|
525
520
|
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
526
521
|
CoroutineImpl.call(this, resultContinuation);
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
522
|
+
this.o4y_1 = _this__u8e3s4;
|
|
523
|
+
this.p4y_1 = requestUrl;
|
|
524
|
+
this.q4y_1 = info;
|
|
525
|
+
this.r4y_1 = body;
|
|
526
|
+
this.s4y_1 = responseContentType;
|
|
527
|
+
this.t4y_1 = charset;
|
|
533
528
|
}
|
|
534
|
-
protoOf($convertResponseCOROUTINE$1).
|
|
535
|
-
var suspendResult = this.
|
|
529
|
+
protoOf($convertResponseCOROUTINE$1).kd = function () {
|
|
530
|
+
var suspendResult = this.zc_1;
|
|
536
531
|
$sm: do
|
|
537
532
|
try {
|
|
538
|
-
var tmp = this.
|
|
533
|
+
var tmp = this.xc_1;
|
|
539
534
|
switch (tmp) {
|
|
540
535
|
case 0:
|
|
541
|
-
this.
|
|
542
|
-
var tmp_0 = this.
|
|
536
|
+
this.yc_1 = 2;
|
|
537
|
+
var tmp_0 = this.r4y_1;
|
|
543
538
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
544
|
-
get_LOGGER().
|
|
539
|
+
get_LOGGER().w1q('Response body is already transformed. Skipping ContentNegotiation for ' + this.p4y_1 + '.');
|
|
545
540
|
return null;
|
|
546
541
|
}
|
|
547
542
|
|
|
548
|
-
if (this.
|
|
549
|
-
get_LOGGER().
|
|
543
|
+
if (this.o4y_1.n4w_1.r(this.q4y_1.s1q_1)) {
|
|
544
|
+
get_LOGGER().w1q('Response body type ' + this.q4y_1.s1q_1 + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.p4y_1 + '.'));
|
|
550
545
|
return null;
|
|
551
546
|
}
|
|
552
547
|
|
|
553
548
|
var tmp_1 = this;
|
|
554
|
-
var
|
|
555
|
-
var
|
|
556
|
-
var tmp0_iterator =
|
|
557
|
-
while (tmp0_iterator.
|
|
558
|
-
var element = tmp0_iterator.
|
|
559
|
-
if (element.
|
|
560
|
-
|
|
549
|
+
var this_0 = this.o4y_1.m4w_1;
|
|
550
|
+
var destination = ArrayList_init_$Create$();
|
|
551
|
+
var tmp0_iterator = this_0.v();
|
|
552
|
+
while (tmp0_iterator.w()) {
|
|
553
|
+
var element = tmp0_iterator.y();
|
|
554
|
+
if (element.w4v_1.y4v(this.s4y_1)) {
|
|
555
|
+
destination.s(element);
|
|
561
556
|
}
|
|
562
557
|
}
|
|
563
558
|
|
|
564
|
-
var
|
|
565
|
-
var
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
tmp2_mapTo.a(item.t35_1);
|
|
559
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
560
|
+
var tmp0_iterator_0 = destination.v();
|
|
561
|
+
while (tmp0_iterator_0.w()) {
|
|
562
|
+
var item = tmp0_iterator_0.y();
|
|
563
|
+
destination_0.s(item.u4v_1);
|
|
570
564
|
}
|
|
571
565
|
|
|
572
|
-
var tmp4_takeIf = tmp2_mapTo;
|
|
573
566
|
var tmp_2;
|
|
574
|
-
if (!
|
|
575
|
-
tmp_2 =
|
|
567
|
+
if (!destination_0.e1()) {
|
|
568
|
+
tmp_2 = destination_0;
|
|
576
569
|
} else {
|
|
577
570
|
tmp_2 = null;
|
|
578
571
|
}
|
|
@@ -580,15 +573,16 @@
|
|
|
580
573
|
var tmp0_elvis_lhs = tmp_2;
|
|
581
574
|
var tmp_3;
|
|
582
575
|
if (tmp0_elvis_lhs == null) {
|
|
583
|
-
|
|
576
|
+
this.o4y_1;
|
|
577
|
+
get_LOGGER().w1q('None of the registered converters match response with Content-Type=' + this.s4y_1 + '. ' + ('Skipping ContentNegotiation for ' + this.p4y_1 + '.'));
|
|
584
578
|
return null;
|
|
585
579
|
} else {
|
|
586
580
|
tmp_3 = tmp0_elvis_lhs;
|
|
587
581
|
}
|
|
588
582
|
|
|
589
|
-
tmp_1.
|
|
590
|
-
this.
|
|
591
|
-
suspendResult = deserialize(this.
|
|
583
|
+
tmp_1.u4y_1 = tmp_3;
|
|
584
|
+
this.xc_1 = 1;
|
|
585
|
+
suspendResult = deserialize(this.u4y_1, this.r4y_1, this.q4y_1, this.t4y_1, this);
|
|
592
586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
593
587
|
return suspendResult;
|
|
594
588
|
}
|
|
@@ -597,40 +591,40 @@
|
|
|
597
591
|
case 1:
|
|
598
592
|
var result = suspendResult;
|
|
599
593
|
if (!isInterface(result, ByteReadChannel)) {
|
|
600
|
-
get_LOGGER().
|
|
594
|
+
get_LOGGER().w1q('Response body was converted to ' + getKClassFromExpression(result) + ' for ' + this.p4y_1 + '.');
|
|
601
595
|
}
|
|
602
596
|
|
|
603
597
|
return result;
|
|
604
598
|
case 2:
|
|
605
|
-
throw this.
|
|
599
|
+
throw this.ad_1;
|
|
606
600
|
}
|
|
607
601
|
} catch ($p) {
|
|
608
602
|
var e = $p;
|
|
609
|
-
if (this.
|
|
603
|
+
if (this.yc_1 === 2) {
|
|
610
604
|
throw e;
|
|
611
605
|
} else {
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
606
|
+
this.xc_1 = this.yc_1;
|
|
607
|
+
this.ad_1 = e;
|
|
614
608
|
}
|
|
615
609
|
}
|
|
616
610
|
while (true);
|
|
617
611
|
};
|
|
618
612
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
619
613
|
Plugin_getInstance();
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
614
|
+
this.m4w_1 = registrations;
|
|
615
|
+
this.n4w_1 = ignoredTypes;
|
|
622
616
|
}
|
|
623
|
-
protoOf(ContentNegotiation).
|
|
617
|
+
protoOf(ContentNegotiation).o4w = function (request, body, $completion) {
|
|
624
618
|
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
625
|
-
tmp.
|
|
626
|
-
tmp.
|
|
627
|
-
return tmp.
|
|
619
|
+
tmp.zc_1 = Unit_instance;
|
|
620
|
+
tmp.ad_1 = null;
|
|
621
|
+
return tmp.kd();
|
|
628
622
|
};
|
|
629
|
-
protoOf(ContentNegotiation).
|
|
623
|
+
protoOf(ContentNegotiation).h4x = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
630
624
|
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
631
|
-
tmp.
|
|
632
|
-
tmp.
|
|
633
|
-
return tmp.
|
|
625
|
+
tmp.zc_1 = Unit_instance;
|
|
626
|
+
tmp.ad_1 = null;
|
|
627
|
+
return tmp.kd();
|
|
634
628
|
};
|
|
635
629
|
function ContentConverterException(message) {
|
|
636
630
|
Exception_init_$Init$(message, this);
|
|
@@ -638,27 +632,23 @@
|
|
|
638
632
|
}
|
|
639
633
|
var properties_initialized_ContentNegotiation_kt_1ayduy;
|
|
640
634
|
function _init_properties_ContentNegotiation_kt__o183go() {
|
|
641
|
-
if (properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
642
|
-
} else {
|
|
635
|
+
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
643
636
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
644
637
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
645
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
638
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().a8(), PrimitiveClasses_getInstance().w7(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
646
639
|
}
|
|
647
640
|
}
|
|
648
641
|
function JsonContentTypeMatcher() {
|
|
649
|
-
JsonContentTypeMatcher_instance = this;
|
|
650
642
|
}
|
|
651
|
-
protoOf(JsonContentTypeMatcher).
|
|
652
|
-
if (contentType.
|
|
643
|
+
protoOf(JsonContentTypeMatcher).y4v = function (contentType) {
|
|
644
|
+
if (contentType.r1s(Application_getInstance().k1r_1)) {
|
|
653
645
|
return true;
|
|
654
646
|
}
|
|
655
|
-
var value = contentType.
|
|
647
|
+
var value = contentType.q1s().toString();
|
|
656
648
|
return startsWith(value, 'application/') ? endsWith(value, '+json') : false;
|
|
657
649
|
};
|
|
658
650
|
var JsonContentTypeMatcher_instance;
|
|
659
651
|
function JsonContentTypeMatcher_getInstance() {
|
|
660
|
-
if (JsonContentTypeMatcher_instance == null)
|
|
661
|
-
new JsonContentTypeMatcher();
|
|
662
652
|
return JsonContentTypeMatcher_instance;
|
|
663
653
|
}
|
|
664
654
|
function get_DefaultIgnoredTypes() {
|
|
@@ -668,23 +658,23 @@
|
|
|
668
658
|
var DefaultIgnoredTypes;
|
|
669
659
|
var properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt;
|
|
670
660
|
function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
|
|
671
|
-
if (properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
|
|
672
|
-
} else {
|
|
661
|
+
if (!properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
|
|
673
662
|
properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt = true;
|
|
674
|
-
var tmp$ret$0;
|
|
675
663
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
676
|
-
|
|
677
|
-
DefaultIgnoredTypes = tmp$ret$0;
|
|
664
|
+
DefaultIgnoredTypes = LinkedHashSet_init_$Create$();
|
|
678
665
|
}
|
|
679
666
|
}
|
|
680
667
|
//region block: post-declaration
|
|
681
|
-
protoOf(Config).
|
|
668
|
+
protoOf(Config).m23 = register$default;
|
|
669
|
+
//endregion
|
|
670
|
+
//region block: init
|
|
671
|
+
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|
|
682
672
|
//endregion
|
|
683
673
|
//region block: exports
|
|
684
674
|
_.$_$ = _.$_$ || {};
|
|
685
675
|
_.$_$.a = Plugin_getInstance;
|
|
686
676
|
//endregion
|
|
687
677
|
return _;
|
|
688
|
-
}(module.exports, require('./kotlin-kotlin-stdlib
|
|
678
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-serialization.js'), require('./ktor-ktor-io.js')));
|
|
689
679
|
|
|
690
680
|
//# sourceMappingURL=ktor-ktor-client-content-negotiation.js.map
|