Browse Source

upgrade all deps (#1133)

* upgrade all deps

* add changeset

* maybe fix windows build
remotes/origin/fix-insecure-world-writable-dir
Gal Schlezinger 9 months ago committed by GitHub
parent
commit
a1afe8436a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/modern-wombats-reply.md
  2. 1076
      Cargo.lock
  3. 44
      Cargo.toml
  4. 2
      build.rs
  5. 7
      src/shell/infer/windows.rs

5
.changeset/modern-wombats-reply.md

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
---
"fnm": patch
---
upgrade all dependencies & maintain lockfile

1076
Cargo.lock generated

File diff suppressed because it is too large Load Diff

44
Cargo.toml

@ -9,40 +9,40 @@ repository = "https://github.com/Schniz/fnm" @@ -9,40 +9,40 @@ repository = "https://github.com/Schniz/fnm"
description = "Fast and simple Node.js version manager"
[dependencies]
serde = { version = "1.0.166", features = ["derive"] }
clap = { version = "4.3.10", features = ["derive", "env"] }
serde_json = "1.0.100"
serde = { version = "1.0.203", features = ["derive"] }
clap = { version = "4.5.4", features = ["derive", "env"] }
serde_json = "1.0.117"
chrono = { version = "0.4.38", features = ["serde", "now"], default-features = false }
tar = "0.4.38"
tar = "0.4.40"
xz2 = "0.1.7"
node-semver = "2.1.0"
dirs = "5.0.1"
colored = "2.0.4"
zip = "0.6.6"
tempfile = "3.6.0"
indoc = "2.0.2"
log = "0.4.19"
env_logger = "0.10.0"
colored = "2.1.0"
zip = "2.1.0"
tempfile = "3.10.1"
indoc = "2.0.5"
log = "0.4.21"
env_logger = "0.11.3"
encoding_rs_io = "0.1.7"
reqwest = { version = "0.11.18", features = ["blocking", "json", "rustls-tls", "rustls-tls-native-roots", "brotli"], default-features = false }
url = "2.4.0"
sysinfo = "0.29.3"
thiserror = "1.0.44"
clap_complete = "4.3.1"
anyhow = "1.0.71"
reqwest = { version = "0.12.4", features = ["blocking", "json", "rustls-tls", "rustls-tls-native-roots", "brotli"], default-features = false }
url = "2.5.0"
sysinfo = "0.30.12"
thiserror = "1.0.61"
clap_complete = "4.5.2"
anyhow = "1.0.86"
indicatif = { version = "0.17.8", features = ["improved_unicode"] }
[dev-dependencies]
pretty_assertions = "1.4.0"
duct = "0.13.6"
test-log = "0.2.12"
http = "0.2.9"
duct = "0.13.7"
test-log = "0.2.16"
http = "1.1.0"
[build-dependencies]
embed-resource = "1.8.0"
embed-resource = "2.4.2"
[target.'cfg(windows)'.dependencies]
csv = "1.2.2"
junction = "1.0.0"
csv = "1.3.0"
junction = "1.1.0"
[features]

2
build.rs

@ -1,3 +1,3 @@ @@ -1,3 +1,3 @@
fn main() {
embed_resource::compile("fnm-manifest.rc");
embed_resource::compile("fnm-manifest.rc", embed_resource::NONE);
}

7
src/shell/infer/windows.rs

@ -1,8 +1,7 @@ @@ -1,8 +1,7 @@
#![cfg(not(unix))]
use crate::shell::Shell;
use std::ffi::OsStr;
use sysinfo::{ProcessExt, System, SystemExt};
use sysinfo::System;
pub fn infer_shell() -> Option<Box<dyn Shell>> {
let mut system = System::new();
@ -14,8 +13,8 @@ pub fn infer_shell() -> Option<Box<dyn Shell>> { @@ -14,8 +13,8 @@ pub fn infer_shell() -> Option<Box<dyn Shell>> {
current_pid = process.parent();
let process_name = process
.exe()
.file_stem()
.and_then(OsStr::to_str)
.and_then(|x| x.file_stem())
.and_then(|x| x.to_str())
.map(str::to_lowercase);
if let Some(shell) = process_name
.as_ref()

Loading…
Cancel
Save