mrs-toolbox-cli 0.0.1 → 0.0.11
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 +53 -72
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js → Kotlin-DateTime-library-kotlinx-datetime.js} +1 -1
- package/app.properties +1 -0
- package/clikt-clikt-mordant.js +245 -0
- package/clikt-clikt-mordant.js.map +1 -0
- package/clikt-clikt.js +6653 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +1670 -0
- package/colormath-root-colormath.js.map +1 -0
- package/com.mrs.platform.configuration.dto.js +11391 -9555
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +16354 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-logging-js-ir.js +88 -111
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-node.js +14 -5
- package/kotlin-node.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-html.js +8 -0
- package/kotlinx-html.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6098 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +5116 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3931 -3753
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +293 -302
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +3108 -3459
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +21 -27
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +1241 -1722
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2222 -3125
- 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 +365 -396
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +154 -150
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +749 -943
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +102 -116
- 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 +7129 -0
- package/mordant-mordant.js.map +1 -0
- package/mrs-toolbox-cli.d.ts +801 -829
- package/mrs-toolbox-cli.js +1055 -264
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +3 -2
- package/static/demo.test.ts.txt +1 -1
- package/static/init/hooks.webpack.config.js +35 -0
- package/static/init/webpackRoot.config.js +35 -0
- package/static/mrscconfig.json +0 -1
- package/toolbox.js +14903 -12592
- 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 +0 -15789
- 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 -5102
- 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-DateTime-library-kotlinx-datetime.js.map} +0 -0
|
@@ -1,74 +1,74 @@
|
|
|
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
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var Unit_getInstance = kotlin_kotlin.$_$.v4;
|
|
10
|
-
var THROW_CCE = kotlin_kotlin.$_$.pe;
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.dc;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.db;
|
|
6
|
+
var CoroutineImpl = kotlin_kotlin.$_$.da;
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
8
|
+
var THROW_CCE = kotlin_kotlin.$_$.rg;
|
|
11
9
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
10
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n9;
|
|
11
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ib;
|
|
12
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
13
|
+
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
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.$_$.h8;
|
|
17
|
+
var toMutableSet = kotlin_kotlin.$_$.e9;
|
|
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;
|
|
23
22
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
24
|
-
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.
|
|
25
|
-
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.
|
|
26
|
-
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.
|
|
27
|
-
var
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
29
|
-
var accept = kotlin_io_ktor_ktor_client_core.$_$.
|
|
30
|
-
var Collection = kotlin_kotlin.$_$.
|
|
31
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
23
|
+
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
24
|
+
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
25
|
+
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
26
|
+
var initMetadataForObject = kotlin_kotlin.$_$.jb;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.ic;
|
|
28
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
29
|
+
var Collection = kotlin_kotlin.$_$.i5;
|
|
30
|
+
var isInterface = kotlin_kotlin.$_$.sb;
|
|
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
|
-
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.
|
|
37
|
-
var Unit = kotlin_kotlin.$_$.
|
|
35
|
+
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
36
|
+
var Unit = kotlin_kotlin.$_$.ch;
|
|
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.$_$.jh;
|
|
40
|
+
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
41
|
+
var equals = kotlin_kotlin.$_$.va;
|
|
42
|
+
var joinToString = kotlin_kotlin.$_$.l7;
|
|
43
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.fb;
|
|
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.$_$.d6;
|
|
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.$_$.jg;
|
|
49
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.k1;
|
|
50
|
+
var captureStack = kotlin_kotlin.$_$.na;
|
|
51
51
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
52
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
52
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.v4;
|
|
53
53
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.r;
|
|
54
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
55
|
-
var setOf = kotlin_kotlin.$_$.
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
54
|
+
var getKClass = kotlin_kotlin.$_$.f;
|
|
55
|
+
var setOf = kotlin_kotlin.$_$.q8;
|
|
56
|
+
var startsWith = kotlin_kotlin.$_$.af;
|
|
57
|
+
var endsWith = kotlin_kotlin.$_$.xd;
|
|
58
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
59
59
|
//endregion
|
|
60
60
|
//region block: pre-declaration
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
62
|
+
initMetadataForClass(ContentNegotiation$Config$defaultMatcher$1);
|
|
63
|
+
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda, CoroutineImpl, VOID, [2]);
|
|
64
|
+
initMetadataForLambda(ContentNegotiation$Plugin$install$slambda_1, CoroutineImpl, VOID, [2]);
|
|
65
|
+
initMetadataForClass(Config, 'Config', Config, VOID, [Configuration]);
|
|
66
|
+
initMetadataForObject(Plugin, 'Plugin', VOID, VOID, [HttpClientPlugin]);
|
|
67
|
+
initMetadataForCoroutine($convertRequestCOROUTINE$0, CoroutineImpl);
|
|
68
|
+
initMetadataForCoroutine($convertResponseCOROUTINE$1, CoroutineImpl);
|
|
69
|
+
initMetadataForClass(ContentNegotiation, 'ContentNegotiation', VOID, VOID, VOID, [2, 5]);
|
|
70
|
+
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
71
|
+
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
72
72
|
//endregion
|
|
73
73
|
function get_LOGGER() {
|
|
74
74
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
@@ -81,240 +81,232 @@
|
|
|
81
81
|
}
|
|
82
82
|
var DefaultCommonIgnoredTypes;
|
|
83
83
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
84
|
+
this.m53_1 = converter;
|
|
85
|
+
this.n53_1 = contentTypeToSend;
|
|
86
|
+
this.o53_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.p53_1 = $pattern;
|
|
93
93
|
}
|
|
94
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
95
|
-
return contentType.
|
|
94
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).q53 = function (contentType) {
|
|
95
|
+
return contentType.b20(this.p53_1);
|
|
96
96
|
};
|
|
97
97
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
98
|
-
this.
|
|
98
|
+
this.z53_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).o43 = function ($this$intercept, it, $completion) {
|
|
102
|
+
var tmp = this.p43($this$intercept, it, $completion);
|
|
103
|
+
tmp.n9_1 = Unit_instance;
|
|
104
|
+
tmp.o9_1 = null;
|
|
105
|
+
return tmp.t9();
|
|
106
106
|
};
|
|
107
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.o43(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.z53_1.g54(this.a54_1.n1x_1, this.a54_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.c54_1 = suspendResult;
|
|
128
128
|
var tmp_0 = this;
|
|
129
129
|
var tmp_1;
|
|
130
|
-
if (this.
|
|
131
|
-
return
|
|
130
|
+
if (this.c54_1 == null) {
|
|
131
|
+
return Unit_instance;
|
|
132
132
|
} else {
|
|
133
|
-
tmp_1 = this.
|
|
133
|
+
tmp_1 = this.c54_1;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
tmp_0.
|
|
137
|
-
this.
|
|
138
|
-
suspendResult = this.
|
|
136
|
+
tmp_0.d54_1 = tmp_1;
|
|
137
|
+
this.l9_1 = 2;
|
|
138
|
+
suspendResult = this.a54_1.r1w(this.d54_1, this);
|
|
139
139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
140
140
|
return suspendResult;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
continue $sm;
|
|
144
144
|
case 2:
|
|
145
|
-
;
|
|
146
|
-
return Unit_getInstance();
|
|
145
|
+
return Unit_instance;
|
|
147
146
|
case 3:
|
|
148
|
-
throw this.
|
|
147
|
+
throw this.o9_1;
|
|
149
148
|
}
|
|
150
149
|
} catch ($p) {
|
|
151
150
|
var e = $p;
|
|
152
|
-
if (this.
|
|
151
|
+
if (this.m9_1 === 3) {
|
|
153
152
|
throw e;
|
|
154
153
|
} else {
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
154
|
+
this.l9_1 = this.m9_1;
|
|
155
|
+
this.o9_1 = e;
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
158
|
while (true);
|
|
160
159
|
};
|
|
161
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
162
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
163
|
-
i.
|
|
164
|
-
i.
|
|
160
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).p43 = function ($this$intercept, it, completion) {
|
|
161
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.z53_1, completion);
|
|
162
|
+
i.a54_1 = $this$intercept;
|
|
163
|
+
i.b54_1 = it;
|
|
165
164
|
return i;
|
|
166
165
|
};
|
|
167
166
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
168
167
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
169
168
|
var l = function ($this$intercept, it, $completion) {
|
|
170
|
-
return i.
|
|
169
|
+
return i.o43($this$intercept, it, $completion);
|
|
171
170
|
};
|
|
172
171
|
l.$arity = 2;
|
|
173
172
|
return l;
|
|
174
173
|
}
|
|
175
174
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
176
|
-
this.
|
|
175
|
+
this.p54_1 = $plugin;
|
|
177
176
|
CoroutineImpl.call(this, resultContinuation);
|
|
178
177
|
}
|
|
179
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
180
|
-
var tmp = this.
|
|
181
|
-
tmp.
|
|
182
|
-
tmp.
|
|
183
|
-
return tmp.
|
|
178
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).i44 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
179
|
+
var tmp = this.j44($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
180
|
+
tmp.n9_1 = Unit_instance;
|
|
181
|
+
tmp.o9_1 = null;
|
|
182
|
+
return tmp.t9();
|
|
184
183
|
};
|
|
185
184
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).ca = function (p1, p2, $completion) {
|
|
186
185
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
187
|
-
return this.
|
|
186
|
+
return this.i44(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
188
187
|
};
|
|
189
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
190
|
-
var suspendResult = this.
|
|
188
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).t9 = function () {
|
|
189
|
+
var suspendResult = this.n9_1;
|
|
191
190
|
$sm: do
|
|
192
191
|
try {
|
|
193
|
-
var tmp = this.
|
|
192
|
+
var tmp = this.l9_1;
|
|
194
193
|
switch (tmp) {
|
|
195
194
|
case 0:
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
195
|
+
this.m9_1 = 3;
|
|
196
|
+
this.s54_1 = this.r54_1.qg();
|
|
197
|
+
this.t54_1 = this.r54_1.rg();
|
|
199
198
|
var tmp_0 = this;
|
|
200
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
199
|
+
var tmp0_elvis_lhs = contentType(this.q54_1.n1x_1.v43());
|
|
201
200
|
var tmp_1;
|
|
202
201
|
if (tmp0_elvis_lhs == null) {
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
this.q54_1;
|
|
203
|
+
get_LOGGER().h1y('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
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.u54_1 = tmp_1;
|
|
210
|
+
this.v54_1 = suitableCharset(this.q54_1.n1x_1.d47().j24());
|
|
211
|
+
this.l9_1 = 1;
|
|
212
|
+
suspendResult = this.p54_1.z54(this.q54_1.n1x_1.d47().f3p(), this.s54_1, this.t54_1, this.u54_1, this.v54_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.w54_1 = suspendResult;
|
|
220
220
|
var tmp_2 = this;
|
|
221
221
|
var tmp_3;
|
|
222
|
-
if (this.
|
|
223
|
-
return
|
|
222
|
+
if (this.w54_1 == null) {
|
|
223
|
+
return Unit_instance;
|
|
224
224
|
} else {
|
|
225
|
-
tmp_3 = this.
|
|
225
|
+
tmp_3 = this.w54_1;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
tmp_2.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
231
|
-
suspendResult = this.
|
|
228
|
+
tmp_2.x54_1 = tmp_3;
|
|
229
|
+
this.y54_1 = new HttpResponseContainer(this.s54_1, this.x54_1);
|
|
230
|
+
this.l9_1 = 2;
|
|
231
|
+
suspendResult = this.q54_1.r1w(this.y54_1, this);
|
|
232
232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
233
233
|
return suspendResult;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
continue $sm;
|
|
237
237
|
case 2:
|
|
238
|
-
;
|
|
239
|
-
return Unit_getInstance();
|
|
238
|
+
return Unit_instance;
|
|
240
239
|
case 3:
|
|
241
|
-
throw this.
|
|
240
|
+
throw this.o9_1;
|
|
242
241
|
}
|
|
243
242
|
} catch ($p) {
|
|
244
243
|
var e = $p;
|
|
245
|
-
if (this.
|
|
244
|
+
if (this.m9_1 === 3) {
|
|
246
245
|
throw e;
|
|
247
246
|
} else {
|
|
248
|
-
this.
|
|
249
|
-
this.
|
|
247
|
+
this.l9_1 = this.m9_1;
|
|
248
|
+
this.o9_1 = e;
|
|
250
249
|
}
|
|
251
250
|
}
|
|
252
251
|
while (true);
|
|
253
252
|
};
|
|
254
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
255
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
256
|
-
i.
|
|
257
|
-
i.
|
|
253
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).j44 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
254
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.p54_1, completion);
|
|
255
|
+
i.q54_1 = $this$intercept;
|
|
256
|
+
i.r54_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
258
257
|
return i;
|
|
259
258
|
};
|
|
260
259
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
261
260
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
262
261
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
263
|
-
return i.
|
|
262
|
+
return i.i44($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
264
263
|
};
|
|
265
264
|
l.$arity = 2;
|
|
266
265
|
return l;
|
|
267
266
|
}
|
|
268
267
|
function Config() {
|
|
269
|
-
this.
|
|
268
|
+
this.a55_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
270
269
|
var tmp = this;
|
|
271
|
-
var tmp$ret$0;
|
|
272
270
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
273
|
-
tmp
|
|
274
|
-
tmp.i37_1 = tmp$ret$0;
|
|
271
|
+
tmp.b55_1 = ArrayList_init_$Create$();
|
|
275
272
|
}
|
|
276
|
-
protoOf(Config).
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
this.j37(contentType, converter, matcher, configuration);
|
|
273
|
+
protoOf(Config).v2a = function (contentType, converter, configuration) {
|
|
274
|
+
var matcher = contentType.equals(Application_getInstance().u1y_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
275
|
+
this.c55(contentType, converter, matcher, configuration);
|
|
280
276
|
};
|
|
281
|
-
protoOf(Config).
|
|
282
|
-
var tmp$ret$0;
|
|
277
|
+
protoOf(Config).c55 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
283
278
|
// Inline function 'kotlin.apply' call
|
|
284
279
|
// Inline function 'kotlin.contracts.contract' call
|
|
285
280
|
configuration(converter);
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
this.i37_1.a(registration);
|
|
281
|
+
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
282
|
+
this.b55_1.e(registration);
|
|
289
283
|
};
|
|
290
284
|
function Plugin() {
|
|
291
285
|
Plugin_instance = this;
|
|
292
|
-
this.
|
|
286
|
+
this.d55_1 = new AttributeKey('ContentNegotiation');
|
|
293
287
|
}
|
|
294
|
-
protoOf(Plugin).
|
|
295
|
-
return this.
|
|
288
|
+
protoOf(Plugin).u = function () {
|
|
289
|
+
return this.d55_1;
|
|
296
290
|
};
|
|
297
|
-
protoOf(Plugin).
|
|
298
|
-
var tmp$ret$0;
|
|
291
|
+
protoOf(Plugin).e55 = function (block) {
|
|
299
292
|
// Inline function 'kotlin.apply' call
|
|
300
|
-
var
|
|
293
|
+
var this_0 = new Config();
|
|
301
294
|
// Inline function 'kotlin.contracts.contract' call
|
|
302
|
-
block(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return new ContentNegotiation(config.i37_1, config.h37_1);
|
|
295
|
+
block(this_0);
|
|
296
|
+
var config = this_0;
|
|
297
|
+
return new ContentNegotiation(config.b55_1, config.a55_1);
|
|
306
298
|
};
|
|
307
|
-
protoOf(Plugin).
|
|
308
|
-
return this.
|
|
299
|
+
protoOf(Plugin).z45 = function (block) {
|
|
300
|
+
return this.e55(block);
|
|
309
301
|
};
|
|
310
|
-
protoOf(Plugin).
|
|
311
|
-
var tmp = Phases_getInstance().
|
|
312
|
-
scope.
|
|
313
|
-
var tmp_0 = Phases_getInstance_0().
|
|
314
|
-
scope.
|
|
302
|
+
protoOf(Plugin).f55 = function (plugin, scope) {
|
|
303
|
+
var tmp = Phases_getInstance().p4b_1;
|
|
304
|
+
scope.u42_1.r1x(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
305
|
+
var tmp_0 = Phases_getInstance_0().u45_1;
|
|
306
|
+
scope.v42_1.r1x(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
315
307
|
};
|
|
316
|
-
protoOf(Plugin).
|
|
317
|
-
return this.
|
|
308
|
+
protoOf(Plugin).a46 = function (plugin, scope) {
|
|
309
|
+
return this.f55(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
318
310
|
};
|
|
319
311
|
var Plugin_instance;
|
|
320
312
|
function Plugin_getInstance() {
|
|
@@ -323,41 +315,40 @@
|
|
|
323
315
|
return Plugin_instance;
|
|
324
316
|
}
|
|
325
317
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
326
|
-
return toString(it.
|
|
318
|
+
return toString(it.m53_1);
|
|
327
319
|
}
|
|
328
320
|
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
329
321
|
CoroutineImpl.call(this, resultContinuation);
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
322
|
+
this.o55_1 = _this__u8e3s4;
|
|
323
|
+
this.p55_1 = request;
|
|
324
|
+
this.q55_1 = body;
|
|
333
325
|
}
|
|
334
|
-
protoOf($convertRequestCOROUTINE$0).
|
|
335
|
-
var suspendResult = this.
|
|
326
|
+
protoOf($convertRequestCOROUTINE$0).t9 = function () {
|
|
327
|
+
var suspendResult = this.n9_1;
|
|
336
328
|
$sm: do
|
|
337
329
|
try {
|
|
338
|
-
var tmp = this.
|
|
330
|
+
var tmp = this.l9_1;
|
|
339
331
|
switch (tmp) {
|
|
340
332
|
case 0:
|
|
341
|
-
this.
|
|
342
|
-
var
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
accept(this.w37_1, element.u35_1);
|
|
333
|
+
this.m9_1 = 7;
|
|
334
|
+
var tmp0_iterator = this.o55_1.e54_1.k();
|
|
335
|
+
while (tmp0_iterator.l()) {
|
|
336
|
+
var element = tmp0_iterator.m();
|
|
337
|
+
get_LOGGER().h1y('Adding Accept=' + element.n53_1.x1z_1 + ' header for ' + this.p55_1.u44_1.toString());
|
|
338
|
+
accept(this.p55_1, element.n53_1);
|
|
348
339
|
}
|
|
349
340
|
|
|
350
341
|
var tmp_0;
|
|
351
|
-
var tmp_1 = this.
|
|
342
|
+
var tmp_1 = this.q55_1;
|
|
352
343
|
if (tmp_1 instanceof OutgoingContent) {
|
|
353
344
|
tmp_0 = true;
|
|
354
345
|
} else {
|
|
355
346
|
var tmp$ret$0;
|
|
356
347
|
l$ret$1: do {
|
|
357
|
-
var
|
|
348
|
+
var this_0 = this.o55_1.f54_1;
|
|
358
349
|
var tmp_2;
|
|
359
|
-
if (isInterface(
|
|
360
|
-
tmp_2 =
|
|
350
|
+
if (isInterface(this_0, Collection)) {
|
|
351
|
+
tmp_2 = this_0.q();
|
|
361
352
|
} else {
|
|
362
353
|
tmp_2 = false;
|
|
363
354
|
}
|
|
@@ -365,10 +356,10 @@
|
|
|
365
356
|
tmp$ret$0 = false;
|
|
366
357
|
break l$ret$1;
|
|
367
358
|
}
|
|
368
|
-
var tmp0_iterator_0 =
|
|
369
|
-
while (tmp0_iterator_0.
|
|
370
|
-
var element_0 = tmp0_iterator_0.
|
|
371
|
-
if (element_0.
|
|
359
|
+
var tmp0_iterator_0 = this_0.k();
|
|
360
|
+
while (tmp0_iterator_0.l()) {
|
|
361
|
+
var element_0 = tmp0_iterator_0.m();
|
|
362
|
+
if (element_0.sa(this.q55_1)) {
|
|
372
363
|
tmp$ret$0 = true;
|
|
373
364
|
break l$ret$1;
|
|
374
365
|
}
|
|
@@ -380,43 +371,43 @@
|
|
|
380
371
|
}
|
|
381
372
|
|
|
382
373
|
if (tmp_0) {
|
|
383
|
-
get_LOGGER().
|
|
374
|
+
get_LOGGER().h1y('Body type ' + toString(getKClassFromExpression(this.q55_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.'));
|
|
384
375
|
return null;
|
|
385
376
|
}
|
|
386
377
|
|
|
387
378
|
var tmp_3 = this;
|
|
388
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
379
|
+
var tmp0_elvis_lhs = contentType_0(this.p55_1);
|
|
389
380
|
var tmp_4;
|
|
390
381
|
if (tmp0_elvis_lhs == null) {
|
|
391
|
-
|
|
382
|
+
this.o55_1;
|
|
383
|
+
get_LOGGER().h1y("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.p55_1.u44_1.toString() + '.');
|
|
392
384
|
return null;
|
|
393
385
|
} else {
|
|
394
386
|
tmp_4 = tmp0_elvis_lhs;
|
|
395
387
|
}
|
|
396
388
|
|
|
397
|
-
tmp_3.
|
|
398
|
-
var tmp_5 = this.
|
|
389
|
+
tmp_3.r55_1 = tmp_4;
|
|
390
|
+
var tmp_5 = this.q55_1;
|
|
399
391
|
if (tmp_5 instanceof Unit) {
|
|
400
|
-
get_LOGGER().
|
|
401
|
-
this.
|
|
392
|
+
get_LOGGER().h1y('Sending empty body for ' + this.p55_1.u44_1.toString());
|
|
393
|
+
this.p55_1.w44_1.b1v(HttpHeaders_getInstance().y20_1);
|
|
402
394
|
return EmptyContent_getInstance();
|
|
403
395
|
}
|
|
404
396
|
|
|
405
397
|
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
|
-
|
|
398
|
+
var this_1 = this.o55_1.e54_1;
|
|
399
|
+
var destination = ArrayList_init_$Create$();
|
|
400
|
+
var tmp0_iterator_1 = this_1.k();
|
|
401
|
+
while (tmp0_iterator_1.l()) {
|
|
402
|
+
var element_1 = tmp0_iterator_1.m();
|
|
403
|
+
if (element_1.o53_1.q53(this.r55_1)) {
|
|
404
|
+
destination.e(element_1);
|
|
413
405
|
}
|
|
414
406
|
}
|
|
415
407
|
|
|
416
|
-
var tmp4_takeIf = tmp2_filterTo;
|
|
417
408
|
var tmp_7;
|
|
418
|
-
if (!
|
|
419
|
-
tmp_7 =
|
|
409
|
+
if (!destination.q()) {
|
|
410
|
+
tmp_7 = destination;
|
|
420
411
|
} else {
|
|
421
412
|
tmp_7 = null;
|
|
422
413
|
}
|
|
@@ -424,44 +415,50 @@
|
|
|
424
415
|
var tmp1_elvis_lhs = tmp_7;
|
|
425
416
|
var tmp_8;
|
|
426
417
|
if (tmp1_elvis_lhs == null) {
|
|
427
|
-
|
|
418
|
+
this.o55_1;
|
|
419
|
+
get_LOGGER().h1y('None of the registered converters match request Content-Type=' + this.r55_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.'));
|
|
428
420
|
return null;
|
|
429
421
|
} else {
|
|
430
422
|
tmp_8 = tmp1_elvis_lhs;
|
|
431
423
|
}
|
|
432
424
|
|
|
433
|
-
tmp_6.
|
|
434
|
-
if (this.
|
|
435
|
-
get_LOGGER().
|
|
425
|
+
tmp_6.s55_1 = tmp_8;
|
|
426
|
+
if (this.p55_1.x4t() == null) {
|
|
427
|
+
get_LOGGER().h1y('Request has unknown body type. Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.');
|
|
436
428
|
return null;
|
|
437
429
|
}
|
|
438
430
|
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
431
|
+
this.p55_1.w44_1.b1v(HttpHeaders_getInstance().y20_1);
|
|
432
|
+
this.l9_1 = 1;
|
|
441
433
|
continue $sm;
|
|
442
434
|
case 1:
|
|
443
|
-
|
|
444
|
-
|
|
435
|
+
var tmp_9 = this;
|
|
436
|
+
tmp_9.u55_1 = this.s55_1;
|
|
437
|
+
this.v55_1 = this.u55_1.k();
|
|
438
|
+
this.l9_1 = 2;
|
|
445
439
|
continue $sm;
|
|
446
440
|
case 2:
|
|
447
|
-
if (!this.
|
|
448
|
-
this.
|
|
441
|
+
if (!this.v55_1.l()) {
|
|
442
|
+
this.l9_1 = 5;
|
|
449
443
|
continue $sm;
|
|
450
444
|
}
|
|
451
445
|
|
|
452
|
-
this.
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
var
|
|
457
|
-
var tmp_11;
|
|
458
|
-
|
|
459
|
-
|
|
446
|
+
this.w55_1 = this.v55_1.m();
|
|
447
|
+
var tmp_10 = this;
|
|
448
|
+
tmp_10.x55_1 = this.w55_1;
|
|
449
|
+
this.l9_1 = 3;
|
|
450
|
+
var tmp0_elvis_lhs_0 = charset(this.r55_1);
|
|
451
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().a1p_1 : tmp0_elvis_lhs_0;
|
|
452
|
+
var tmp_12 = ensureNotNull(this.p55_1.x4t());
|
|
453
|
+
var this_2 = this.q55_1;
|
|
454
|
+
var tmp_13;
|
|
455
|
+
if (!equals(this_2, NullBody_instance)) {
|
|
456
|
+
tmp_13 = this_2;
|
|
460
457
|
} else {
|
|
461
|
-
|
|
458
|
+
tmp_13 = null;
|
|
462
459
|
}
|
|
463
460
|
|
|
464
|
-
suspendResult = this.
|
|
461
|
+
suspendResult = this.x55_1.m53_1.y2a(this.r55_1, tmp_11, tmp_12, tmp_13, this);
|
|
465
462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
466
463
|
return suspendResult;
|
|
467
464
|
}
|
|
@@ -470,109 +467,106 @@
|
|
|
470
467
|
case 3:
|
|
471
468
|
var result = suspendResult;
|
|
472
469
|
if (!(result == null)) {
|
|
473
|
-
get_LOGGER().
|
|
470
|
+
get_LOGGER().h1y('Converted request body using ' + toString(this.x55_1.m53_1) + ' for ' + this.p55_1.u44_1.toString());
|
|
474
471
|
}
|
|
475
472
|
|
|
476
473
|
var result_0 = result;
|
|
477
474
|
if (!(result_0 == null)) {
|
|
478
|
-
this.
|
|
479
|
-
this.
|
|
475
|
+
this.t55_1 = result_0;
|
|
476
|
+
this.l9_1 = 6;
|
|
480
477
|
continue $sm;
|
|
481
478
|
} else {
|
|
482
|
-
this.
|
|
479
|
+
this.l9_1 = 4;
|
|
483
480
|
continue $sm;
|
|
484
481
|
}
|
|
485
482
|
|
|
486
|
-
break;
|
|
487
483
|
case 4:
|
|
488
|
-
this.
|
|
484
|
+
this.l9_1 = 2;
|
|
489
485
|
continue $sm;
|
|
490
486
|
case 5:
|
|
491
|
-
this.
|
|
487
|
+
this.t55_1 = null;
|
|
492
488
|
if (false) {
|
|
493
|
-
this.
|
|
489
|
+
this.l9_1 = 1;
|
|
494
490
|
continue $sm;
|
|
495
491
|
}
|
|
496
492
|
|
|
497
|
-
this.
|
|
493
|
+
this.l9_1 = 6;
|
|
498
494
|
continue $sm;
|
|
499
495
|
case 6:
|
|
500
|
-
var tmp2_elvis_lhs = this.
|
|
501
|
-
var
|
|
496
|
+
var tmp2_elvis_lhs = this.t55_1;
|
|
497
|
+
var tmp_14;
|
|
502
498
|
if (tmp2_elvis_lhs == null) {
|
|
503
|
-
var
|
|
504
|
-
throw new ContentConverterException(
|
|
499
|
+
var tmp_15 = "Can't convert " + toString(this.q55_1) + ' with contentType ' + this.r55_1.toString() + ' using converters ';
|
|
500
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.s55_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
505
501
|
} else {
|
|
506
|
-
|
|
502
|
+
tmp_14 = tmp2_elvis_lhs;
|
|
507
503
|
}
|
|
508
504
|
|
|
509
|
-
var serializedContent =
|
|
505
|
+
var serializedContent = tmp_14;
|
|
510
506
|
return serializedContent;
|
|
511
507
|
case 7:
|
|
512
|
-
throw this.
|
|
508
|
+
throw this.o9_1;
|
|
513
509
|
}
|
|
514
510
|
} catch ($p) {
|
|
515
511
|
var e = $p;
|
|
516
|
-
if (this.
|
|
512
|
+
if (this.m9_1 === 7) {
|
|
517
513
|
throw e;
|
|
518
514
|
} else {
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
515
|
+
this.l9_1 = this.m9_1;
|
|
516
|
+
this.o9_1 = e;
|
|
521
517
|
}
|
|
522
518
|
}
|
|
523
519
|
while (true);
|
|
524
520
|
};
|
|
525
521
|
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
526
522
|
CoroutineImpl.call(this, resultContinuation);
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
523
|
+
this.g56_1 = _this__u8e3s4;
|
|
524
|
+
this.h56_1 = requestUrl;
|
|
525
|
+
this.i56_1 = info;
|
|
526
|
+
this.j56_1 = body;
|
|
527
|
+
this.k56_1 = responseContentType;
|
|
528
|
+
this.l56_1 = charset;
|
|
533
529
|
}
|
|
534
|
-
protoOf($convertResponseCOROUTINE$1).
|
|
535
|
-
var suspendResult = this.
|
|
530
|
+
protoOf($convertResponseCOROUTINE$1).t9 = function () {
|
|
531
|
+
var suspendResult = this.n9_1;
|
|
536
532
|
$sm: do
|
|
537
533
|
try {
|
|
538
|
-
var tmp = this.
|
|
534
|
+
var tmp = this.l9_1;
|
|
539
535
|
switch (tmp) {
|
|
540
536
|
case 0:
|
|
541
|
-
this.
|
|
542
|
-
var tmp_0 = this.
|
|
537
|
+
this.m9_1 = 2;
|
|
538
|
+
var tmp_0 = this.j56_1;
|
|
543
539
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
544
|
-
get_LOGGER().
|
|
540
|
+
get_LOGGER().h1y('Response body is already transformed. Skipping ContentNegotiation for ' + this.h56_1.toString() + '.');
|
|
545
541
|
return null;
|
|
546
542
|
}
|
|
547
543
|
|
|
548
|
-
if (this.
|
|
549
|
-
get_LOGGER().
|
|
544
|
+
if (this.g56_1.f54_1.h1(this.i56_1.d1y_1)) {
|
|
545
|
+
get_LOGGER().h1y('Response body type ' + toString(this.i56_1.d1y_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.h56_1.toString() + '.'));
|
|
550
546
|
return null;
|
|
551
547
|
}
|
|
552
548
|
|
|
553
549
|
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
|
-
|
|
550
|
+
var this_0 = this.g56_1.e54_1;
|
|
551
|
+
var destination = ArrayList_init_$Create$();
|
|
552
|
+
var tmp0_iterator = this_0.k();
|
|
553
|
+
while (tmp0_iterator.l()) {
|
|
554
|
+
var element = tmp0_iterator.m();
|
|
555
|
+
if (element.o53_1.q53(this.k56_1)) {
|
|
556
|
+
destination.e(element);
|
|
561
557
|
}
|
|
562
558
|
}
|
|
563
559
|
|
|
564
|
-
var
|
|
565
|
-
var
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
tmp2_mapTo.a(item.t35_1);
|
|
560
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
561
|
+
var tmp0_iterator_0 = destination.k();
|
|
562
|
+
while (tmp0_iterator_0.l()) {
|
|
563
|
+
var item = tmp0_iterator_0.m();
|
|
564
|
+
destination_0.e(item.m53_1);
|
|
570
565
|
}
|
|
571
566
|
|
|
572
|
-
var tmp4_takeIf = tmp2_mapTo;
|
|
573
567
|
var tmp_2;
|
|
574
|
-
if (!
|
|
575
|
-
tmp_2 =
|
|
568
|
+
if (!destination_0.q()) {
|
|
569
|
+
tmp_2 = destination_0;
|
|
576
570
|
} else {
|
|
577
571
|
tmp_2 = null;
|
|
578
572
|
}
|
|
@@ -580,15 +574,16 @@
|
|
|
580
574
|
var tmp0_elvis_lhs = tmp_2;
|
|
581
575
|
var tmp_3;
|
|
582
576
|
if (tmp0_elvis_lhs == null) {
|
|
583
|
-
|
|
577
|
+
this.g56_1;
|
|
578
|
+
get_LOGGER().h1y('None of the registered converters match response with Content-Type=' + this.k56_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.h56_1.toString() + '.'));
|
|
584
579
|
return null;
|
|
585
580
|
} else {
|
|
586
581
|
tmp_3 = tmp0_elvis_lhs;
|
|
587
582
|
}
|
|
588
583
|
|
|
589
|
-
tmp_1.
|
|
590
|
-
this.
|
|
591
|
-
suspendResult = deserialize(this.
|
|
584
|
+
tmp_1.m56_1 = tmp_3;
|
|
585
|
+
this.l9_1 = 1;
|
|
586
|
+
suspendResult = deserialize(this.m56_1, this.j56_1, this.i56_1, this.l56_1, this);
|
|
592
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
593
588
|
return suspendResult;
|
|
594
589
|
}
|
|
@@ -597,40 +592,40 @@
|
|
|
597
592
|
case 1:
|
|
598
593
|
var result = suspendResult;
|
|
599
594
|
if (!isInterface(result, ByteReadChannel)) {
|
|
600
|
-
get_LOGGER().
|
|
595
|
+
get_LOGGER().h1y('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.h56_1.toString() + '.');
|
|
601
596
|
}
|
|
602
597
|
|
|
603
598
|
return result;
|
|
604
599
|
case 2:
|
|
605
|
-
throw this.
|
|
600
|
+
throw this.o9_1;
|
|
606
601
|
}
|
|
607
602
|
} catch ($p) {
|
|
608
603
|
var e = $p;
|
|
609
|
-
if (this.
|
|
604
|
+
if (this.m9_1 === 2) {
|
|
610
605
|
throw e;
|
|
611
606
|
} else {
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
607
|
+
this.l9_1 = this.m9_1;
|
|
608
|
+
this.o9_1 = e;
|
|
614
609
|
}
|
|
615
610
|
}
|
|
616
611
|
while (true);
|
|
617
612
|
};
|
|
618
613
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
619
614
|
Plugin_getInstance();
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
615
|
+
this.e54_1 = registrations;
|
|
616
|
+
this.f54_1 = ignoredTypes;
|
|
622
617
|
}
|
|
623
|
-
protoOf(ContentNegotiation).
|
|
618
|
+
protoOf(ContentNegotiation).g54 = function (request, body, $completion) {
|
|
624
619
|
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
625
|
-
tmp.
|
|
626
|
-
tmp.
|
|
627
|
-
return tmp.
|
|
620
|
+
tmp.n9_1 = Unit_instance;
|
|
621
|
+
tmp.o9_1 = null;
|
|
622
|
+
return tmp.t9();
|
|
628
623
|
};
|
|
629
|
-
protoOf(ContentNegotiation).
|
|
624
|
+
protoOf(ContentNegotiation).z54 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
630
625
|
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
631
|
-
tmp.
|
|
632
|
-
tmp.
|
|
633
|
-
return tmp.
|
|
626
|
+
tmp.n9_1 = Unit_instance;
|
|
627
|
+
tmp.o9_1 = null;
|
|
628
|
+
return tmp.t9();
|
|
634
629
|
};
|
|
635
630
|
function ContentConverterException(message) {
|
|
636
631
|
Exception_init_$Init$(message, this);
|
|
@@ -638,27 +633,23 @@
|
|
|
638
633
|
}
|
|
639
634
|
var properties_initialized_ContentNegotiation_kt_1ayduy;
|
|
640
635
|
function _init_properties_ContentNegotiation_kt__o183go() {
|
|
641
|
-
if (properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
642
|
-
} else {
|
|
636
|
+
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
643
637
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
644
638
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
645
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
639
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().xb(), PrimitiveClasses_getInstance().tb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
646
640
|
}
|
|
647
641
|
}
|
|
648
642
|
function JsonContentTypeMatcher() {
|
|
649
|
-
JsonContentTypeMatcher_instance = this;
|
|
650
643
|
}
|
|
651
|
-
protoOf(JsonContentTypeMatcher).
|
|
652
|
-
if (contentType.
|
|
644
|
+
protoOf(JsonContentTypeMatcher).q53 = function (contentType) {
|
|
645
|
+
if (contentType.b20(Application_getInstance().u1y_1)) {
|
|
653
646
|
return true;
|
|
654
647
|
}
|
|
655
|
-
var value = contentType.
|
|
656
|
-
return startsWith(value, 'application/')
|
|
648
|
+
var value = contentType.a20().toString();
|
|
649
|
+
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
657
650
|
};
|
|
658
651
|
var JsonContentTypeMatcher_instance;
|
|
659
652
|
function JsonContentTypeMatcher_getInstance() {
|
|
660
|
-
if (JsonContentTypeMatcher_instance == null)
|
|
661
|
-
new JsonContentTypeMatcher();
|
|
662
653
|
return JsonContentTypeMatcher_instance;
|
|
663
654
|
}
|
|
664
655
|
function get_DefaultIgnoredTypes() {
|
|
@@ -668,23 +659,23 @@
|
|
|
668
659
|
var DefaultIgnoredTypes;
|
|
669
660
|
var properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt;
|
|
670
661
|
function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
|
|
671
|
-
if (properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
|
|
672
|
-
} else {
|
|
662
|
+
if (!properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt) {
|
|
673
663
|
properties_initialized_DefaultIgnoredTypesJs_kt_65g2xt = true;
|
|
674
|
-
var tmp$ret$0;
|
|
675
664
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
676
|
-
|
|
677
|
-
DefaultIgnoredTypes = tmp$ret$0;
|
|
665
|
+
DefaultIgnoredTypes = LinkedHashSet_init_$Create$();
|
|
678
666
|
}
|
|
679
667
|
}
|
|
680
668
|
//region block: post-declaration
|
|
681
|
-
protoOf(Config).
|
|
669
|
+
protoOf(Config).w2a = register$default;
|
|
670
|
+
//endregion
|
|
671
|
+
//region block: init
|
|
672
|
+
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|
|
682
673
|
//endregion
|
|
683
674
|
//region block: exports
|
|
684
675
|
_.$_$ = _.$_$ || {};
|
|
685
676
|
_.$_$.a = Plugin_getInstance;
|
|
686
677
|
//endregion
|
|
687
678
|
return _;
|
|
688
|
-
}(module.exports, require('./kotlin-kotlin-stdlib
|
|
679
|
+
}(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
680
|
|
|
690
681
|
//# sourceMappingURL=ktor-ktor-client-content-negotiation.js.map
|