@doordeck/doordeck-headless-sdk 0.69.0 → 0.71.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.
Files changed (26) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1344 -1344
  2. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
  3. package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
  4. package/kotlin/doordeck-sdk.d.ts +4 -0
  5. package/kotlin/doordeck-sdk.js +11567 -11566
  6. package/kotlin/kotlin-kotlin-stdlib.js +2612 -2324
  7. package/kotlin/kotlinx-atomicfu.js +19 -19
  8. package/kotlin/kotlinx-coroutines-core.js +2800 -2214
  9. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +198 -2
  10. package/kotlin/kotlinx-io-kotlinx-io-core.js +536 -463
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1939 -1939
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1684
  13. package/kotlin/ktor-ktor-client-ktor-client-core.js +3274 -3074
  14. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +529 -427
  15. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +372 -271
  16. package/kotlin/ktor-ktor-http-ktor-http-cio.js +2009 -0
  17. package/kotlin/ktor-ktor-http.js +1012 -907
  18. package/kotlin/ktor-ktor-io.js +1748 -871
  19. package/kotlin/ktor-ktor-shared-ktor-events.js +13 -13
  20. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
  21. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +282 -282
  22. package/kotlin/ktor-ktor-shared-ktor-serialization.js +137 -137
  23. package/kotlin/ktor-ktor-shared-ktor-websockets.js +57 -57
  24. package/kotlin/ktor-ktor-utils.js +736 -667
  25. package/package.json +2 -2
  26. package/kotlin/kotlin-kotlinx-atomicfu-runtime.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.$_$.l3;
8
- var protoOf = kotlin_kotlin.$_$.kb;
9
- var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.h3;
10
- var THROW_CCE = kotlin_kotlin.$_$.xe;
11
- var equals = kotlin_kotlin.$_$.ba;
12
- var initMetadataForClass = kotlin_kotlin.$_$.ja;
13
- var RuntimeException = kotlin_kotlin.$_$.we;
14
- var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.f2;
15
- var captureStack = kotlin_kotlin.$_$.t9;
16
- var Unit_instance = kotlin_kotlin.$_$.g5;
17
- var initMetadataForObject = kotlin_kotlin.$_$.pa;
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.$_$.k3;
20
- var toTypedArray = kotlin_kotlin.$_$.q8;
21
- var println = kotlin_kotlin.$_$.o9;
22
- var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.f3;
23
- var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.b3;
24
- var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.i3;
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.rm_1 = publicKey;
80
- this.sm_1 = secretKey;
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.rm_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.sm_1) + ')';
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.rm_1);
87
- result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.sm_1) | 0;
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.rm_1, tmp0_other_with_cast.rm_1))
96
+ if (!equals(this.ln_1, tmp0_other_with_cast.ln_1))
97
97
  return false;
98
- if (!equals(this.sm_1, tmp0_other_with_cast.sm_1))
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).tm = function (doneCallback) {
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.um_1 = true;
165
+ LibsodiumInitializer_instance.on_1 = true;
166
166
  $done();
167
167
  return Unit_instance;
168
168
  };
169
169
  }
170
170
  function LibsodiumInitializer() {
171
- this.um_1 = false;
171
+ this.on_1 = false;
172
172
  }
173
- protoOf(LibsodiumInitializer).vm = function (done) {
173
+ protoOf(LibsodiumInitializer).pn = function (done) {
174
174
  var tmp = JsSodiumLoader_instance;
175
- tmp.tm(LibsodiumInitializer$initializeWithCallback$lambda(done));
175
+ tmp.nn(LibsodiumInitializer$initializeWithCallback$lambda(done));
176
176
  };
177
- protoOf(LibsodiumInitializer).ik = function () {
178
- return this.um_1;
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).wm = function () {
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).xm = function (seed) {
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).ym = function (message, secretKey) {
206
+ protoOf(Signature).sn = function (message, secretKey) {
207
207
  return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
208
208
  };
209
- protoOf(Signature).zm = function (signature, message, publicKey) {
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.$_$.g5;
4
+ var Unit_instance = kotlin_kotlin.$_$.j5;
5
5
  var VOID = kotlin_kotlin.$_$.h;
6
- var protoOf = kotlin_kotlin.$_$.kb;
7
- var initMetadataForClass = kotlin_kotlin.$_$.ja;
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.e57_1 = delegate;
21
+ this.l5l_1 = delegate;
22
22
  }
23
23
  protoOf(StorageSettings).e2 = function () {
24
- return this.e57_1.clear();
24
+ return this.l5l_1.clear();
25
25
  };
26
- protoOf(StorageSettings).f57 = function (key, value) {
26
+ protoOf(StorageSettings).m5l = function (key, value) {
27
27
  // Inline function 'com.russhwolf.settings.set' call
28
- this.e57_1.setItem(key, value);
28
+ this.l5l_1.setItem(key, value);
29
29
  };
30
- protoOf(StorageSettings).g57 = function (key) {
30
+ protoOf(StorageSettings).n5l = function (key) {
31
31
  // Inline function 'com.russhwolf.settings.get' call
32
- return this.e57_1.getItem(key);
32
+ return this.l5l_1.getItem(key);
33
33
  };
34
34
  //region block: exports
35
35
  _.$_$ = _.$_$ || {};
@@ -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.api.ContextManager;