mirror of
https://github.com/starship/starship.git
synced 2026-06-20 02:02:07 +07:00
build(deps): update rust crate jsonc-parser to 0.32.1 (#7333)
* build(deps): update rust crate jsonc-parser to 0.32.1 * chore: handle update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
Generated
+2
-2
@@ -2106,9 +2106,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "jsonc-parser"
|
||||
version = "0.31.0"
|
||||
version = "0.32.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "45157f76d8fbe134e0c97403d69ac48989a1e0249a058b20f9f5eeff11bb09f0"
|
||||
checksum = "8de0ffda8def4eb16ed430641db8056c2509b20e38f2dd327bdb4c83239f88c4"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ dunce = "1.0.5"
|
||||
# default feature restriction addresses https://github.com/starship/starship/issues/4251
|
||||
gix = { version = "0.81.0", default-features = false, features = ["max-performance-safe", "revision", "zlib-rs", "status", "sha1"] }
|
||||
indexmap = { version = "2.13.0", features = ["serde"] }
|
||||
jsonc-parser = { version = "0.31.0", features = ["serde"] }
|
||||
jsonc-parser = { version = "0.32.1", features = ["serde"] }
|
||||
log = { version = "0.4.29", features = ["std"] }
|
||||
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
|
||||
# see: https://github.com/NixOS/nixpkgs/issues/160876
|
||||
|
||||
@@ -81,7 +81,7 @@ fn get_jsr_package_version(context: &Context, config: &PackageConfig) -> Option<
|
||||
})?;
|
||||
|
||||
let json_content: json::Value = if filename.ends_with(".jsonc") {
|
||||
jsonc_parser::parse_to_serde_value(&contents, &ParseOptions::default()).ok()??
|
||||
jsonc_parser::parse_to_serde_value(&contents, &ParseOptions::default()).ok()?
|
||||
} else {
|
||||
json::from_str(&contents).ok()?
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user