@chainflip/utils 2.2.0-alpha.6 → 2.2.0-alpha.7
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/dist/chainflip.cjs +1 -1
- package/dist/chainflip.mjs +1 -1
- package/package.json +1 -1
package/dist/chainflip.cjs
CHANGED
|
@@ -464,7 +464,7 @@ const parseSemver = (version) => {
|
|
|
464
464
|
};
|
|
465
465
|
};
|
|
466
466
|
const parseBlockSpecId = (blockVersion) => {
|
|
467
|
-
const stringVersion =
|
|
467
|
+
const stringVersion = /@?(\d+)$/.exec(blockVersion)?.[1];
|
|
468
468
|
require_assertion.assert(stringVersion, `Could not parse spec version from blockVersion: ${blockVersion}`);
|
|
469
469
|
const digitCount = Math.ceil(stringVersion.length / 3);
|
|
470
470
|
const paddedVersion = stringVersion.padStart(digitCount * 3, "0");
|
package/dist/chainflip.mjs
CHANGED
|
@@ -463,7 +463,7 @@ const parseSemver = (version) => {
|
|
|
463
463
|
};
|
|
464
464
|
};
|
|
465
465
|
const parseBlockSpecId = (blockVersion) => {
|
|
466
|
-
const stringVersion =
|
|
466
|
+
const stringVersion = /@?(\d+)$/.exec(blockVersion)?.[1];
|
|
467
467
|
assert(stringVersion, `Could not parse spec version from blockVersion: ${blockVersion}`);
|
|
468
468
|
const digitCount = Math.ceil(stringVersion.length / 3);
|
|
469
469
|
const paddedVersion = stringVersion.padStart(digitCount * 3, "0");
|