@doordeck/doordeck-headless-sdk 0.169.0 → 0.171.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +39 -39
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.js +10863 -10750
- package/kotlin/kotlin-kotlin-stdlib.js +1174 -980
- package/kotlin/kotlinx-atomicfu.js +22 -22
- package/kotlin/kotlinx-coroutines-core.js +1991 -1979
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +49 -49
- package/kotlin/kotlinx-io-kotlinx-io-core.js +479 -479
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1922 -1922
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1461 -1461
- package/kotlin/ktor-ktor-client-auth.js +261 -261
- package/kotlin/ktor-ktor-client-content-negotiation.js +158 -158
- package/kotlin/ktor-ktor-client-core.js +2695 -1886
- package/kotlin/ktor-ktor-client-logging.js +658 -658
- package/kotlin/ktor-ktor-events.js +13 -13
- package/kotlin/ktor-ktor-http-cio.js +376 -376
- package/kotlin/ktor-ktor-http.js +786 -786
- package/kotlin/ktor-ktor-io.js +663 -663
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +155 -155
- package/kotlin/ktor-ktor-serialization.js +74 -74
- package/kotlin/ktor-ktor-utils.js +780 -780
- package/kotlin/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
5
5
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
6
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
7
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
6
|
+
var isInterface = kotlin_kotlin.$_$.qb;
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
8
|
+
var initMetadataForClass = kotlin_kotlin.$_$.bb;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.hb;
|
|
10
10
|
var VOID = kotlin_kotlin.$_$.b;
|
|
11
11
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
12
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
14
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
15
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
16
|
-
var toList = kotlin_kotlin.$_$.
|
|
17
|
-
var Enum = kotlin_kotlin.$_$.
|
|
18
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
19
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
20
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
12
|
+
var charSequenceLength = kotlin_kotlin.$_$.qa;
|
|
13
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.fb;
|
|
14
|
+
var getStringHashCode = kotlin_kotlin.$_$.za;
|
|
15
|
+
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
16
|
+
var toList = kotlin_kotlin.$_$.h8;
|
|
17
|
+
var Enum = kotlin_kotlin.$_$.pf;
|
|
18
|
+
var objectCreate = kotlin_kotlin.$_$.zb;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.ah;
|
|
20
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.yg;
|
|
21
21
|
//endregion
|
|
22
22
|
//region block: pre-declaration
|
|
23
23
|
initMetadataForClass(BaseLogger, 'BaseLogger');
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
var sb = StringBuilder_init_$Create$();
|
|
43
43
|
if (!(severity == null)) {
|
|
44
|
-
sb.f8(this.
|
|
44
|
+
sb.f8(this.o5t(severity)).f8(' ');
|
|
45
45
|
}
|
|
46
46
|
var tmp_1;
|
|
47
47
|
var tmp_2 = tag;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
tmp_1 = false;
|
|
54
54
|
}
|
|
55
55
|
if (tmp_1) {
|
|
56
|
-
sb.f8(this.
|
|
56
|
+
sb.f8(this.m5t(tag)).f8(' ');
|
|
57
57
|
}
|
|
58
58
|
sb.f8(_Message___get_message__impl__3t69n4(message));
|
|
59
59
|
return sb.toString();
|
|
@@ -74,26 +74,26 @@
|
|
|
74
74
|
}
|
|
75
75
|
var DEFAULT_MIN_SEVERITY;
|
|
76
76
|
function BaseLogger(config) {
|
|
77
|
-
this.
|
|
77
|
+
this.g5t_1 = config;
|
|
78
78
|
}
|
|
79
|
-
protoOf(BaseLogger).
|
|
80
|
-
return this.
|
|
79
|
+
protoOf(BaseLogger).u3f = function () {
|
|
80
|
+
return this.g5t_1;
|
|
81
81
|
};
|
|
82
|
-
protoOf(BaseLogger).
|
|
82
|
+
protoOf(BaseLogger).h5t = function () {
|
|
83
83
|
// Inline function 'kotlin.let' call
|
|
84
|
-
var it = this.
|
|
84
|
+
var it = this.u3f();
|
|
85
85
|
if (!isInterface(it, MutableLoggerConfig)) {
|
|
86
86
|
throw IllegalStateException_init_$Create$('Logger config is not mutable');
|
|
87
87
|
}
|
|
88
88
|
return it;
|
|
89
89
|
};
|
|
90
|
-
protoOf(BaseLogger).
|
|
90
|
+
protoOf(BaseLogger).i5t = function (severity, tag, throwable, message) {
|
|
91
91
|
// Inline function 'kotlin.collections.forEach' call
|
|
92
|
-
var _iterator__ex2g4s = this.
|
|
92
|
+
var _iterator__ex2g4s = this.u3f().j5t().r();
|
|
93
93
|
while (_iterator__ex2g4s.s()) {
|
|
94
94
|
var element = _iterator__ex2g4s.t();
|
|
95
|
-
if (element.
|
|
96
|
-
element.
|
|
95
|
+
if (element.l5t(tag, severity)) {
|
|
96
|
+
element.k5t(severity, message, tag, throwable);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
};
|
|
@@ -106,15 +106,15 @@
|
|
|
106
106
|
}
|
|
107
107
|
function LogWriter() {
|
|
108
108
|
}
|
|
109
|
-
protoOf(LogWriter).
|
|
109
|
+
protoOf(LogWriter).l5t = function (tag, severity) {
|
|
110
110
|
return true;
|
|
111
111
|
};
|
|
112
112
|
function NoTagFormatter() {
|
|
113
113
|
}
|
|
114
|
-
protoOf(NoTagFormatter).
|
|
114
|
+
protoOf(NoTagFormatter).m5t = function (tag) {
|
|
115
115
|
return '';
|
|
116
116
|
};
|
|
117
|
-
protoOf(NoTagFormatter).
|
|
117
|
+
protoOf(NoTagFormatter).n5t = function (severity, tag, message) {
|
|
118
118
|
return formatMessage.call(this, severity, null, message);
|
|
119
119
|
};
|
|
120
120
|
var NoTagFormatter_instance;
|
|
@@ -144,21 +144,21 @@
|
|
|
144
144
|
function Tag__equals_impl_6ocp5g($this, other) {
|
|
145
145
|
if (!(other instanceof Tag))
|
|
146
146
|
return false;
|
|
147
|
-
if (!($this === (other instanceof Tag ? other.
|
|
147
|
+
if (!($this === (other instanceof Tag ? other.p5t_1 : THROW_CCE())))
|
|
148
148
|
return false;
|
|
149
149
|
return true;
|
|
150
150
|
}
|
|
151
151
|
function Tag(tag) {
|
|
152
|
-
this.
|
|
152
|
+
this.p5t_1 = tag;
|
|
153
153
|
}
|
|
154
154
|
protoOf(Tag).toString = function () {
|
|
155
|
-
return Tag__toString_impl_tvevk7(this.
|
|
155
|
+
return Tag__toString_impl_tvevk7(this.p5t_1);
|
|
156
156
|
};
|
|
157
157
|
protoOf(Tag).hashCode = function () {
|
|
158
|
-
return Tag__hashCode_impl_848yrc(this.
|
|
158
|
+
return Tag__hashCode_impl_848yrc(this.p5t_1);
|
|
159
159
|
};
|
|
160
160
|
protoOf(Tag).equals = function (other) {
|
|
161
|
-
return Tag__equals_impl_6ocp5g(this.
|
|
161
|
+
return Tag__equals_impl_6ocp5g(this.p5t_1, other);
|
|
162
162
|
};
|
|
163
163
|
function _Message___init__impl__p3e8y6(message) {
|
|
164
164
|
return message;
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
minSeverity = minSeverity === VOID ? get_DEFAULT_MIN_SEVERITY() : minSeverity;
|
|
173
173
|
// Inline function 'kotlin.also' call
|
|
174
174
|
var this_0 = mutableLoggerConfigInit_0(toList(logWriters));
|
|
175
|
-
this_0.
|
|
175
|
+
this_0.q5t(minSeverity);
|
|
176
176
|
return this_0;
|
|
177
177
|
}
|
|
178
178
|
var Severity_Verbose_instance;
|
|
@@ -222,11 +222,11 @@
|
|
|
222
222
|
}
|
|
223
223
|
function ConsoleWriter(messageStringFormatter, console) {
|
|
224
224
|
LogWriter.call(this);
|
|
225
|
-
this.
|
|
226
|
-
this.
|
|
225
|
+
this.r5t_1 = messageStringFormatter;
|
|
226
|
+
this.s5t_1 = console;
|
|
227
227
|
}
|
|
228
|
-
protoOf(ConsoleWriter).
|
|
229
|
-
var output = this.
|
|
228
|
+
protoOf(ConsoleWriter).k5t = function (severity, message, tag, throwable) {
|
|
229
|
+
var output = this.r5t_1.n5t(null, _Tag___init__impl__opaqzl(tag), _Message___init__impl__p3e8y6(message));
|
|
230
230
|
if (throwable == null)
|
|
231
231
|
null;
|
|
232
232
|
else {
|
|
@@ -236,17 +236,17 @@
|
|
|
236
236
|
switch (severity.s2_1) {
|
|
237
237
|
case 5:
|
|
238
238
|
case 4:
|
|
239
|
-
this.
|
|
239
|
+
this.s5t_1.t5t(output);
|
|
240
240
|
break;
|
|
241
241
|
case 3:
|
|
242
|
-
this.
|
|
242
|
+
this.s5t_1.u2q(output);
|
|
243
243
|
break;
|
|
244
244
|
case 2:
|
|
245
|
-
this.
|
|
245
|
+
this.s5t_1.u5t(output);
|
|
246
246
|
break;
|
|
247
247
|
case 1:
|
|
248
248
|
case 0:
|
|
249
|
-
this.
|
|
249
|
+
this.s5t_1.v4v(output);
|
|
250
250
|
break;
|
|
251
251
|
default:
|
|
252
252
|
noWhenBranchMatchedException();
|
|
@@ -254,17 +254,17 @@
|
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
function JsMutableLoggerConfig(logWriters) {
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
257
|
+
this.v5t_1 = get_DEFAULT_MIN_SEVERITY();
|
|
258
|
+
this.w5t_1 = logWriters;
|
|
259
259
|
}
|
|
260
|
-
protoOf(JsMutableLoggerConfig).
|
|
261
|
-
this.
|
|
260
|
+
protoOf(JsMutableLoggerConfig).q5t = function (_set____db54di) {
|
|
261
|
+
this.v5t_1 = _set____db54di;
|
|
262
262
|
};
|
|
263
|
-
protoOf(JsMutableLoggerConfig).
|
|
264
|
-
return this.
|
|
263
|
+
protoOf(JsMutableLoggerConfig).x5t = function () {
|
|
264
|
+
return this.v5t_1;
|
|
265
265
|
};
|
|
266
|
-
protoOf(JsMutableLoggerConfig).
|
|
267
|
-
return this.
|
|
266
|
+
protoOf(JsMutableLoggerConfig).j5t = function () {
|
|
267
|
+
return this.w5t_1;
|
|
268
268
|
};
|
|
269
269
|
function mutableLoggerConfigInit_0(logWriters) {
|
|
270
270
|
return new JsMutableLoggerConfig(logWriters);
|
|
@@ -275,16 +275,16 @@
|
|
|
275
275
|
}
|
|
276
276
|
function ConsoleActual() {
|
|
277
277
|
}
|
|
278
|
-
protoOf(ConsoleActual).
|
|
278
|
+
protoOf(ConsoleActual).t5t = function (output) {
|
|
279
279
|
console.error(output);
|
|
280
280
|
};
|
|
281
|
-
protoOf(ConsoleActual).
|
|
281
|
+
protoOf(ConsoleActual).u2q = function (output) {
|
|
282
282
|
console.warn(output);
|
|
283
283
|
};
|
|
284
|
-
protoOf(ConsoleActual).
|
|
284
|
+
protoOf(ConsoleActual).u5t = function (output) {
|
|
285
285
|
console.info(output);
|
|
286
286
|
};
|
|
287
|
-
protoOf(ConsoleActual).
|
|
287
|
+
protoOf(ConsoleActual).v4v = function (output) {
|
|
288
288
|
console.log(output);
|
|
289
289
|
};
|
|
290
290
|
var ConsoleActual_instance;
|
|
@@ -292,10 +292,10 @@
|
|
|
292
292
|
return ConsoleActual_instance;
|
|
293
293
|
}
|
|
294
294
|
//region block: post-declaration
|
|
295
|
-
protoOf(NoTagFormatter).
|
|
296
|
-
protoOf(DefaultFormatter).
|
|
297
|
-
protoOf(DefaultFormatter).
|
|
298
|
-
protoOf(DefaultFormatter).
|
|
295
|
+
protoOf(NoTagFormatter).o5t = formatSeverity;
|
|
296
|
+
protoOf(DefaultFormatter).o5t = formatSeverity;
|
|
297
|
+
protoOf(DefaultFormatter).m5t = formatTag;
|
|
298
|
+
protoOf(DefaultFormatter).n5t = formatMessage;
|
|
299
299
|
//endregion
|
|
300
300
|
//region block: init
|
|
301
301
|
NoTagFormatter_instance = new NoTagFormatter();
|
package/kotlin/Kermit-kermit.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var platformLogWriter = kotlin_co_touchlab_kermit_core.$_$.d;
|
|
5
|
-
var listOf = kotlin_kotlin.$_$.
|
|
5
|
+
var listOf = kotlin_kotlin.$_$.l7;
|
|
6
6
|
var mutableLoggerConfigInit = kotlin_co_touchlab_kermit_core.$_$.c;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.cb;
|
|
9
9
|
var BaseLogger = kotlin_co_touchlab_kermit_core.$_$.a;
|
|
10
10
|
var VOID = kotlin_kotlin.$_$.b;
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.bb;
|
|
12
12
|
//endregion
|
|
13
13
|
//region block: pre-declaration
|
|
14
14
|
initMetadataForClass(Logger, 'Logger', VOID, BaseLogger);
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
Companion_instance = this;
|
|
19
19
|
Logger.call(this, mutableLoggerConfigInit(listOf(platformLogWriter())), '');
|
|
20
20
|
}
|
|
21
|
-
protoOf(Companion).
|
|
21
|
+
protoOf(Companion).a5u = function () {
|
|
22
22
|
return get_defaultTag();
|
|
23
23
|
};
|
|
24
24
|
var Companion_instance;
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
Companion_getInstance();
|
|
32
32
|
tag = tag === VOID ? '' : tag;
|
|
33
33
|
BaseLogger.call(this, config);
|
|
34
|
-
this.
|
|
34
|
+
this.c5u_1 = tag;
|
|
35
35
|
}
|
|
36
|
-
protoOf(Logger).
|
|
37
|
-
return this.
|
|
36
|
+
protoOf(Logger).a5u = function () {
|
|
37
|
+
return this.c5u_1;
|
|
38
38
|
};
|
|
39
39
|
function get_defaultTag() {
|
|
40
40
|
return defaultTag;
|
|
@@ -4,32 +4,32 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var _sodium_init = $module$libsodium_sumo_a6nla1._sodium_init;
|
|
6
6
|
var ready = $module$libsodium_sumo_a6nla1.ready;
|
|
7
|
-
var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.
|
|
8
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
9
|
-
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.
|
|
10
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
11
|
-
var equals = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
7
|
+
var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.c3;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
9
|
+
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.y2;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
11
|
+
var equals = kotlin_kotlin.$_$.ua;
|
|
12
|
+
var initMetadataForClass = kotlin_kotlin.$_$.bb;
|
|
13
|
+
var RuntimeException = kotlin_kotlin.$_$.yf;
|
|
14
14
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.z1;
|
|
15
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
16
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
17
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
15
|
+
var captureStack = kotlin_kotlin.$_$.la;
|
|
16
|
+
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
17
|
+
var Companion_instance = kotlin_kotlin.$_$.w4;
|
|
18
18
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n2;
|
|
19
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
20
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
19
|
+
var createFailure = kotlin_kotlin.$_$.qg;
|
|
20
|
+
var intercepted = kotlin_kotlin.$_$.w8;
|
|
21
21
|
var SafeContinuation_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
22
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
22
|
+
var initMetadataForObject = kotlin_kotlin.$_$.hb;
|
|
23
23
|
var VOID = kotlin_kotlin.$_$.b;
|
|
24
|
-
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.
|
|
25
|
-
var toTypedArray = kotlin_kotlin.$_$.
|
|
26
|
-
var println = kotlin_kotlin.$_$.
|
|
27
|
-
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.
|
|
28
|
-
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.
|
|
29
|
-
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.
|
|
30
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
31
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
24
|
+
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.b3;
|
|
25
|
+
var toTypedArray = kotlin_kotlin.$_$.o8;
|
|
26
|
+
var println = kotlin_kotlin.$_$.m9;
|
|
27
|
+
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.w2;
|
|
28
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.s2;
|
|
29
|
+
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.z2;
|
|
30
|
+
var CoroutineImpl = kotlin_kotlin.$_$.j9;
|
|
31
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
|
|
32
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.db;
|
|
33
33
|
//endregion
|
|
34
34
|
//region block: pre-declaration
|
|
35
35
|
initMetadataForClass(SignatureKeyPair, 'SignatureKeyPair');
|
|
@@ -85,15 +85,15 @@
|
|
|
85
85
|
var crypto_secretstream_xchacha20poly1305_KEYBYTES;
|
|
86
86
|
var crypto_secretstream_xchacha20poly1305_ABYTES;
|
|
87
87
|
function SignatureKeyPair(publicKey, secretKey) {
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
88
|
+
this.eo_1 = publicKey;
|
|
89
|
+
this.fo_1 = secretKey;
|
|
90
90
|
}
|
|
91
91
|
protoOf(SignatureKeyPair).toString = function () {
|
|
92
|
-
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.
|
|
92
|
+
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.eo_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.fo_1) + ')';
|
|
93
93
|
};
|
|
94
94
|
protoOf(SignatureKeyPair).hashCode = function () {
|
|
95
|
-
var result = UByteArray__hashCode_impl_ip8jx2(this.
|
|
96
|
-
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.
|
|
95
|
+
var result = UByteArray__hashCode_impl_ip8jx2(this.eo_1);
|
|
96
|
+
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.fo_1) | 0;
|
|
97
97
|
return result;
|
|
98
98
|
};
|
|
99
99
|
protoOf(SignatureKeyPair).equals = function (other) {
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
if (!(other instanceof SignatureKeyPair))
|
|
103
103
|
return false;
|
|
104
104
|
var tmp0_other_with_cast = other instanceof SignatureKeyPair ? other : THROW_CCE();
|
|
105
|
-
if (!equals(this.
|
|
105
|
+
if (!equals(this.eo_1, tmp0_other_with_cast.eo_1))
|
|
106
106
|
return false;
|
|
107
|
-
if (!equals(this.
|
|
107
|
+
if (!equals(this.fo_1, tmp0_other_with_cast.fo_1))
|
|
108
108
|
return false;
|
|
109
109
|
return true;
|
|
110
110
|
};
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
}
|
|
134
134
|
function JsSodiumLoader() {
|
|
135
135
|
}
|
|
136
|
-
protoOf(JsSodiumLoader).
|
|
136
|
+
protoOf(JsSodiumLoader).go = function ($completion) {
|
|
137
137
|
var safe = SafeContinuation_init_$Create$(intercepted($completion));
|
|
138
138
|
if (!getSodiumLoaded()) {
|
|
139
139
|
var tmp = ready;
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
var sodiumLoaded;
|
|
187
187
|
function $initializeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
188
188
|
CoroutineImpl.call(this, resultContinuation);
|
|
189
|
-
this.
|
|
189
|
+
this.po_1 = _this__u8e3s4;
|
|
190
190
|
}
|
|
191
191
|
protoOf($initializeCOROUTINE$).c9 = function () {
|
|
192
192
|
var suspendResult = this.w8_1;
|
|
@@ -197,14 +197,14 @@
|
|
|
197
197
|
case 0:
|
|
198
198
|
this.v8_1 = 2;
|
|
199
199
|
this.u8_1 = 1;
|
|
200
|
-
suspendResult = JsSodiumLoader_instance.
|
|
200
|
+
suspendResult = JsSodiumLoader_instance.go(this);
|
|
201
201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
202
202
|
return suspendResult;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
continue $sm;
|
|
206
206
|
case 1:
|
|
207
|
-
this.
|
|
207
|
+
this.po_1.qo_1 = true;
|
|
208
208
|
return Unit_instance;
|
|
209
209
|
case 2:
|
|
210
210
|
throw this.x8_1;
|
|
@@ -221,9 +221,9 @@
|
|
|
221
221
|
while (true);
|
|
222
222
|
};
|
|
223
223
|
function LibsodiumInitializer() {
|
|
224
|
-
this.
|
|
224
|
+
this.qo_1 = false;
|
|
225
225
|
}
|
|
226
|
-
protoOf(LibsodiumInitializer).
|
|
226
|
+
protoOf(LibsodiumInitializer).ro = function ($completion) {
|
|
227
227
|
var tmp = new $initializeCOROUTINE$(this, $completion);
|
|
228
228
|
tmp.w8_1 = Unit_instance;
|
|
229
229
|
tmp.x8_1 = null;
|
|
@@ -241,24 +241,24 @@
|
|
|
241
241
|
}
|
|
242
242
|
function Signature() {
|
|
243
243
|
}
|
|
244
|
-
protoOf(Signature).
|
|
244
|
+
protoOf(Signature).so = function () {
|
|
245
245
|
var keypair = getSodium().crypto_sign_keypair();
|
|
246
246
|
var tmp = keypair.publicKey;
|
|
247
247
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
248
248
|
var tmp_1 = keypair.privateKey;
|
|
249
249
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
250
250
|
};
|
|
251
|
-
protoOf(Signature).
|
|
251
|
+
protoOf(Signature).to = function (seed) {
|
|
252
252
|
var keypair = getSodium().crypto_sign_seed_keypair(toUInt8Array(seed));
|
|
253
253
|
var tmp = keypair.publicKey;
|
|
254
254
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
255
255
|
var tmp_1 = keypair.privateKey;
|
|
256
256
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
257
257
|
};
|
|
258
|
-
protoOf(Signature).
|
|
258
|
+
protoOf(Signature).uo = function (message, secretKey) {
|
|
259
259
|
return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
|
|
260
260
|
};
|
|
261
|
-
protoOf(Signature).
|
|
261
|
+
protoOf(Signature).vo = function (signature, message, publicKey) {
|
|
262
262
|
var verificationResult = getSodium().crypto_sign_verify_detached(toUInt8Array(signature), toUInt8Array(message), toUInt8Array(publicKey));
|
|
263
263
|
if (verificationResult === false) {
|
|
264
264
|
throw new InvalidSignatureException();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
4
|
+
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
8
|
-
var toBoolean = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.ac;
|
|
7
|
+
var toIntOrNull = kotlin_kotlin.$_$.re;
|
|
8
|
+
var toBoolean = kotlin_kotlin.$_$.ne;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.bb;
|
|
10
10
|
//endregion
|
|
11
11
|
//region block: pre-declaration
|
|
12
12
|
initMetadataForClass(StorageSettings, 'StorageSettings', StorageSettings);
|
|
@@ -20,46 +20,46 @@
|
|
|
20
20
|
tmp = delegate;
|
|
21
21
|
}
|
|
22
22
|
delegate = tmp;
|
|
23
|
-
this.
|
|
23
|
+
this.y5s_1 = delegate;
|
|
24
24
|
}
|
|
25
25
|
protoOf(StorageSettings).b2 = function () {
|
|
26
|
-
return this.
|
|
26
|
+
return this.y5s_1.clear();
|
|
27
27
|
};
|
|
28
|
-
protoOf(StorageSettings).
|
|
29
|
-
return this.
|
|
28
|
+
protoOf(StorageSettings).q2m = function (key) {
|
|
29
|
+
return this.y5s_1.removeItem(key);
|
|
30
30
|
};
|
|
31
|
-
protoOf(StorageSettings).
|
|
31
|
+
protoOf(StorageSettings).z5s = function (key) {
|
|
32
32
|
// Inline function 'com.russhwolf.settings.get' call
|
|
33
|
-
return !(this.
|
|
33
|
+
return !(this.y5s_1.getItem(key) == null);
|
|
34
34
|
};
|
|
35
|
-
protoOf(StorageSettings).
|
|
36
|
-
var tmp0 = this.
|
|
35
|
+
protoOf(StorageSettings).a5t = function (key, value) {
|
|
36
|
+
var tmp0 = this.y5s_1;
|
|
37
37
|
// Inline function 'com.russhwolf.settings.set' call
|
|
38
38
|
var value_0 = value.toString();
|
|
39
39
|
tmp0.setItem(key, value_0);
|
|
40
40
|
};
|
|
41
|
-
protoOf(StorageSettings).
|
|
41
|
+
protoOf(StorageSettings).b5t = function (key) {
|
|
42
42
|
// Inline function 'com.russhwolf.settings.get' call
|
|
43
|
-
var tmp0_safe_receiver = this.
|
|
43
|
+
var tmp0_safe_receiver = this.y5s_1.getItem(key);
|
|
44
44
|
return tmp0_safe_receiver == null ? null : toIntOrNull(tmp0_safe_receiver);
|
|
45
45
|
};
|
|
46
|
-
protoOf(StorageSettings).
|
|
46
|
+
protoOf(StorageSettings).c5t = function (key, value) {
|
|
47
47
|
// Inline function 'com.russhwolf.settings.set' call
|
|
48
|
-
this.
|
|
48
|
+
this.y5s_1.setItem(key, value);
|
|
49
49
|
};
|
|
50
|
-
protoOf(StorageSettings).
|
|
50
|
+
protoOf(StorageSettings).d5t = function (key) {
|
|
51
51
|
// Inline function 'com.russhwolf.settings.get' call
|
|
52
|
-
return this.
|
|
52
|
+
return this.y5s_1.getItem(key);
|
|
53
53
|
};
|
|
54
|
-
protoOf(StorageSettings).
|
|
55
|
-
var tmp0 = this.
|
|
54
|
+
protoOf(StorageSettings).e5t = function (key, value) {
|
|
55
|
+
var tmp0 = this.y5s_1;
|
|
56
56
|
// Inline function 'com.russhwolf.settings.set' call
|
|
57
57
|
var value_0 = value.toString();
|
|
58
58
|
tmp0.setItem(key, value_0);
|
|
59
59
|
};
|
|
60
|
-
protoOf(StorageSettings).
|
|
60
|
+
protoOf(StorageSettings).f5t = function (key) {
|
|
61
61
|
// Inline function 'com.russhwolf.settings.get' call
|
|
62
|
-
var tmp0_safe_receiver = this.
|
|
62
|
+
var tmp0_safe_receiver = this.y5s_1.getItem(key);
|
|
63
63
|
return tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver);
|
|
64
64
|
};
|
|
65
65
|
//region block: exports
|