bump versions
This commit is contained in:
parent
c1ce5e1174
commit
fd0a218f23
2 changed files with 12 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "saleor-app-sdk"
|
name = "saleor-app-sdk"
|
||||||
authors = ["Djkáťo <djkatovfx@gmail.com>"]
|
authors = ["Djkáťo <djkatovfx@gmail.com>"]
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Unofficial Saleor App SDK like library, made to for Rust."
|
description = "Unofficial Saleor App SDK like library, made to for Rust."
|
||||||
keywords = ["saleor", "sdk", "plugin"]
|
keywords = ["saleor", "sdk", "plugin"]
|
||||||
|
@ -28,10 +28,10 @@ dotenvy.workspace = true
|
||||||
tower = { workspace = true }
|
tower = { workspace = true }
|
||||||
rust_decimal = { workspace = true, features = ["serde-float"] }
|
rust_decimal = { workspace = true, features = ["serde-float"] }
|
||||||
iso_currency = { workspace = true, features = ["with-serde", "iterator"] }
|
iso_currency = { workspace = true, features = ["with-serde", "iterator"] }
|
||||||
reqwest = { version = "0.11.24", features = ["json"] }
|
reqwest = { version = "0.12.3", features = ["json"] }
|
||||||
jsonwebtoken = "9.2.0"
|
jsonwebtoken = "9.3.0"
|
||||||
async-trait = "0.1.77"
|
async-trait = "0.1.80"
|
||||||
http = "1.0.0"
|
http = "1.1.0"
|
||||||
url = "2.5.0"
|
url = "2.5.0"
|
||||||
strum = "0.26.0"
|
strum = "0.26.2"
|
||||||
strum_macros = "0.26.1"
|
strum_macros = "0.26.2"
|
||||||
|
|
|
@ -18,7 +18,7 @@ pub struct RedisApl {
|
||||||
impl APL for RedisApl {
|
impl APL for RedisApl {
|
||||||
async fn get(&self, saleor_api_url: &str) -> Result<AuthData> {
|
async fn get(&self, saleor_api_url: &str) -> Result<AuthData> {
|
||||||
debug!("get()");
|
debug!("get()");
|
||||||
let mut conn = self.client.get_async_connection().await?;
|
let mut conn = self.client.get_multiplexed_async_connection().await?;
|
||||||
let val: String = conn.get(self.prepare_key(saleor_api_url)).await?;
|
let val: String = conn.get(self.prepare_key(saleor_api_url)).await?;
|
||||||
let val: AuthData = serde_json::from_str(&val)?;
|
let val: AuthData = serde_json::from_str(&val)?;
|
||||||
info!("sucessful get");
|
info!("sucessful get");
|
||||||
|
@ -27,7 +27,7 @@ impl APL for RedisApl {
|
||||||
}
|
}
|
||||||
async fn set(&self, auth_data: AuthData) -> Result<()> {
|
async fn set(&self, auth_data: AuthData) -> Result<()> {
|
||||||
debug!("set()");
|
debug!("set()");
|
||||||
let mut conn = self.client.get_async_connection().await?;
|
let mut conn = self.client.get_multiplexed_async_connection().await?;
|
||||||
conn.set(
|
conn.set(
|
||||||
self.prepare_key(&auth_data.saleor_api_url),
|
self.prepare_key(&auth_data.saleor_api_url),
|
||||||
serde_json::to_string(&auth_data)?,
|
serde_json::to_string(&auth_data)?,
|
||||||
|
@ -38,7 +38,7 @@ impl APL for RedisApl {
|
||||||
}
|
}
|
||||||
async fn delete(&self, saleor_api_url: &str) -> Result<()> {
|
async fn delete(&self, saleor_api_url: &str) -> Result<()> {
|
||||||
debug!("delete(), {}", saleor_api_url);
|
debug!("delete(), {}", saleor_api_url);
|
||||||
let mut conn = self.client.get_async_connection().await?;
|
let mut conn = self.client.get_multiplexed_async_connection().await?;
|
||||||
let val: String = conn.get_del(self.prepare_key(saleor_api_url)).await?;
|
let val: String = conn.get_del(self.prepare_key(saleor_api_url)).await?;
|
||||||
|
|
||||||
debug!("sucessful delete(), {}", val);
|
debug!("sucessful delete(), {}", val);
|
||||||
|
@ -47,7 +47,7 @@ impl APL for RedisApl {
|
||||||
}
|
}
|
||||||
async fn is_ready(&self) -> Result<()> {
|
async fn is_ready(&self) -> Result<()> {
|
||||||
debug!("is_ready()");
|
debug!("is_ready()");
|
||||||
let mut conn = self.client.get_async_connection().await?;
|
let mut conn = self.client.get_multiplexed_async_connection().await?;
|
||||||
let val: String = redis::cmd("INFO")
|
let val: String = redis::cmd("INFO")
|
||||||
.arg("server")
|
.arg("server")
|
||||||
.query_async(&mut conn)
|
.query_async(&mut conn)
|
||||||
|
@ -59,7 +59,7 @@ impl APL for RedisApl {
|
||||||
}
|
}
|
||||||
async fn is_configured(&self) -> Result<()> {
|
async fn is_configured(&self) -> Result<()> {
|
||||||
debug!("is_configured()");
|
debug!("is_configured()");
|
||||||
let mut conn = self.client.get_async_connection().await?;
|
let mut conn = self.client.get_multiplexed_async_connection().await?;
|
||||||
let val: String = redis::cmd("INFO")
|
let val: String = redis::cmd("INFO")
|
||||||
.arg("server")
|
.arg("server")
|
||||||
.query_async(&mut conn)
|
.query_async(&mut conn)
|
||||||
|
|
Loading…
Reference in a new issue