@dmarket/p2p-tracker-core 0.1.0-SNAPSHOT.150 → 0.1.0-SNAPSHOT.151
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/dmarket-p2p-tracker-core-domain.mjs +35 -17
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +2 -2
- package/p2p-tracker-core.mjs +119 -111
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -308,6 +308,8 @@ initMetadataForObject(NetworkRedaction, 'NetworkRedaction');
|
|
|
308
308
|
initMetadataForObject(SteamHosts, 'SteamHosts');
|
|
309
309
|
initMetadataForClass(ProvenReadBinding, 'ProvenReadBinding');
|
|
310
310
|
initMetadataForClass(ProvenReadSpec, 'ProvenReadSpec');
|
|
311
|
+
initMetadataForObject(All, 'All');
|
|
312
|
+
initMetadataForClass(JsonPaths, 'JsonPaths');
|
|
311
313
|
initMetadataForCompanion(Companion_13);
|
|
312
314
|
initMetadataForClass(SteamProofReadMapper, 'SteamProofReadMapper');
|
|
313
315
|
initMetadataForCompanion(Companion_14);
|
|
@@ -7292,17 +7294,17 @@ protoOf(ProvenReadBinding).equals = function (other) {
|
|
|
7292
7294
|
return false;
|
|
7293
7295
|
return true;
|
|
7294
7296
|
};
|
|
7295
|
-
function ProvenReadSpec(serverName, method, path, redactRequestHeaderValues, revealResponseHeaders,
|
|
7297
|
+
function ProvenReadSpec(serverName, method, path, redactRequestHeaderValues, revealResponseHeaders, responseBodyReveal, revealRequestTarget) {
|
|
7296
7298
|
this.r30_1 = serverName;
|
|
7297
7299
|
this.s30_1 = method;
|
|
7298
7300
|
this.t30_1 = path;
|
|
7299
7301
|
this.u30_1 = redactRequestHeaderValues;
|
|
7300
7302
|
this.v30_1 = revealResponseHeaders;
|
|
7301
|
-
this.w30_1 =
|
|
7303
|
+
this.w30_1 = responseBodyReveal;
|
|
7302
7304
|
this.x30_1 = revealRequestTarget;
|
|
7303
7305
|
}
|
|
7304
7306
|
protoOf(ProvenReadSpec).toString = function () {
|
|
7305
|
-
return 'ProvenReadSpec(serverName=' + this.r30_1 + ', method=' + this.s30_1 + ', path=' + this.t30_1 + ', redactRequestHeaderValues=' + toString(this.u30_1) + ', revealResponseHeaders=' + this.v30_1 + ',
|
|
7307
|
+
return 'ProvenReadSpec(serverName=' + this.r30_1 + ', method=' + this.s30_1 + ', path=' + this.t30_1 + ', redactRequestHeaderValues=' + toString(this.u30_1) + ', revealResponseHeaders=' + this.v30_1 + ', responseBodyReveal=' + toString(this.w30_1) + ', revealRequestTarget=' + this.x30_1 + ')';
|
|
7306
7308
|
};
|
|
7307
7309
|
protoOf(ProvenReadSpec).hashCode = function () {
|
|
7308
7310
|
var result = getStringHashCode(this.r30_1);
|
|
@@ -7335,6 +7337,27 @@ protoOf(ProvenReadSpec).equals = function (other) {
|
|
|
7335
7337
|
return false;
|
|
7336
7338
|
return true;
|
|
7337
7339
|
};
|
|
7340
|
+
function All() {
|
|
7341
|
+
}
|
|
7342
|
+
protoOf(All).toString = function () {
|
|
7343
|
+
return 'All';
|
|
7344
|
+
};
|
|
7345
|
+
protoOf(All).hashCode = function () {
|
|
7346
|
+
return 285487115;
|
|
7347
|
+
};
|
|
7348
|
+
protoOf(All).equals = function (other) {
|
|
7349
|
+
if (this === other)
|
|
7350
|
+
return true;
|
|
7351
|
+
if (!(other instanceof All))
|
|
7352
|
+
return false;
|
|
7353
|
+
return true;
|
|
7354
|
+
};
|
|
7355
|
+
var All_instance;
|
|
7356
|
+
function All_getInstance() {
|
|
7357
|
+
return All_instance;
|
|
7358
|
+
}
|
|
7359
|
+
function JsonPaths() {
|
|
7360
|
+
}
|
|
7338
7361
|
function fillPlaceholder($this, $receiver, placeholder, value) {
|
|
7339
7362
|
if (!contains_0($receiver, placeholder))
|
|
7340
7363
|
return $receiver;
|
|
@@ -7363,28 +7386,20 @@ protoOf(SteamProofReadMapper).a31 = function (source, binding, subjectSteamId, a
|
|
|
7363
7386
|
var tmp;
|
|
7364
7387
|
switch (source.a1_1) {
|
|
7365
7388
|
case 0:
|
|
7366
|
-
tmp =
|
|
7389
|
+
tmp = this.z30_1.offerReadPathTemplate;
|
|
7367
7390
|
break;
|
|
7368
7391
|
case 1:
|
|
7369
|
-
tmp =
|
|
7392
|
+
tmp = this.z30_1.historyReadPathTemplate;
|
|
7370
7393
|
break;
|
|
7371
7394
|
default:
|
|
7372
7395
|
noWhenBranchMatchedException();
|
|
7373
7396
|
break;
|
|
7374
7397
|
}
|
|
7375
|
-
var
|
|
7376
|
-
var template = _destruct__k2r9zo.xg();
|
|
7377
|
-
var jsonPaths = _destruct__k2r9zo.yg();
|
|
7378
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
7379
|
-
// Inline function 'kotlin.require' call
|
|
7380
|
-
if (!!jsonPaths.r()) {
|
|
7381
|
-
var message = 'proof read for ' + source.toString() + ' reveals no response paths, so the attestation would bind no trade id';
|
|
7382
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
7383
|
-
}
|
|
7398
|
+
var template = tmp;
|
|
7384
7399
|
// Inline function 'kotlin.require' call
|
|
7385
7400
|
if (!contains_0(template, '{token}')) {
|
|
7386
|
-
var
|
|
7387
|
-
throw IllegalArgumentException_init_$Create$(toString(
|
|
7401
|
+
var message = 'proof read for ' + source.toString() + ' has no {token} slot, so the read would be unauthenticated';
|
|
7402
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
7388
7403
|
}
|
|
7389
7404
|
var tmp_0 = fillPlaceholder(this, template, '{steamId}', _SteamId___get_value__impl__qjh21u(subjectSteamId));
|
|
7390
7405
|
var tmp1_safe_receiver = binding.o30_1;
|
|
@@ -7414,7 +7429,7 @@ protoOf(SteamProofReadMapper).a31 = function (source, binding, subjectSteamId, a
|
|
|
7414
7429
|
tmp_7 = _TradeId___get_value__impl__5etrta(tmp3_safe_receiver);
|
|
7415
7430
|
}
|
|
7416
7431
|
var path = fillPlaceholder(this, tmp_6, '{tradeId}', tmp_7);
|
|
7417
|
-
return new ProvenReadSpec(this.z30_1.provenServerName, 'GET', path, distinct(listOf([this.z30_1.provenCookieHeader, 'authorization'])), false,
|
|
7432
|
+
return new ProvenReadSpec(this.z30_1.provenServerName, 'GET', path, distinct(listOf([this.z30_1.provenCookieHeader, 'authorization'])), false, All_instance, false);
|
|
7418
7433
|
};
|
|
7419
7434
|
function Companion_14() {
|
|
7420
7435
|
}
|
|
@@ -12454,6 +12469,7 @@ Companion_instance_8 = new Companion_7();
|
|
|
12454
12469
|
MarketplaceTokenJwt_instance = new MarketplaceTokenJwt();
|
|
12455
12470
|
ReversalAttribution_instance = new ReversalAttribution();
|
|
12456
12471
|
SteamTokenJwt_instance = new SteamTokenJwt();
|
|
12472
|
+
All_instance = new All();
|
|
12457
12473
|
Companion_instance_14 = new Companion_13();
|
|
12458
12474
|
Companion_instance_15 = new Companion_14();
|
|
12459
12475
|
CreateChainPlanner_instance = new CreateChainPlanner();
|
|
@@ -12557,6 +12573,7 @@ export {
|
|
|
12557
12573
|
redactedRemoteText as redactedRemoteText1qr6d1ce730jx,
|
|
12558
12574
|
redactedSummary as redactedSummary2xxks1bwb2j2z,
|
|
12559
12575
|
ProvenReadBinding as ProvenReadBinding2kgbppa4ckh3j,
|
|
12576
|
+
JsonPaths as JsonPathssu2j5cwztuvw,
|
|
12560
12577
|
SteamProofReadMapper as SteamProofReadMapper1vlkwpyoh4baz,
|
|
12561
12578
|
CadencePolicy as CadencePolicy26v5odfgbio91,
|
|
12562
12579
|
PartnerCooldown as PartnerCooldownrvpu0hrezjux,
|
|
@@ -12647,6 +12664,7 @@ export {
|
|
|
12647
12664
|
TokenFingerprint_getInstance as TokenFingerprint_getInstance2w8jhvukzyvby,
|
|
12648
12665
|
NetworkRedaction_getInstance as NetworkRedaction_getInstance32w4gfwhub6p4,
|
|
12649
12666
|
SteamHosts_getInstance as SteamHosts_getInstance1r6ftq7qo6z00,
|
|
12667
|
+
All_instance as All_instance1zmfxxjh1lnc4,
|
|
12650
12668
|
CreateChainPlanner_instance as CreateChainPlanner_instance174wseny4eypm,
|
|
12651
12669
|
ExponentialBackoff_instance as ExponentialBackoff_instance2ripkq1yerwdd,
|
|
12652
12670
|
Companion_getInstance_19 as Companion_getInstanceljiseedx12ej,
|