@typeberry/jam 0.4.0-d185014 → 0.4.0-da92f56
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 +5 -0
- package/bootstrap-generator.mjs +8 -4
- package/bootstrap-generator.mjs.map +1 -1
- package/bootstrap-importer.mjs +8 -7
- package/bootstrap-importer.mjs.map +1 -1
- package/bootstrap-network.mjs +8 -7
- package/bootstrap-network.mjs.map +1 -1
- package/index.js +8 -7
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -24314,7 +24314,11 @@ var TestSuite;
|
|
|
24314
24314
|
})(TestSuite || (TestSuite = {}));
|
|
24315
24315
|
const ALL_VERSIONS_IN_ORDER = [GpVersion.V0_6_7, GpVersion.V0_7_0, GpVersion.V0_7_1, GpVersion.V0_7_2];
|
|
24316
24316
|
const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
|
|
24317
|
-
|
|
24317
|
+
/**
|
|
24318
|
+
* Current version is set to track the jam-conformance testing.
|
|
24319
|
+
* Since we are currently at 0.7.1 not 0.7.2, we set our default version accordingly.
|
|
24320
|
+
*/
|
|
24321
|
+
const DEFAULT_VERSION = GpVersion.V0_7_1;
|
|
24318
24322
|
const env = typeof process === "undefined" ? {} : process.env;
|
|
24319
24323
|
let CURRENT_VERSION = parseCurrentVersion(env.GP_VERSION) ?? DEFAULT_VERSION;
|
|
24320
24324
|
let CURRENT_SUITE = parseCurrentSuite(env.TEST_SUITE) ?? DEFAULT_SUITE;
|
|
@@ -24373,8 +24377,8 @@ class Compatibility {
|
|
|
24373
24377
|
/**
|
|
24374
24378
|
* Allows selecting different values for different Gray Paper versions from one record.
|
|
24375
24379
|
*
|
|
24376
|
-
*
|
|
24377
|
-
*
|
|
24380
|
+
* fallback The default value to return if no value is found for the current.
|
|
24381
|
+
* versions A record mapping versions to values, checking if the version is greater or equal to the current version.
|
|
24378
24382
|
* @returns The value for the current version, or the default value.
|
|
24379
24383
|
*/
|
|
24380
24384
|
static selectIfGreaterOrEqual({ fallback, versions, }) {
|
|
@@ -24537,7 +24541,7 @@ const workspacePathFix = dev_env.NODE_ENV === "development"
|
|
|
24537
24541
|
|
|
24538
24542
|
;// CONCATENATED MODULE: ./packages/core/utils/opaque.ts
|
|
24539
24543
|
/**
|
|
24540
|
-
*
|
|
24544
|
+
* `Opaque<Type, Token>` constructs a unique type which is a subset of Type with a
|
|
24541
24545
|
* specified unique token Token. It means that base type cannot be assigned to unique type by accident.
|
|
24542
24546
|
* Good examples of opaque types include:
|
|
24543
24547
|
* - JWTs or other tokens - these are special kinds of string used for authorization purposes.
|
|
@@ -35445,7 +35449,6 @@ class LeafNode {
|
|
|
35445
35449
|
/**
|
|
35446
35450
|
* Get the byte length of embedded value.
|
|
35447
35451
|
*
|
|
35448
|
-
* @remark
|
|
35449
35452
|
* Note in case this node only contains hash this is going to be 0.
|
|
35450
35453
|
*/
|
|
35451
35454
|
getValueLength() {
|
|
@@ -35456,7 +35459,6 @@ class LeafNode {
|
|
|
35456
35459
|
/**
|
|
35457
35460
|
* Returns the embedded value.
|
|
35458
35461
|
*
|
|
35459
|
-
* @remark
|
|
35460
35462
|
* Note that this is going to be empty for a regular leaf node (i.e. containing a hash).
|
|
35461
35463
|
*/
|
|
35462
35464
|
getValue() {
|
|
@@ -35466,7 +35468,6 @@ class LeafNode {
|
|
|
35466
35468
|
/**
|
|
35467
35469
|
* Returns contained value hash.
|
|
35468
35470
|
*
|
|
35469
|
-
* @remark
|
|
35470
35471
|
* Note that for embedded value this is going to be full 0-padded 32 bytes.
|
|
35471
35472
|
*/
|
|
35472
35473
|
getValueHash() {
|