@solibo/solibo-sdk 1.5.18 → 1.6.1
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/KmLogging-logging.mjs +110 -110
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1545 -1545
- package/KotlinBigInteger-bignum.mjs +1198 -1198
- package/MultiplatformSettings-multiplatform-settings-test.mjs +19 -19
- package/MultiplatformSettings-multiplatform-settings.mjs +17 -17
- package/Stately-stately-concurrency.mjs +5 -5
- package/cryptography-kotlin-cryptography-bigint.mjs +33 -33
- package/cryptography-kotlin-cryptography-core.mjs +49 -49
- package/cryptography-kotlin-cryptography-provider-base.mjs +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +175 -175
- package/cryptography-kotlin-cryptography-random.mjs +26 -26
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +204 -204
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +332 -332
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +16 -16
- package/index.mjs +6 -0
- package/kotlin-kotlin-stdlib.mjs +2141 -2051
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2488 -2461
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1832 -1832
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1383 -1383
- package/ktor-ktor-client-auth.mjs +463 -463
- package/ktor-ktor-client-content-negotiation.mjs +184 -184
- package/ktor-ktor-client-core.mjs +4457 -4456
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs +785 -0
- package/ktor-ktor-client-encoding.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +1080 -1080
- package/ktor-ktor-client-mock.mjs +79 -79
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +480 -480
- package/ktor-ktor-http.mjs +1296 -997
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1120 -1097
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +228 -228
- package/ktor-ktor-serialization.mjs +105 -105
- package/ktor-ktor-utils.mjs +1152 -1041
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +741 -741
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +77103 -73805
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +318 -3
- package/solibo-sdk-sdk.mjs +6928 -6854
- package/solibo-sdk-sdk.mjs.map +1 -1
|
@@ -62,19 +62,19 @@ function MockEngine_init_$Create$(config) {
|
|
|
62
62
|
}
|
|
63
63
|
function Companion() {
|
|
64
64
|
}
|
|
65
|
-
protoOf(Companion).
|
|
65
|
+
protoOf(Companion).ard = function (block) {
|
|
66
66
|
// Inline function 'kotlin.apply' call
|
|
67
67
|
var this_0 = new MockEngineConfig();
|
|
68
68
|
block(this_0);
|
|
69
69
|
return MockEngine_init_$Create$(this_0);
|
|
70
70
|
};
|
|
71
|
-
protoOf(Companion).
|
|
72
|
-
return this.
|
|
71
|
+
protoOf(Companion).q4j = function (block) {
|
|
72
|
+
return this.ard(block);
|
|
73
73
|
};
|
|
74
|
-
protoOf(Companion).
|
|
74
|
+
protoOf(Companion).brd = function (handler) {
|
|
75
75
|
// Inline function 'kotlin.apply' call
|
|
76
76
|
var this_0 = new MockEngineConfig();
|
|
77
|
-
this_0.
|
|
77
|
+
this_0.grd_1.e1(handler);
|
|
78
78
|
return MockEngine_init_$Create$(this_0);
|
|
79
79
|
};
|
|
80
80
|
var Companion_instance;
|
|
@@ -82,30 +82,30 @@ function Companion_getInstance_1() {
|
|
|
82
82
|
return Companion_instance;
|
|
83
83
|
}
|
|
84
84
|
function MockEngine$execute$slambda($handler, $callContext, $data, resultContinuation) {
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
85
|
+
this.qrd_1 = $handler;
|
|
86
|
+
this.rrd_1 = $callContext;
|
|
87
|
+
this.srd_1 = $data;
|
|
88
88
|
CoroutineImpl.call(this, resultContinuation);
|
|
89
89
|
}
|
|
90
|
-
protoOf(MockEngine$execute$slambda).
|
|
91
|
-
var tmp = this.
|
|
92
|
-
tmp.
|
|
93
|
-
tmp.
|
|
94
|
-
return tmp.
|
|
90
|
+
protoOf(MockEngine$execute$slambda).e4p = function ($this$withContext, $completion) {
|
|
91
|
+
var tmp = this.h2j($this$withContext, $completion);
|
|
92
|
+
tmp.o9_1 = Unit_instance;
|
|
93
|
+
tmp.p9_1 = null;
|
|
94
|
+
return tmp.u9();
|
|
95
95
|
};
|
|
96
|
-
protoOf(MockEngine$execute$slambda).
|
|
97
|
-
return this.
|
|
96
|
+
protoOf(MockEngine$execute$slambda).ga = function (p1, $completion) {
|
|
97
|
+
return this.e4p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
98
98
|
};
|
|
99
|
-
protoOf(MockEngine$execute$slambda).
|
|
100
|
-
var suspendResult = this.
|
|
99
|
+
protoOf(MockEngine$execute$slambda).u9 = function () {
|
|
100
|
+
var suspendResult = this.o9_1;
|
|
101
101
|
$sm: do
|
|
102
102
|
try {
|
|
103
|
-
var tmp = this.
|
|
103
|
+
var tmp = this.m9_1;
|
|
104
104
|
switch (tmp) {
|
|
105
105
|
case 0:
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
suspendResult = this.
|
|
106
|
+
this.n9_1 = 2;
|
|
107
|
+
this.m9_1 = 1;
|
|
108
|
+
suspendResult = this.qrd_1(new MockRequestHandleScope(this.rrd_1), this.srd_1, this);
|
|
109
109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
110
110
|
return suspendResult;
|
|
111
111
|
}
|
|
@@ -114,52 +114,52 @@ protoOf(MockEngine$execute$slambda).t9 = function () {
|
|
|
114
114
|
case 1:
|
|
115
115
|
return suspendResult;
|
|
116
116
|
case 2:
|
|
117
|
-
throw this.
|
|
117
|
+
throw this.p9_1;
|
|
118
118
|
}
|
|
119
119
|
} catch ($p) {
|
|
120
120
|
var e = $p;
|
|
121
|
-
if (this.
|
|
121
|
+
if (this.n9_1 === 2) {
|
|
122
122
|
throw e;
|
|
123
123
|
} else {
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
124
|
+
this.m9_1 = this.n9_1;
|
|
125
|
+
this.p9_1 = e;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
while (true);
|
|
129
129
|
};
|
|
130
|
-
protoOf(MockEngine$execute$slambda).
|
|
131
|
-
var i = new MockEngine$execute$slambda(this.
|
|
132
|
-
i.
|
|
130
|
+
protoOf(MockEngine$execute$slambda).h2j = function ($this$withContext, completion) {
|
|
131
|
+
var i = new MockEngine$execute$slambda(this.qrd_1, this.rrd_1, this.srd_1, completion);
|
|
132
|
+
i.trd_1 = $this$withContext;
|
|
133
133
|
return i;
|
|
134
134
|
};
|
|
135
135
|
function MockEngine$execute$slambda_0($handler, $callContext, $data, resultContinuation) {
|
|
136
136
|
var i = new MockEngine$execute$slambda($handler, $callContext, $data, resultContinuation);
|
|
137
137
|
var l = function ($this$withContext, $completion) {
|
|
138
|
-
return i.
|
|
138
|
+
return i.e4p($this$withContext, $completion);
|
|
139
139
|
};
|
|
140
140
|
l.$arity = 1;
|
|
141
141
|
return l;
|
|
142
142
|
}
|
|
143
143
|
function MockEngine$close$lambda(this$0) {
|
|
144
144
|
return function (it) {
|
|
145
|
-
this$0.
|
|
145
|
+
this$0.cre_1.e24();
|
|
146
146
|
return Unit_instance;
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
function $executeCOROUTINE$(_this__u8e3s4, data, resultContinuation) {
|
|
150
150
|
CoroutineImpl.call(this, resultContinuation);
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
151
|
+
this.ore_1 = _this__u8e3s4;
|
|
152
|
+
this.pre_1 = data;
|
|
153
153
|
}
|
|
154
|
-
protoOf($executeCOROUTINE$).
|
|
155
|
-
var suspendResult = this.
|
|
154
|
+
protoOf($executeCOROUTINE$).u9 = function () {
|
|
155
|
+
var suspendResult = this.o9_1;
|
|
156
156
|
$sm: do
|
|
157
157
|
try {
|
|
158
|
-
var tmp = this.
|
|
158
|
+
var tmp = this.m9_1;
|
|
159
159
|
switch (tmp) {
|
|
160
160
|
case 0:
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
161
|
+
this.n9_1 = 3;
|
|
162
|
+
this.m9_1 = 1;
|
|
163
163
|
suspendResult = callContext(this);
|
|
164
164
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
165
165
|
return suspendResult;
|
|
@@ -168,22 +168,22 @@ protoOf($executeCOROUTINE$).t9 = function () {
|
|
|
168
168
|
continue $sm;
|
|
169
169
|
case 1:
|
|
170
170
|
var callContext_0 = suspendResult;
|
|
171
|
-
this.
|
|
172
|
-
if (this.
|
|
173
|
-
var message = 'Unhandled ' + this.
|
|
171
|
+
this.ore_1.bre_1;
|
|
172
|
+
if (this.ore_1.fre_1 >= this.ore_1.s4i().grd_1.g1()) {
|
|
173
|
+
var message = 'Unhandled ' + this.pre_1.w4n_1.toString();
|
|
174
174
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
var handler = this.
|
|
178
|
-
this.
|
|
179
|
-
if (this.
|
|
180
|
-
this.
|
|
177
|
+
var handler = this.ore_1.s4i().grd_1.h1(this.ore_1.fre_1);
|
|
178
|
+
this.ore_1.fre_1 = this.ore_1.fre_1 + 1 | 0;
|
|
179
|
+
if (this.ore_1.s4i().hrd_1) {
|
|
180
|
+
this.ore_1.fre_1 = this.ore_1.fre_1 % this.ore_1.s4i().grd_1.g1() | 0;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
var handler_0 = handler;
|
|
184
|
-
this.
|
|
185
|
-
var tmp_0 = this.
|
|
186
|
-
suspendResult = withContext(tmp_0, MockEngine$execute$slambda_0(handler_0, callContext_0, this.
|
|
184
|
+
this.m9_1 = 2;
|
|
185
|
+
var tmp_0 = this.ore_1.k4p().yj(callContext_0);
|
|
186
|
+
suspendResult = withContext(tmp_0, MockEngine$execute$slambda_0(handler_0, callContext_0, this.pre_1, null), this);
|
|
187
187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
188
188
|
return suspendResult;
|
|
189
189
|
}
|
|
@@ -191,85 +191,85 @@ protoOf($executeCOROUTINE$).t9 = function () {
|
|
|
191
191
|
continue $sm;
|
|
192
192
|
case 2:
|
|
193
193
|
var response = suspendResult;
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
194
|
+
this.ore_1.bre_1;
|
|
195
|
+
this.ore_1.dre_1.e1(this.pre_1);
|
|
196
|
+
this.ore_1.ere_1.e1(response);
|
|
197
197
|
return response;
|
|
198
198
|
case 3:
|
|
199
|
-
throw this.
|
|
199
|
+
throw this.p9_1;
|
|
200
200
|
}
|
|
201
201
|
} catch ($p) {
|
|
202
202
|
var e = $p;
|
|
203
|
-
if (this.
|
|
203
|
+
if (this.n9_1 === 3) {
|
|
204
204
|
throw e;
|
|
205
205
|
} else {
|
|
206
|
-
this.
|
|
207
|
-
this.
|
|
206
|
+
this.m9_1 = this.n9_1;
|
|
207
|
+
this.p9_1 = e;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
while (true);
|
|
211
211
|
};
|
|
212
212
|
function MockEngine(config, throwIfEmptyConfig) {
|
|
213
213
|
HttpClientEngineBase.call(this, 'ktor-mock');
|
|
214
|
-
this.
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
214
|
+
this.zrd_1 = config;
|
|
215
|
+
this.are_1 = setOf([HttpTimeoutCapability_instance, WebSocketCapability_instance, WebSocketExtensionsCapability_instance]);
|
|
216
|
+
this.bre_1 = new Object();
|
|
217
|
+
this.cre_1 = Job();
|
|
218
218
|
var tmp = this;
|
|
219
219
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
220
|
-
tmp.
|
|
220
|
+
tmp.dre_1 = ArrayList_init_$Create$();
|
|
221
221
|
var tmp_0 = this;
|
|
222
222
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
223
|
-
tmp_0.
|
|
224
|
-
this.
|
|
223
|
+
tmp_0.ere_1 = ArrayList_init_$Create$();
|
|
224
|
+
this.fre_1 = 0;
|
|
225
225
|
if (throwIfEmptyConfig) {
|
|
226
226
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
227
227
|
// Inline function 'kotlin.check' call
|
|
228
|
-
if (!!this.
|
|
228
|
+
if (!!this.s4i().grd_1.r()) {
|
|
229
229
|
var message = 'No request handler provided in [MockEngineConfig], please provide at least one.';
|
|
230
230
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
protoOf(MockEngine).
|
|
235
|
-
return this.
|
|
234
|
+
protoOf(MockEngine).s4i = function () {
|
|
235
|
+
return this.zrd_1;
|
|
236
236
|
};
|
|
237
|
-
protoOf(MockEngine).
|
|
238
|
-
return this.
|
|
237
|
+
protoOf(MockEngine).d4o = function () {
|
|
238
|
+
return this.are_1;
|
|
239
239
|
};
|
|
240
|
-
protoOf(MockEngine).
|
|
240
|
+
protoOf(MockEngine).f4p = function (data, $completion) {
|
|
241
241
|
var tmp = new $executeCOROUTINE$(this, data, $completion);
|
|
242
|
-
tmp.
|
|
243
|
-
tmp.
|
|
244
|
-
return tmp.
|
|
242
|
+
tmp.o9_1 = Unit_instance;
|
|
243
|
+
tmp.p9_1 = null;
|
|
244
|
+
return tmp.u9();
|
|
245
245
|
};
|
|
246
246
|
protoOf(MockEngine).c5 = function () {
|
|
247
247
|
protoOf(HttpClientEngineBase).c5.call(this);
|
|
248
|
-
var tmp = ensureNotNull(this.
|
|
249
|
-
tmp.
|
|
248
|
+
var tmp = ensureNotNull(this.w1v().z9(Key_instance));
|
|
249
|
+
tmp.y1w(MockEngine$close$lambda(this));
|
|
250
250
|
};
|
|
251
251
|
function MockRequestHandleScope(callContext) {
|
|
252
|
-
this.
|
|
252
|
+
this.qre_1 = callContext;
|
|
253
253
|
}
|
|
254
254
|
function MockEngineConfig() {
|
|
255
255
|
HttpClientEngineConfig.call(this);
|
|
256
256
|
var tmp = this;
|
|
257
257
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
258
|
-
tmp.
|
|
259
|
-
this.
|
|
258
|
+
tmp.grd_1 = ArrayList_init_$Create$();
|
|
259
|
+
this.hrd_1 = true;
|
|
260
260
|
}
|
|
261
261
|
var EmptyArray;
|
|
262
262
|
function respond(_this__u8e3s4, content, status, headers) {
|
|
263
|
-
status = status === VOID ? Companion_getInstance().
|
|
263
|
+
status = status === VOID ? Companion_getInstance().y3r_1 : status;
|
|
264
264
|
headers = headers === VOID ? headersOf() : headers;
|
|
265
265
|
_init_properties_MockUtils_kt__e2fup7();
|
|
266
|
-
return respond_0(_this__u8e3s4, ByteReadChannel(toByteArray(content, Charsets_getInstance().
|
|
266
|
+
return respond_0(_this__u8e3s4, ByteReadChannel(toByteArray(content, Charsets_getInstance().k37_1)), status, headers);
|
|
267
267
|
}
|
|
268
268
|
function respond_0(_this__u8e3s4, content, status, headers) {
|
|
269
|
-
status = status === VOID ? Companion_getInstance().
|
|
269
|
+
status = status === VOID ? Companion_getInstance().y3r_1 : status;
|
|
270
270
|
headers = headers === VOID ? headersOf() : headers;
|
|
271
271
|
_init_properties_MockUtils_kt__e2fup7();
|
|
272
|
-
return new HttpResponseData(status, GMTDate(), headers, Companion_getInstance_0().
|
|
272
|
+
return new HttpResponseData(status, GMTDate(), headers, Companion_getInstance_0().o3r_1, content, _this__u8e3s4.qre_1);
|
|
273
273
|
}
|
|
274
274
|
var properties_initialized_MockUtils_kt_4monrr;
|
|
275
275
|
function _init_properties_MockUtils_kt__e2fup7() {
|
package/ktor-ktor-events.mjs
CHANGED
|
@@ -22,22 +22,22 @@ initMetadataForClass(EventDefinition, 'EventDefinition', EventDefinition);
|
|
|
22
22
|
function HandlerRegistration() {
|
|
23
23
|
}
|
|
24
24
|
function Events() {
|
|
25
|
-
this.
|
|
25
|
+
this.f3j_1 = new CopyOnWriteHashMap();
|
|
26
26
|
}
|
|
27
|
-
protoOf(Events).
|
|
27
|
+
protoOf(Events).g3j = function (definition, value) {
|
|
28
28
|
var exception = null;
|
|
29
|
-
var tmp0_safe_receiver = this.
|
|
29
|
+
var tmp0_safe_receiver = this.f3j_1.s3e(definition);
|
|
30
30
|
if (tmp0_safe_receiver == null)
|
|
31
31
|
null;
|
|
32
32
|
else {
|
|
33
33
|
// Inline function 'io.ktor.util.internal.LockFreeLinkedListHead.forEach' call
|
|
34
|
-
var tmp = tmp0_safe_receiver.
|
|
34
|
+
var tmp = tmp0_safe_receiver.y2a();
|
|
35
35
|
var cur = tmp instanceof LockFreeLinkedListNode ? tmp : THROW_CCE();
|
|
36
36
|
while (!equals(cur, tmp0_safe_receiver)) {
|
|
37
37
|
if (cur instanceof HandlerRegistration) {
|
|
38
38
|
var registration = cur;
|
|
39
39
|
try {
|
|
40
|
-
var tmp_0 = registration.
|
|
40
|
+
var tmp_0 = registration.i3j_1;
|
|
41
41
|
(typeof tmp_0 === 'function' ? tmp_0 : THROW_CCE())(value);
|
|
42
42
|
} catch ($p) {
|
|
43
43
|
if ($p instanceof Error) {
|
|
@@ -59,7 +59,7 @@ protoOf(Events).u3i = function (definition, value) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
cur = cur.
|
|
62
|
+
cur = cur.g3g();
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
var tmp1_safe_receiver = exception;
|