Skip to content

Commit

Permalink
v13.7.3 - Update to last changes in node v13.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
monoman committed Apr 17, 2024
1 parent f6e7c29 commit 5b59504
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<Version>13.7.0</Version>
<Version>13.7.3</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Copyright>Copyright (c) 2018-2024 InterlockLedger Network</Copyright>
<Description>
Expand All @@ -13,7 +13,7 @@
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageTags>REST Client InterlockLedger</PackageTags>
<PackageReleaseNotes>Update to last changes in node v13.7.0</PackageReleaseNotes>
<PackageReleaseNotes>Update to last changes in node v13.7.3</PackageReleaseNotes>
<PackageIcon>il2.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
Expand Down
16 changes: 8 additions & 8 deletions rest_client/AbstractUsing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ protected async Task TryToPermitKeyAsync(T chain) {
protected static async Task ReadSomeJsonDocumentsRecordsAsync<TJson>(X509Certificate2 certificate, TJson jsonStore, IRecordsStore recordsStore, string chainId, ulong payloadTagId, string payloadTypeName, Func<X509Certificate2, TJson, string, ulong, Task> retrieveAndDumpAsync) where TJson : IJsonStore {
ulong[] filteredRecords = await FindJsonRecords(recordsStore, payloadTagId);
if (filteredRecords.SafeAny()) {
Console.WriteLine($"{Environment.NewLine}==== {payloadTypeName} from {chainId}: {filteredRecords.Length} records");
Console.WriteLine($"{Environment.NewLine} ==== {payloadTypeName} from {chainId}: {filteredRecords.Length} records");
foreach (var serial in filteredRecords) {
await retrieveAndDumpAsync(certificate, jsonStore, chainId, serial);
}
} else {
Console.WriteLine($"No {payloadTypeName} found in {chainId}");
Console.WriteLine($" No {payloadTypeName} found in {chainId}");
}

static async Task<ulong[]> FindJsonRecords(IRecordsStore recordsStore, ulong payloadTagId) {
Expand All @@ -309,16 +309,16 @@ static async Task<ulong[]> FindJsonRecords(IRecordsStore recordsStore, ulong pay

protected static async Task RetrieveAndDumpJsonDocumentsAsync<TJson>(X509Certificate2 certificate, TJson jsonStore, string chainId, ulong serial) where TJson : IJsonStore {
var json = await jsonStore.RetrieveAsync(serial);
Console.WriteLine($"{Environment.NewLine}Json at {chainId}@{serial}:");
Console.WriteLine($"{Environment.NewLine} Json at {chainId}@{serial}:");
if (json is null)
Console.WriteLine("-- Could not retrieve it!");
Console.WriteLine(" -- Could not retrieve it!");
else if (json.JsonText.IsValidJson())
Console.WriteLine($"-- {json.JsonText.Ellipsis(300)}");
Console.WriteLine($" -- {json.JsonText.Ellipsis(300)}");
else if (json.EncryptedJson is null)
Console.WriteLine("-- Invalid format!");
Console.WriteLine(" -- Invalid format!");
else {
Console.WriteLine($"-- {json.EncryptedJson}");
Console.WriteLine($"-- {json.EncryptedJson.DecodedWith(certificate)}");
Console.WriteLine($" -- {json.EncryptedJson}");
Console.WriteLine($" -- {json.EncryptedJson.DecodedWith(certificate)}");
}
}

Expand Down

0 comments on commit 5b59504

Please sign in to comment.