@typeberry/jam 0.4.0-4809f38 → 0.4.0-fcdfbb1
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 +2 -4
- package/bootstrap-generator.mjs.map +1 -1
- package/bootstrap-importer.mjs +2 -6
- package/bootstrap-importer.mjs.map +1 -1
- package/bootstrap-network.mjs +1 -1
- package/bootstrap-network.mjs.map +1 -1
- package/index.js +4 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/bootstrap-network.mjs
CHANGED
|
@@ -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
|
}
|