@typeberry/convert 0.3.1-27dfdd9 → 0.4.0-1ad1b89

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/README.md CHANGED
@@ -8,6 +8,11 @@ Typeberry is a TypeScript implementation of [JAM protocol](https://graypaper.com
8
8
  PRs unless the contributor waives any claims to the prize and copy rights for
9
9
  the submitted code. By creating the PR you accept this requirement.**
10
10
 
11
+ ## Links
12
+
13
+ - [Documentation](https://fluffylabs.dev/typeberry)
14
+ - [Performance Charts](https://typeberry.fluffylabs.dev)
15
+
11
16
  ## Implementation status
12
17
 
13
18
  Gray Paper compliance can be controlled via `GP_VERSION` environment variable.
package/index.js CHANGED
@@ -4313,8 +4313,8 @@ class Compatibility {
4313
4313
  /**
4314
4314
  * Allows selecting different values for different Gray Paper versions from one record.
4315
4315
  *
4316
- * @param fallback The default value to return if no value is found for the current.
4317
- * @param record A record mapping versions to values, checking if the version is greater or equal to the current version.
4316
+ * fallback The default value to return if no value is found for the current.
4317
+ * versions A record mapping versions to values, checking if the version is greater or equal to the current version.
4318
4318
  * @returns The value for the current version, or the default value.
4319
4319
  */
4320
4320
  static selectIfGreaterOrEqual({ fallback, versions, }) {
@@ -4477,7 +4477,7 @@ const workspacePathFix = dev_env.NODE_ENV === "development"
4477
4477
 
4478
4478
  ;// CONCATENATED MODULE: ./packages/core/utils/opaque.ts
4479
4479
  /**
4480
- * @fileoverview `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
4480
+ * `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
4481
4481
  * specified unique token Token. It means that base type cannot be assigned to unique type by accident.
4482
4482
  * Good examples of opaque types include:
4483
4483
  * - JWTs or other tokens - these are special kinds of string used for authorization purposes.
@@ -4840,7 +4840,7 @@ function isResult(x) {
4840
4840
  var minimist = __nccwpck_require__(595);
4841
4841
  var minimist_default = /*#__PURE__*/__nccwpck_require__.n(minimist);
4842
4842
  ;// CONCATENATED MODULE: ./bin/convert/package.json
4843
- const package_namespaceObject = {"rE":"0.3.1"};
4843
+ const package_namespaceObject = {"rE":"0.4.0"};
4844
4844
  ;// CONCATENATED MODULE: ./packages/core/bytes/bitvec.ts
4845
4845
 
4846
4846
  /**
@@ -10702,7 +10702,7 @@ function parseBootnode(v) {
10702
10702
  if (name === "" || ip === "" || port === "") {
10703
10703
  throw new Error(`Invalid bootnode format, expected: <name>@<ip>:<port>, got: "${v}"`);
10704
10704
  }
10705
- const portNumber = Number.parseInt(port);
10705
+ const portNumber = Number.parseInt(port, 10);
10706
10706
  if (!isU16(portNumber)) {
10707
10707
  throw new Error(`Invalid port number: "${port}"`);
10708
10708
  }
@@ -14584,7 +14584,6 @@ class LeafNode {
14584
14584
  /**
14585
14585
  * Get the byte length of embedded value.
14586
14586
  *
14587
- * @remark
14588
14587
  * Note in case this node only contains hash this is going to be 0.
14589
14588
  */
14590
14589
  getValueLength() {
@@ -14595,7 +14594,6 @@ class LeafNode {
14595
14594
  /**
14596
14595
  * Returns the embedded value.
14597
14596
  *
14598
- * @remark
14599
14597
  * Note that this is going to be empty for a regular leaf node (i.e. containing a hash).
14600
14598
  */
14601
14599
  getValue() {
@@ -14605,7 +14603,6 @@ class LeafNode {
14605
14603
  /**
14606
14604
  * Returns contained value hash.
14607
14605
  *
14608
- * @remark
14609
14606
  * Note that for embedded value this is going to be full 0-padded 32 bytes.
14610
14607
  */
14611
14608
  getValueHash() {