@doordeck/doordeck-headless-sdk 0.46.0 → 0.47.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/doordeck-sdk.js
CHANGED
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
var equals = kotlin_kotlin.$_$.ia;
|
|
61
61
|
var emptyMap = kotlin_kotlin.$_$.a7;
|
|
62
62
|
var JsonClassDiscriminator = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
63
|
+
var DurationUnit_DAYS_getInstance = kotlin_kotlin.$_$.i;
|
|
63
64
|
var firstOrNull = kotlin_kotlin.$_$.d7;
|
|
64
65
|
var arrayOf = kotlin_kotlin.$_$.qf;
|
|
65
66
|
var createKType = kotlin_kotlin.$_$.c;
|
|
@@ -122,7 +123,6 @@
|
|
|
122
123
|
var toMap = kotlin_kotlin.$_$.t8;
|
|
123
124
|
var Companion_getInstance_5 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
124
125
|
var toLong_0 = kotlin_kotlin.$_$.yd;
|
|
125
|
-
var DurationUnit_DAYS_getInstance = kotlin_kotlin.$_$.i;
|
|
126
126
|
var decodeBase64Bytes = kotlin_io_ktor_ktor_utils.$_$.w;
|
|
127
127
|
var encodeBase64 = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
128
128
|
var joinToString = kotlin_kotlin.$_$.o7;
|
|
@@ -17217,6 +17217,26 @@
|
|
|
17217
17217
|
protoOf(TileLocksResponse).k61 = function () {
|
|
17218
17218
|
return this.deviceIds;
|
|
17219
17219
|
};
|
|
17220
|
+
function get_MIN_CERTIFICATE_LIFETIME_DAYS() {
|
|
17221
|
+
_init_properties_CryptoManager_kt__rp4ona();
|
|
17222
|
+
return MIN_CERTIFICATE_LIFETIME_DAYS;
|
|
17223
|
+
}
|
|
17224
|
+
var MIN_CERTIFICATE_LIFETIME_DAYS;
|
|
17225
|
+
var PRIVATE_KEY_ASN1_HEADER;
|
|
17226
|
+
var PUBLIC_KEY_ASN1_HEADER;
|
|
17227
|
+
var properties_initialized_CryptoManager_kt_abp3tw;
|
|
17228
|
+
function _init_properties_CryptoManager_kt__rp4ona() {
|
|
17229
|
+
if (!properties_initialized_CryptoManager_kt_abp3tw) {
|
|
17230
|
+
properties_initialized_CryptoManager_kt_abp3tw = true;
|
|
17231
|
+
// Inline function 'kotlin.time.Companion.days' call
|
|
17232
|
+
Companion_getInstance_1();
|
|
17233
|
+
MIN_CERTIFICATE_LIFETIME_DAYS = toDuration(7, DurationUnit_DAYS_getInstance());
|
|
17234
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
17235
|
+
PRIVATE_KEY_ASN1_HEADER = new Int8Array([48, 46, 2, 1, 0, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]);
|
|
17236
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
17237
|
+
PUBLIC_KEY_ASN1_HEADER = new Int8Array([48, 42, 48, 5, 6, 3, 43, 101, 112, 3, 33, 0]);
|
|
17238
|
+
}
|
|
17239
|
+
}
|
|
17220
17240
|
function resetTokens($this) {
|
|
17221
17241
|
$this.m61_1 = null;
|
|
17222
17242
|
$this.n61_1 = null;
|
|
@@ -29042,21 +29062,16 @@
|
|
|
29042
29062
|
var certificate = new PKI.Certificate();
|
|
29043
29063
|
certificate.fromSchema(asn1.result);
|
|
29044
29064
|
var notAfterDate = (new Date(toString(certificate.notAfter.value))).toISOString();
|
|
29045
|
-
|
|
29046
|
-
var tmp_1 = Companion_getInstance_5().r55(notAfterDate);
|
|
29047
|
-
// Inline function 'kotlin.time.Companion.days' call
|
|
29048
|
-
Companion_getInstance_1();
|
|
29049
|
-
var tmp$ret$0 = toDuration(30, DurationUnit_DAYS_getInstance());
|
|
29050
|
-
tmp = tmp_0.n56(tmp_1.m56(tmp$ret$0)) >= 0;
|
|
29065
|
+
tmp = System_instance.t4r().n56(Companion_getInstance_5().r55(notAfterDate).m56(get_MIN_CERTIFICATE_LIFETIME_DAYS())) >= 0;
|
|
29051
29066
|
} catch ($p) {
|
|
29052
|
-
var
|
|
29067
|
+
var tmp_0;
|
|
29053
29068
|
if ($p instanceof Error) {
|
|
29054
29069
|
var exception = $p;
|
|
29055
|
-
|
|
29070
|
+
tmp_0 = true;
|
|
29056
29071
|
} else {
|
|
29057
29072
|
throw $p;
|
|
29058
29073
|
}
|
|
29059
|
-
tmp =
|
|
29074
|
+
tmp = tmp_0;
|
|
29060
29075
|
}
|
|
29061
29076
|
return tmp;
|
|
29062
29077
|
};
|
|
@@ -48,12 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
48
|
};
|
|
49
49
|
}(Math.log, Math.LN2);
|
|
50
50
|
}
|
|
51
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
-
position = position || 0;
|
|
54
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
-
}});
|
|
56
|
-
}
|
|
57
51
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
58
52
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
59
53
|
var subjectString = this.toString();
|
|
@@ -65,6 +59,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
65
59
|
return lastIndex !== -1 && lastIndex === position;
|
|
66
60
|
}});
|
|
67
61
|
}
|
|
62
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
63
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
64
|
+
position = position || 0;
|
|
65
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
66
|
+
}});
|
|
67
|
+
}
|
|
68
68
|
//endregion
|
|
69
69
|
(function (_) {
|
|
70
70
|
'use strict';
|
|
@@ -193,11 +193,6 @@
|
|
|
193
193
|
initMetadataForCoroutine($hasNextCOROUTINE$6, CoroutineImpl);
|
|
194
194
|
initMetadataForClass(SendBroadcast, 'SendBroadcast', VOID, VOID, [Waiter]);
|
|
195
195
|
initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, VOID, [Waiter], [0, 3]);
|
|
196
|
-
function close$default(cause, $super) {
|
|
197
|
-
cause = cause === VOID ? null : cause;
|
|
198
|
-
return $super === VOID ? this.i13(cause) : $super.i13.call(this, cause);
|
|
199
|
-
}
|
|
200
|
-
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
201
196
|
function cancel$default_0(cause, $super) {
|
|
202
197
|
cause = cause === VOID ? null : cause;
|
|
203
198
|
var tmp;
|
|
@@ -210,7 +205,12 @@
|
|
|
210
205
|
return tmp;
|
|
211
206
|
}
|
|
212
207
|
initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
|
|
213
|
-
|
|
208
|
+
function close$default(cause, $super) {
|
|
209
|
+
cause = cause === VOID ? null : cause;
|
|
210
|
+
return $super === VOID ? this.i13(cause) : $super.i13.call(this, cause);
|
|
211
|
+
}
|
|
212
|
+
initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
|
|
213
|
+
initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
|
|
214
214
|
initMetadataForClass(WaiterEB, 'WaiterEB');
|
|
215
215
|
initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
|
|
216
216
|
initMetadataForObject(Factory, 'Factory');
|