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", "name": "@codex-storage/sdk-js",
"version": "0.0.12", "version": "0.0.13",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@codex-storage/sdk-js", "name": "@codex-storage/sdk-js",
"version": "0.0.12", "version": "0.0.13",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"valibot": "^0.32.0" "valibot": "^0.32.0"

View File

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

View File

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