mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
chore(deps): update rust crate urlpattern to 0.3 (v2) (#1607)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
@@ -18,7 +18,7 @@ tauri-plugin = { workspace = true, features = [ "build" ] }
|
||||
schemars = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
url = { workspace = true }
|
||||
urlpattern = "0.2"
|
||||
urlpattern = "0.3"
|
||||
regex = "1"
|
||||
|
||||
[dependencies]
|
||||
@@ -28,7 +28,7 @@ tauri = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
tokio = { version = "1", features = ["sync", "macros"] }
|
||||
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.1" }
|
||||
urlpattern = "0.2"
|
||||
urlpattern = "0.3"
|
||||
regex = "1"
|
||||
http = "1"
|
||||
reqwest = { version = "0.12", default-features = false }
|
||||
|
||||
@@ -59,6 +59,7 @@ impl From<HttpScopeEntry> for scope::Entry {
|
||||
url: urlpattern::UrlPattern::parse(
|
||||
urlpattern::UrlPatternInit::parse_constructor_string::<regex::Regex>(&url, None)
|
||||
.unwrap(),
|
||||
Default::default(),
|
||||
)
|
||||
.unwrap(),
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ fn parse_url_pattern(s: &str) -> Result<UrlPattern, urlpattern::quirks::Error> {
|
||||
{
|
||||
init.pathname.replace("*".to_string());
|
||||
}
|
||||
UrlPattern::parse(init)
|
||||
UrlPattern::parse(init, Default::default())
|
||||
}
|
||||
|
||||
impl<'de> Deserialize<'de> for Entry {
|
||||
|
||||
Reference in New Issue
Block a user