Fix query parameters for connect
This commit is contained in:
parent
c10f15ae61
commit
96d6195f8d
|
@ -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"
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue