@typeberry/convert 0.4.0-5a35a0a → 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/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -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
|
}
|