Fix query parameters for connect

This commit is contained in:
Arnaud 2024-10-31 09:27:33 +01:00
parent c10f15ae61
commit 96d6195f8d
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@codex-storage/sdk-js",
"version": "0.0.12",
"version": "0.0.13",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@codex-storage/sdk-js",
"version": "0.0.12",
"version": "0.0.13",
"license": "MIT",
"dependencies": {
"valibot": "^0.32.0"

View File

@ -1,6 +1,6 @@
{
"name": "@codex-storage/sdk-js",
"version": "0.0.12",
"version": "0.0.13",
"description": "Codex SDK to interact with the Codex decentralized storage network.",
"repository": {
"type": "git",

View File

@ -22,7 +22,7 @@ export class CodexNode {
}
const url =
this.url + Api.config.prefix + `/connect/${peerId}?` + addrs.toString();
this.url + Api.config.prefix + `/connect/${peerId}?` + params.toString();
return Fetch.safe(url, {
method: "GET",