@typeberry/jam 0.3.1 → 0.4.0-13b653d

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.
@@ -24101,8 +24101,8 @@ class Compatibility {
24101
24101
  /**
24102
24102
  * Allows selecting different values for different Gray Paper versions from one record.
24103
24103
  *
24104
- * @param fallback The default value to return if no value is found for the current.
24105
- * @param record A record mapping versions to values, checking if the version is greater or equal to the current version.
24104
+ * fallback The default value to return if no value is found for the current.
24105
+ * versions A record mapping versions to values, checking if the version is greater or equal to the current version.
24106
24106
  * @returns The value for the current version, or the default value.
24107
24107
  */
24108
24108
  static selectIfGreaterOrEqual({ fallback, versions, }) {
@@ -24265,7 +24265,7 @@ const workspacePathFix = dev_env.NODE_ENV === "development"
24265
24265
 
24266
24266
  ;// CONCATENATED MODULE: ./packages/core/utils/opaque.ts
24267
24267
  /**
24268
- * @fileoverview `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
24268
+ * `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
24269
24269
  * specified unique token Token. It means that base type cannot be assigned to unique type by accident.
24270
24270
  * Good examples of opaque types include:
24271
24271
  * - JWTs or other tokens - these are special kinds of string used for authorization purposes.
@@ -30913,7 +30913,7 @@ function parseBootnode(v) {
30913
30913
  if (name === "" || ip === "" || port === "") {
30914
30914
  throw new Error(`Invalid bootnode format, expected: <name>@<ip>:<port>, got: "${v}"`);
30915
30915
  }
30916
- const portNumber = Number.parseInt(port);
30916
+ const portNumber = Number.parseInt(port, 10);
30917
30917
  if (!isU16(portNumber)) {
30918
30918
  throw new Error(`Invalid port number: "${port}"`);
30919
30919
  }
@@ -31344,7 +31344,7 @@ const DEFAULT_CONFIG = "default";
31344
31344
  const NODE_DEFAULTS = {
31345
31345
  name: isBrowser() ? "browser" : external_node_os_default().hostname(),
31346
31346
  config: [DEFAULT_CONFIG],
31347
- pvm: PvmBackend.BuiltIn,
31347
+ pvm: PvmBackend.Ananas,
31348
31348
  };
31349
31349
  /** Chain spec chooser. */
31350
31350
  var KnownChainSpec;
@@ -33390,7 +33390,6 @@ class LeafNode {
33390
33390
  /**
33391
33391
  * Get the byte length of embedded value.
33392
33392
  *
33393
- * @remark
33394
33393
  * Note in case this node only contains hash this is going to be 0.
33395
33394
  */
33396
33395
  getValueLength() {
@@ -33401,7 +33400,6 @@ class LeafNode {
33401
33400
  /**
33402
33401
  * Returns the embedded value.
33403
33402
  *
33404
- * @remark
33405
33403
  * Note that this is going to be empty for a regular leaf node (i.e. containing a hash).
33406
33404
  */
33407
33405
  getValue() {
@@ -33411,7 +33409,6 @@ class LeafNode {
33411
33409
  /**
33412
33410
  * Returns contained value hash.
33413
33411
  *
33414
- * @remark
33415
33412
  * Note that for embedded value this is going to be full 0-padded 32 bytes.
33416
33413
  */
33417
33414
  getValueHash() {