@dmarket/p2p-tracker-core 0.1.0-SNAPSHOT.165 → 0.1.0-SNAPSHOT.166
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-stdlib.mjs +1 -0
- package/kotlinx-coroutines-core.mjs +1 -1
- package/p2p-tracker-core.mjs +197 -41
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -17363,6 +17363,7 @@ export {
|
|
|
17363
17363
|
newThrowable as newThrowablezl37abp36p5f,
|
|
17364
17364
|
numberRangeToNumber as numberRangeToNumber25vse2rgp6rs8,
|
|
17365
17365
|
numberToChar as numberToChar93r9buh19yek,
|
|
17366
|
+
numberToInt as numberToInt1ygmcfwhs2fkq,
|
|
17366
17367
|
objectCreate as objectCreate1ve4bgxiu4x98,
|
|
17367
17368
|
protoOf as protoOf180f3jzyo7rfj,
|
|
17368
17369
|
toByte as toByte4i43936u611k,
|
|
@@ -304,7 +304,7 @@ initMetadataForClass(ContextScope, 'ContextScope', VOID, VOID, [CoroutineScope])
|
|
|
304
304
|
initMetadataForClass(Symbol, 'Symbol');
|
|
305
305
|
initMetadataForInterface(SelectInstance, 'SelectInstance');
|
|
306
306
|
initMetadataForClass(ClauseData, 'ClauseData', VOID, VOID, VOID, [1]);
|
|
307
|
-
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler,
|
|
307
|
+
initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
|
|
308
308
|
initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
|
|
309
309
|
initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
|
|
310
310
|
initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
|
package/p2p-tracker-core.mjs
CHANGED
|
@@ -136,8 +136,10 @@ import {
|
|
|
136
136
|
Default_getInstance2btmaxiazehss as Default_getInstance_0,
|
|
137
137
|
IllegalStateException_init_$Create$3hmmy2q9mdx3a as IllegalStateException_init_$Create$_0,
|
|
138
138
|
replace3le3ie7l9k8aq as replace,
|
|
139
|
+
contains3ue2qo8xhmpf1 as contains,
|
|
139
140
|
isFinite2t9l5a275mxm6 as isFinite,
|
|
140
141
|
roundToInt1ue8x8yshtznx as roundToInt,
|
|
142
|
+
numberToInt1ygmcfwhs2fkq as numberToInt,
|
|
141
143
|
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
|
|
142
144
|
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
143
145
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
@@ -26545,6 +26547,12 @@ function progressCallback($this) {
|
|
|
26545
26547
|
}
|
|
26546
26548
|
return tmp;
|
|
26547
26549
|
}
|
|
26550
|
+
function BundledWasmProverModule$prove$lambda(this$0, $request, $spec) {
|
|
26551
|
+
return function () {
|
|
26552
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
26553
|
+
return this$0.p9h_1.connectProxy($request.w9g_1, $spec.a31_1, 443);
|
|
26554
|
+
};
|
|
26555
|
+
}
|
|
26548
26556
|
function BundledWasmProverModule$progressCallback$lambda(this$0, $sink) {
|
|
26549
26557
|
return function (event) {
|
|
26550
26558
|
// Inline function 'kotlin.runCatching' call
|
|
@@ -26644,7 +26652,7 @@ protoOf($proveCOROUTINE$_0).d9 = function () {
|
|
|
26644
26652
|
var tmp = this.v8_1;
|
|
26645
26653
|
switch (tmp) {
|
|
26646
26654
|
case 0:
|
|
26647
|
-
this.w8_1 =
|
|
26655
|
+
this.w8_1 = 15;
|
|
26648
26656
|
this.q9i_1 = this.l9i_1.x9g_1;
|
|
26649
26657
|
var tmp0_safe_receiver = this.k9i_1.o9h_1;
|
|
26650
26658
|
if (tmp0_safe_receiver == null)
|
|
@@ -26679,11 +26687,11 @@ protoOf($proveCOROUTINE$_0).d9 = function () {
|
|
|
26679
26687
|
continue $sm;
|
|
26680
26688
|
case 1:
|
|
26681
26689
|
this.v9i_1 = suspendResult;
|
|
26682
|
-
this.w8_1 =
|
|
26690
|
+
this.w8_1 = 15;
|
|
26683
26691
|
this.v8_1 = 3;
|
|
26684
26692
|
continue $sm;
|
|
26685
26693
|
case 2:
|
|
26686
|
-
this.w8_1 =
|
|
26694
|
+
this.w8_1 = 15;
|
|
26687
26695
|
var tmp_2 = this.y8_1;
|
|
26688
26696
|
if (tmp_2 instanceof Error) {
|
|
26689
26697
|
var cause = this.y8_1;
|
|
@@ -26694,98 +26702,91 @@ protoOf($proveCOROUTINE$_0).d9 = function () {
|
|
|
26694
26702
|
}
|
|
26695
26703
|
|
|
26696
26704
|
case 3:
|
|
26697
|
-
this.w8_1 =
|
|
26705
|
+
this.w8_1 = 15;
|
|
26698
26706
|
this.n9i_1 = this.v9i_1;
|
|
26699
26707
|
this.s9i_1 = Unit_instance;
|
|
26700
26708
|
this.v8_1 = 4;
|
|
26701
26709
|
continue $sm;
|
|
26702
26710
|
case 4:
|
|
26703
|
-
this.w8_1 =
|
|
26711
|
+
this.w8_1 = 13;
|
|
26712
|
+
var tmp_4 = this;
|
|
26713
|
+
var tmp1_onTrace = this.k9i_1.o9h_1;
|
|
26714
|
+
tmp_4.p9i_1 = lazyTargetChannel(BundledWasmProverModule$prove$lambda(this.k9i_1, this.l9i_1, this.q9i_1), tmp1_onTrace);
|
|
26715
|
+
this.u9i_1 = Unit_instance;
|
|
26704
26716
|
this.v8_1 = 5;
|
|
26705
|
-
var this_1 = this.k9i_1.p9h_1.connectProxy(this.l9i_1.w9g_1, this.q9i_1.a31_1, 443);
|
|
26706
|
-
suspendResult = await_0(this_1, this);
|
|
26707
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
26708
|
-
return suspendResult;
|
|
26709
|
-
}
|
|
26710
|
-
|
|
26711
26717
|
continue $sm;
|
|
26712
26718
|
case 5:
|
|
26713
|
-
this.
|
|
26714
|
-
this.u9i_1 = Unit_instance;
|
|
26719
|
+
this.w8_1 = 11;
|
|
26715
26720
|
this.v8_1 = 6;
|
|
26716
|
-
|
|
26717
|
-
|
|
26718
|
-
this.w8_1 = 12;
|
|
26719
|
-
this.v8_1 = 7;
|
|
26720
|
-
var this_2 = this.k9i_1.q9h_1.prove(this.n9i_1, this.p9i_1, issuanceConfig(this.l9i_1), httpRequest(this.l9i_1), progressCallback(this.k9i_1));
|
|
26721
|
-
suspendResult = await_0(this_2, this);
|
|
26721
|
+
var this_1 = this.k9i_1.q9h_1.prove(this.n9i_1, this.p9i_1, issuanceConfig(this.l9i_1), httpRequest(this.l9i_1), progressCallback(this.k9i_1));
|
|
26722
|
+
suspendResult = await_0(this_1, this);
|
|
26722
26723
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
26723
26724
|
return suspendResult;
|
|
26724
26725
|
}
|
|
26725
26726
|
|
|
26726
26727
|
continue $sm;
|
|
26727
|
-
case
|
|
26728
|
+
case 6:
|
|
26728
26729
|
this.u9i_1 = suspendResult;
|
|
26729
|
-
this.v8_1 =
|
|
26730
|
+
this.v8_1 = 7;
|
|
26730
26731
|
continue $sm;
|
|
26731
|
-
case
|
|
26732
|
+
case 7:
|
|
26732
26733
|
this.t9i_1 = this.u9i_1;
|
|
26733
|
-
this.w8_1 =
|
|
26734
|
-
this.v8_1 =
|
|
26734
|
+
this.w8_1 = 13;
|
|
26735
|
+
this.v8_1 = 8;
|
|
26735
26736
|
suspendResult = closeQuietly(this.k9i_1, this.p9i_1, this);
|
|
26736
26737
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
26737
26738
|
return suspendResult;
|
|
26738
26739
|
}
|
|
26739
26740
|
|
|
26740
26741
|
continue $sm;
|
|
26741
|
-
case
|
|
26742
|
+
case 8:
|
|
26742
26743
|
this.s9i_1 = this.t9i_1;
|
|
26743
|
-
this.w8_1 =
|
|
26744
|
-
this.v8_1 =
|
|
26744
|
+
this.w8_1 = 15;
|
|
26745
|
+
this.v8_1 = 9;
|
|
26745
26746
|
continue $sm;
|
|
26746
|
-
case
|
|
26747
|
+
case 9:
|
|
26747
26748
|
this.r9i_1 = this.s9i_1;
|
|
26748
|
-
this.w8_1 =
|
|
26749
|
-
this.v8_1 =
|
|
26749
|
+
this.w8_1 = 15;
|
|
26750
|
+
this.v8_1 = 10;
|
|
26750
26751
|
suspendResult = closeQuietly(this.k9i_1, this.n9i_1, this);
|
|
26751
26752
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
26752
26753
|
return suspendResult;
|
|
26753
26754
|
}
|
|
26754
26755
|
|
|
26755
26756
|
continue $sm;
|
|
26756
|
-
case
|
|
26757
|
+
case 10:
|
|
26757
26758
|
var out = this.r9i_1;
|
|
26758
26759
|
return asByteArray(this.k9i_1.q9h_1.present(out.attestation, out.secrets, revealPolicy(this.q9i_1)));
|
|
26759
|
-
case
|
|
26760
|
-
this.w8_1 =
|
|
26760
|
+
case 11:
|
|
26761
|
+
this.w8_1 = 13;
|
|
26761
26762
|
this.o9i_1 = this.y8_1;
|
|
26762
|
-
this.v8_1 =
|
|
26763
|
+
this.v8_1 = 12;
|
|
26763
26764
|
suspendResult = closeQuietly(this.k9i_1, this.p9i_1, this);
|
|
26764
26765
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
26765
26766
|
return suspendResult;
|
|
26766
26767
|
}
|
|
26767
26768
|
|
|
26768
26769
|
continue $sm;
|
|
26769
|
-
case
|
|
26770
|
+
case 12:
|
|
26770
26771
|
throw this.o9i_1;
|
|
26771
|
-
case
|
|
26772
|
-
this.w8_1 =
|
|
26772
|
+
case 13:
|
|
26773
|
+
this.w8_1 = 15;
|
|
26773
26774
|
this.m9i_1 = this.y8_1;
|
|
26774
|
-
this.v8_1 =
|
|
26775
|
+
this.v8_1 = 14;
|
|
26775
26776
|
suspendResult = closeQuietly(this.k9i_1, this.n9i_1, this);
|
|
26776
26777
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
26777
26778
|
return suspendResult;
|
|
26778
26779
|
}
|
|
26779
26780
|
|
|
26780
26781
|
continue $sm;
|
|
26781
|
-
case
|
|
26782
|
+
case 14:
|
|
26782
26783
|
throw this.m9i_1;
|
|
26783
|
-
case
|
|
26784
|
+
case 15:
|
|
26784
26785
|
throw this.y8_1;
|
|
26785
26786
|
}
|
|
26786
26787
|
} catch ($p_0) {
|
|
26787
26788
|
var e_0 = $p_0;
|
|
26788
|
-
if (this.w8_1 ===
|
|
26789
|
+
if (this.w8_1 === 15) {
|
|
26789
26790
|
throw e_0;
|
|
26790
26791
|
} else {
|
|
26791
26792
|
this.v8_1 = this.w8_1;
|
|
@@ -26936,6 +26937,48 @@ function revealPolicy(spec) {
|
|
|
26936
26937
|
policy.revealResponseBody = body;
|
|
26937
26938
|
return policy;
|
|
26938
26939
|
}
|
|
26940
|
+
function lazyTargetChannel(connect, onTrace) {
|
|
26941
|
+
onTrace = onTrace === VOID ? null : onTrace;
|
|
26942
|
+
var trace = lazyTargetChannel$lambda(onTrace);
|
|
26943
|
+
var settle = {_v: null};
|
|
26944
|
+
var fail = {_v: null};
|
|
26945
|
+
var ready = new Promise(lazyTargetChannel$lambda_0(settle, fail));
|
|
26946
|
+
// Inline function 'kotlin.checkNotNull' call
|
|
26947
|
+
var tmp0 = settle._v;
|
|
26948
|
+
var tmp$ret$1;
|
|
26949
|
+
$l$block: {
|
|
26950
|
+
// Inline function 'kotlin.checkNotNull' call
|
|
26951
|
+
if (tmp0 == null) {
|
|
26952
|
+
var message = 'Required value was null.';
|
|
26953
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
26954
|
+
} else {
|
|
26955
|
+
tmp$ret$1 = tmp0;
|
|
26956
|
+
break $l$block;
|
|
26957
|
+
}
|
|
26958
|
+
}
|
|
26959
|
+
var resolveReady = tmp$ret$1;
|
|
26960
|
+
// Inline function 'kotlin.checkNotNull' call
|
|
26961
|
+
var tmp0_0 = fail._v;
|
|
26962
|
+
var tmp$ret$4;
|
|
26963
|
+
$l$block_0: {
|
|
26964
|
+
// Inline function 'kotlin.checkNotNull' call
|
|
26965
|
+
if (tmp0_0 == null) {
|
|
26966
|
+
var message_0 = 'Required value was null.';
|
|
26967
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
26968
|
+
} else {
|
|
26969
|
+
tmp$ret$4 = tmp0_0;
|
|
26970
|
+
break $l$block_0;
|
|
26971
|
+
}
|
|
26972
|
+
}
|
|
26973
|
+
var rejectReady = tmp$ret$4;
|
|
26974
|
+
var dialled = {_v: false};
|
|
26975
|
+
var closed = {_v: false};
|
|
26976
|
+
var channel = {};
|
|
26977
|
+
channel.write = lazyTargetChannel$o(closed, dialled, trace, connect, ready, resolveReady, rejectReady);
|
|
26978
|
+
channel.read = lazyTargetChannel$lambda_1(ready);
|
|
26979
|
+
channel.close = lazyTargetChannel$lambda_2(closed, dialled, ready, resolveReady);
|
|
26980
|
+
return channel;
|
|
26981
|
+
}
|
|
26939
26982
|
function issuanceLine(request) {
|
|
26940
26983
|
// Inline function 'kotlin.text.buildString' call
|
|
26941
26984
|
// Inline function 'kotlin.apply' call
|
|
@@ -26955,6 +26998,7 @@ function issuanceLine(request) {
|
|
|
26955
26998
|
tmp.q(tmp1_elvis_lhs == null ? 'mozilla' : tmp1_elvis_lhs);
|
|
26956
26999
|
this_0.q(' maxSent=').mc(request.z9g_1);
|
|
26957
27000
|
this_0.q(' maxRecv=').mc(request.a9h_1);
|
|
27001
|
+
this_0.q(' tokenSlot=').q(contains(request.x9g_1.c31_1, '{token}') ? 'present' : 'MISSING');
|
|
26958
27002
|
this_0.q(' ').q(request.x9g_1.b31_1).q(' ').q(request.x9g_1.c31_1);
|
|
26959
27003
|
return this_0.toString();
|
|
26960
27004
|
}
|
|
@@ -27055,6 +27099,118 @@ function importModule(url) {
|
|
|
27055
27099
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
27056
27100
|
return import(url);
|
|
27057
27101
|
}
|
|
27102
|
+
function lazyTargetChannel$lambda($onTrace) {
|
|
27103
|
+
return function (line) {
|
|
27104
|
+
var tmp0_safe_receiver = $onTrace;
|
|
27105
|
+
if (tmp0_safe_receiver == null)
|
|
27106
|
+
null;
|
|
27107
|
+
else {
|
|
27108
|
+
// Inline function 'kotlin.let' call
|
|
27109
|
+
// Inline function 'kotlin.runCatching' call
|
|
27110
|
+
var tmp;
|
|
27111
|
+
try {
|
|
27112
|
+
tmp0_safe_receiver(line);
|
|
27113
|
+
// Inline function 'kotlin.Companion.success' call
|
|
27114
|
+
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
27115
|
+
} catch ($p) {
|
|
27116
|
+
var tmp_0;
|
|
27117
|
+
if ($p instanceof Error) {
|
|
27118
|
+
var e = $p;
|
|
27119
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
27120
|
+
tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
27121
|
+
} else {
|
|
27122
|
+
throw $p;
|
|
27123
|
+
}
|
|
27124
|
+
tmp = tmp_0;
|
|
27125
|
+
}
|
|
27126
|
+
}
|
|
27127
|
+
return Unit_instance;
|
|
27128
|
+
};
|
|
27129
|
+
}
|
|
27130
|
+
function lazyTargetChannel$lambda_0($settle, $fail) {
|
|
27131
|
+
return function (resolve, reject) {
|
|
27132
|
+
$settle._v = resolve;
|
|
27133
|
+
$fail._v = reject;
|
|
27134
|
+
return Unit_instance;
|
|
27135
|
+
};
|
|
27136
|
+
}
|
|
27137
|
+
function lazyTargetChannel$o$lambda($trace, $startedAt, $resolveReady) {
|
|
27138
|
+
return function (io) {
|
|
27139
|
+
$trace('target dialled in ' + numberToInt(Date.now() - $startedAt) + 'ms');
|
|
27140
|
+
$resolveReady(io);
|
|
27141
|
+
return io;
|
|
27142
|
+
};
|
|
27143
|
+
}
|
|
27144
|
+
function lazyTargetChannel$o$lambda_0($trace, $startedAt, $rejectReady) {
|
|
27145
|
+
return function (cause) {
|
|
27146
|
+
$trace('target dial FAILED after ' + numberToInt(Date.now() - $startedAt) + 'ms \u2014 ' + cause.message);
|
|
27147
|
+
$rejectReady(cause);
|
|
27148
|
+
return null;
|
|
27149
|
+
};
|
|
27150
|
+
}
|
|
27151
|
+
function lazyTargetChannel$o$lambda_1($data) {
|
|
27152
|
+
return function (io) {
|
|
27153
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
27154
|
+
return io.write($data);
|
|
27155
|
+
};
|
|
27156
|
+
}
|
|
27157
|
+
function lazyTargetChannel$o($closed, $dialled, $trace, $connect, $ready, $resolveReady, $rejectReady) {
|
|
27158
|
+
return function (data) {
|
|
27159
|
+
var tmp;
|
|
27160
|
+
if ($closed._v) {
|
|
27161
|
+
return Promise.reject(IllegalStateException_init_$Create$('target channel was written after close'));
|
|
27162
|
+
}
|
|
27163
|
+
var tmp_0;
|
|
27164
|
+
if (!$dialled._v) {
|
|
27165
|
+
$dialled._v = true;
|
|
27166
|
+
var startedAt = Date.now();
|
|
27167
|
+
$trace('target dial \u2014 connecting');
|
|
27168
|
+
var tmp_1 = $connect();
|
|
27169
|
+
var tmp_2 = lazyTargetChannel$o$lambda($trace, startedAt, $resolveReady);
|
|
27170
|
+
tmp_1.then(tmp_2, lazyTargetChannel$o$lambda_0($trace, startedAt, $rejectReady));
|
|
27171
|
+
tmp_0 = Unit_instance;
|
|
27172
|
+
}
|
|
27173
|
+
return $ready.then(lazyTargetChannel$o$lambda_1(data));
|
|
27174
|
+
};
|
|
27175
|
+
}
|
|
27176
|
+
function lazyTargetChannel$lambda$lambda(io) {
|
|
27177
|
+
var tmp;
|
|
27178
|
+
if (io == null) {
|
|
27179
|
+
tmp = null;
|
|
27180
|
+
} else {
|
|
27181
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
27182
|
+
tmp = io.read();
|
|
27183
|
+
}
|
|
27184
|
+
return tmp;
|
|
27185
|
+
}
|
|
27186
|
+
function lazyTargetChannel$lambda_1($ready) {
|
|
27187
|
+
return function () {
|
|
27188
|
+
return $ready.then(lazyTargetChannel$lambda$lambda);
|
|
27189
|
+
};
|
|
27190
|
+
}
|
|
27191
|
+
function lazyTargetChannel$lambda$lambda_0(io) {
|
|
27192
|
+
var tmp;
|
|
27193
|
+
if (io == null) {
|
|
27194
|
+
tmp = null;
|
|
27195
|
+
} else {
|
|
27196
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
27197
|
+
tmp = io.close();
|
|
27198
|
+
}
|
|
27199
|
+
return tmp;
|
|
27200
|
+
}
|
|
27201
|
+
function lazyTargetChannel$lambda_2($closed, $dialled, $ready, $resolveReady) {
|
|
27202
|
+
return function () {
|
|
27203
|
+
$closed._v = true;
|
|
27204
|
+
var tmp;
|
|
27205
|
+
if ($dialled._v) {
|
|
27206
|
+
tmp = $ready.then(lazyTargetChannel$lambda$lambda_0);
|
|
27207
|
+
} else {
|
|
27208
|
+
$resolveReady(null);
|
|
27209
|
+
tmp = Promise.resolve(null);
|
|
27210
|
+
}
|
|
27211
|
+
return tmp;
|
|
27212
|
+
};
|
|
27213
|
+
}
|
|
27058
27214
|
function trackerCoreVersion() {
|
|
27059
27215
|
return '0.1.0-SNAPSHOT';
|
|
27060
27216
|
}
|