@doordeck/doordeck-headless-sdk 0.77.0 → 0.79.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/Kotlin-DateTime-library-kotlinx-datetime.js +1344 -1344
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
- package/kotlin/doordeck-sdk.d.ts +4 -0
- package/kotlin/doordeck-sdk.js +11595 -11570
- package/kotlin/kotlin-kotlin-stdlib.js +2786 -2285
- package/kotlin/kotlinx-atomicfu.js +19 -19
- package/kotlin/kotlinx-coroutines-core.js +2805 -2189
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +198 -2
- package/kotlin/kotlinx-io-kotlinx-io-core.js +536 -463
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1939 -1939
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1684
- package/kotlin/ktor-ktor-client-ktor-client-core.js +3455 -3134
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +540 -438
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +372 -271
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +2017 -0
- package/kotlin/ktor-ktor-http.js +1012 -906
- package/kotlin/ktor-ktor-io.js +1853 -859
- package/kotlin/ktor-ktor-shared-ktor-events.js +13 -13
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +282 -282
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +137 -137
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +57 -57
- package/kotlin/ktor-ktor-utils.js +758 -669
- package/package.json +2 -2
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -6
- package/kotlin/ktor-ktor-client-ktor-client-js.js +0 -6
|
@@ -4,24 +4,24 @@
|
|
|
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.$_$.
|
|
14
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
15
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
16
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
7
|
+
var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.o3;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.sb;
|
|
9
|
+
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.k3;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.lf;
|
|
11
|
+
var equals = kotlin_kotlin.$_$.ja;
|
|
12
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ra;
|
|
13
|
+
var RuntimeException = kotlin_kotlin.$_$.kf;
|
|
14
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.i2;
|
|
15
|
+
var captureStack = kotlin_kotlin.$_$.ba;
|
|
16
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
17
|
+
var initMetadataForObject = kotlin_kotlin.$_$.xa;
|
|
18
18
|
var VOID = kotlin_kotlin.$_$.h;
|
|
19
|
-
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.
|
|
20
|
-
var toTypedArray = kotlin_kotlin.$_$.
|
|
21
|
-
var println = kotlin_kotlin.$_$.
|
|
22
|
-
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.
|
|
23
|
-
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.
|
|
24
|
-
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.
|
|
19
|
+
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.n3;
|
|
20
|
+
var toTypedArray = kotlin_kotlin.$_$.y8;
|
|
21
|
+
var println = kotlin_kotlin.$_$.w9;
|
|
22
|
+
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.i3;
|
|
23
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.e3;
|
|
24
|
+
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.l3;
|
|
25
25
|
//endregion
|
|
26
26
|
//region block: pre-declaration
|
|
27
27
|
initMetadataForClass(SignatureKeyPair, 'SignatureKeyPair');
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
var crypto_secretstream_xchacha20poly1305_KEYBYTES;
|
|
77
77
|
var crypto_secretstream_xchacha20poly1305_ABYTES;
|
|
78
78
|
function SignatureKeyPair(publicKey, secretKey) {
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
79
|
+
this.ln_1 = publicKey;
|
|
80
|
+
this.mn_1 = secretKey;
|
|
81
81
|
}
|
|
82
82
|
protoOf(SignatureKeyPair).toString = function () {
|
|
83
|
-
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.
|
|
83
|
+
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.ln_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.mn_1) + ')';
|
|
84
84
|
};
|
|
85
85
|
protoOf(SignatureKeyPair).hashCode = function () {
|
|
86
|
-
var result = UByteArray__hashCode_impl_ip8jx2(this.
|
|
87
|
-
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.
|
|
86
|
+
var result = UByteArray__hashCode_impl_ip8jx2(this.ln_1);
|
|
87
|
+
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.mn_1) | 0;
|
|
88
88
|
return result;
|
|
89
89
|
};
|
|
90
90
|
protoOf(SignatureKeyPair).equals = function (other) {
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
if (!(other instanceof SignatureKeyPair))
|
|
94
94
|
return false;
|
|
95
95
|
var tmp0_other_with_cast = other instanceof SignatureKeyPair ? other : THROW_CCE();
|
|
96
|
-
if (!equals(this.
|
|
96
|
+
if (!equals(this.ln_1, tmp0_other_with_cast.ln_1))
|
|
97
97
|
return false;
|
|
98
|
-
if (!equals(this.
|
|
98
|
+
if (!equals(this.mn_1, tmp0_other_with_cast.mn_1))
|
|
99
99
|
return false;
|
|
100
100
|
return true;
|
|
101
101
|
};
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
function JsSodiumLoader() {
|
|
116
116
|
}
|
|
117
|
-
protoOf(JsSodiumLoader).
|
|
117
|
+
protoOf(JsSodiumLoader).nn = function (doneCallback) {
|
|
118
118
|
if (!getSodiumLoaded()) {
|
|
119
119
|
var tmp = ready;
|
|
120
120
|
tmp.then(JsSodiumLoader$loadWithCallback$lambda(doneCallback));
|
|
@@ -162,20 +162,20 @@
|
|
|
162
162
|
var sodiumLoaded;
|
|
163
163
|
function LibsodiumInitializer$initializeWithCallback$lambda($done) {
|
|
164
164
|
return function () {
|
|
165
|
-
LibsodiumInitializer_instance.
|
|
165
|
+
LibsodiumInitializer_instance.on_1 = true;
|
|
166
166
|
$done();
|
|
167
167
|
return Unit_instance;
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
function LibsodiumInitializer() {
|
|
171
|
-
this.
|
|
171
|
+
this.on_1 = false;
|
|
172
172
|
}
|
|
173
|
-
protoOf(LibsodiumInitializer).
|
|
173
|
+
protoOf(LibsodiumInitializer).pn = function (done) {
|
|
174
174
|
var tmp = JsSodiumLoader_instance;
|
|
175
|
-
tmp.
|
|
175
|
+
tmp.nn(LibsodiumInitializer$initializeWithCallback$lambda(done));
|
|
176
176
|
};
|
|
177
|
-
protoOf(LibsodiumInitializer).
|
|
178
|
-
return this.
|
|
177
|
+
protoOf(LibsodiumInitializer).dl = function () {
|
|
178
|
+
return this.on_1;
|
|
179
179
|
};
|
|
180
180
|
var LibsodiumInitializer_instance;
|
|
181
181
|
function LibsodiumInitializer_getInstance() {
|
|
@@ -189,24 +189,24 @@
|
|
|
189
189
|
}
|
|
190
190
|
function Signature() {
|
|
191
191
|
}
|
|
192
|
-
protoOf(Signature).
|
|
192
|
+
protoOf(Signature).qn = function () {
|
|
193
193
|
var keypair = getSodium().crypto_sign_keypair();
|
|
194
194
|
var tmp = keypair.publicKey;
|
|
195
195
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
196
196
|
var tmp_1 = keypair.privateKey;
|
|
197
197
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
198
198
|
};
|
|
199
|
-
protoOf(Signature).
|
|
199
|
+
protoOf(Signature).rn = function (seed) {
|
|
200
200
|
var keypair = getSodium().crypto_sign_seed_keypair(toUInt8Array(seed));
|
|
201
201
|
var tmp = keypair.publicKey;
|
|
202
202
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
203
203
|
var tmp_1 = keypair.privateKey;
|
|
204
204
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
205
205
|
};
|
|
206
|
-
protoOf(Signature).
|
|
206
|
+
protoOf(Signature).sn = function (message, secretKey) {
|
|
207
207
|
return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
|
|
208
208
|
};
|
|
209
|
-
protoOf(Signature).
|
|
209
|
+
protoOf(Signature).tn = function (signature, message, publicKey) {
|
|
210
210
|
var verificationResult = getSodium().crypto_sign_verify_detached(toUInt8Array(signature), toUInt8Array(message), toUInt8Array(publicKey));
|
|
211
211
|
if (verificationResult === false) {
|
|
212
212
|
throw new InvalidSignatureException();
|
|
@@ -1,10 +1,10 @@
|
|
|
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.$_$.j5;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.h;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.sb;
|
|
7
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ra;
|
|
8
8
|
//endregion
|
|
9
9
|
//region block: pre-declaration
|
|
10
10
|
initMetadataForClass(StorageSettings, 'StorageSettings', StorageSettings);
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
tmp = delegate;
|
|
19
19
|
}
|
|
20
20
|
delegate = tmp;
|
|
21
|
-
this.
|
|
21
|
+
this.s5l_1 = delegate;
|
|
22
22
|
}
|
|
23
23
|
protoOf(StorageSettings).e2 = function () {
|
|
24
|
-
return this.
|
|
24
|
+
return this.s5l_1.clear();
|
|
25
25
|
};
|
|
26
|
-
protoOf(StorageSettings).
|
|
26
|
+
protoOf(StorageSettings).t5l = function (key, value) {
|
|
27
27
|
// Inline function 'com.russhwolf.settings.set' call
|
|
28
|
-
this.
|
|
28
|
+
this.s5l_1.setItem(key, value);
|
|
29
29
|
};
|
|
30
|
-
protoOf(StorageSettings).
|
|
30
|
+
protoOf(StorageSettings).u5l = function (key) {
|
|
31
31
|
// Inline function 'com.russhwolf.settings.get' call
|
|
32
|
-
return this.
|
|
32
|
+
return this.s5l_1.getItem(key);
|
|
33
33
|
};
|
|
34
34
|
//region block: exports
|
|
35
35
|
_.$_$ = _.$_$ || {};
|
package/kotlin/doordeck-sdk.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export declare namespace kotlin.collections {
|
|
|
19
19
|
fromJsMap<K, V>(map: ReadonlyMap<K, V>): kotlin.collections.KtMap<K, V>;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
+
export declare namespace io.ktor.client.engine.js {
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
const initHook: any;
|
|
25
|
+
}
|
|
22
26
|
export declare namespace com.doordeck.multiplatform.sdk {
|
|
23
27
|
interface Doordeck {
|
|
24
28
|
contextManager(): com.doordeck.multiplatform.sdk.context.ContextManager;
|