diff --git a/Cargo.lock b/Cargo.lock index 6568757404..fb04939953 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3161,14 +3161,14 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "gloo-net" -version = "0.3.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a66b4e3c7d9ed8d315fd6b97c8b1f74a7c6ecbbc2320e65ae7ed38b7068cc620" +checksum = "43aaa242d1239a8822c15c645f02166398da4f8b5c4bae795c1f5b44e9eee173" dependencies = [ "futures-channel", "futures-core", "futures-sink", - "gloo-utils 0.1.7", + "gloo-utils 0.2.0", "http 0.2.9", "js-sys", "pin-project", diff --git a/Cargo.toml b/Cargo.toml index cb01ec8a08..a0fb343bd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -240,6 +240,7 @@ prost = "0.12" # wasm-related dependencies gloo-utils = "0.2.0" +gloo-net = "0.5.0" js-sys = "0.3.69" serde-wasm-bindgen = "0.6.5" tsify = "0.4.5" diff --git a/common/wasm/client-core/src/error.rs b/common/wasm/client-core/src/error.rs index f80327265a..55f5d3979d 100644 --- a/common/wasm/client-core/src/error.rs +++ b/common/wasm/client-core/src/error.rs @@ -3,7 +3,6 @@ use crate::storage::wasm_client_traits::WasmClientStorageError; use crate::topology::WasmTopologyError; -use js_sys::Promise; use nym_client_core::client::base_client::storage::gateways_storage::BadGateway; use nym_client_core::error::ClientCoreError; use nym_crypto::asymmetric::identity::Ed25519RecoveryError; diff --git a/common/wasm/utils/Cargo.toml b/common/wasm/utils/Cargo.toml index ee3536b260..57d33b6602 100644 --- a/common/wasm/utils/Cargo.toml +++ b/common/wasm/utils/Cargo.toml @@ -12,9 +12,9 @@ futures = { workspace = true } js-sys = { workspace = true } wasm-bindgen = { workspace = true } wasm-bindgen-futures = { workspace = true } -getrandom = { workspace = true, features=["js"], optional = true } +getrandom = { workspace = true, features = ["js"], optional = true } gloo-utils = { workspace = true } -gloo-net = { version = "0.3.1", features = ["websocket"], optional = true } +gloo-net = { workspace = true, features = ["websocket"], optional = true } #gloo-net = { path = "../../../../gloo/crates/net", features = ["websocket"], optional = true } # we don't want entire tokio-tungstenite, tungstenite itself is just fine - we just want message and error enums diff --git a/wasm/client/src/error.rs b/wasm/client/src/error.rs index 0a01c97867..ed50e309ea 100644 --- a/wasm/client/src/error.rs +++ b/wasm/client/src/error.rs @@ -1,7 +1,6 @@ // Copyright 2023 - Nym Technologies SA // SPDX-License-Identifier: Apache-2.0 -use js_sys::Promise; use thiserror::Error; use wasm_client_core::error::WasmCoreError; use wasm_client_core::topology::WasmTopologyError; diff --git a/wasm/mix-fetch/src/error.rs b/wasm/mix-fetch/src/error.rs index 8bdb7ae9bb..ab15d7e61a 100644 --- a/wasm/mix-fetch/src/error.rs +++ b/wasm/mix-fetch/src/error.rs @@ -3,7 +3,6 @@ use crate::harbourmaster::HarbourMasterApiError; use crate::RequestId; -use js_sys::Promise; use nym_ordered_buffer::OrderedMessageError; use nym_socks5_requests::ConnectionError; use thiserror::Error; diff --git a/wasm/node-tester/src/error.rs b/wasm/node-tester/src/error.rs index 41004c755c..f5679833d8 100644 --- a/wasm/node-tester/src/error.rs +++ b/wasm/node-tester/src/error.rs @@ -1,7 +1,6 @@ // Copyright 2023 - Nym Technologies SA // SPDX-License-Identifier: Apache-2.0 -use js_sys::Promise; use nym_node_tester_utils::error::NetworkTestingError; use thiserror::Error; use wasm_client_core::error::WasmCoreError;