@typeberry/jam 0.2.0-661fe38 → 0.2.0-663eeb1
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/bootstrap-generator.mjs +3 -2
- package/bootstrap-generator.mjs.map +1 -1
- package/bootstrap-importer.mjs +38 -15
- package/bootstrap-importer.mjs.map +1 -1
- package/bootstrap-network.mjs +3 -2
- package/bootstrap-network.mjs.map +1 -1
- package/index.js +38 -15
- package/index.js.map +1 -1
- package/package.json +1 -1
package/bootstrap-network.mjs
CHANGED
|
@@ -24782,12 +24782,13 @@ class bytes_BytesBlob {
|
|
|
24782
24782
|
}
|
|
24783
24783
|
/** Display a hex-encoded version of this byte blob, but truncated if it's large. */
|
|
24784
24784
|
toStringTruncated() {
|
|
24785
|
+
const bytes = `${this.raw.length} ${this.raw.length === 1 ? "byte" : "bytes"}`;
|
|
24785
24786
|
if (this.raw.length > 32) {
|
|
24786
24787
|
const start = bytesToHexString(this.raw.subarray(0, 16));
|
|
24787
24788
|
const end = bytesToHexString(this.raw.subarray(this.raw.length - 16));
|
|
24788
|
-
return `${start}...${end.substring(2)} (${
|
|
24789
|
+
return `${start}...${end.substring(2)} (${bytes})`;
|
|
24789
24790
|
}
|
|
24790
|
-
return this.toString()
|
|
24791
|
+
return `${this.toString()} (${bytes})`;
|
|
24791
24792
|
}
|
|
24792
24793
|
toJSON() {
|
|
24793
24794
|
return this.toString();
|