Skip to content

Commit

Permalink
chore: use deno_whoami (#21027)
Browse files Browse the repository at this point in the history
Towards #20996 

`deno_whoami` is lightweight on unix and has zero framework dependency
on macOS. https://github.com/denoland/deno_whoami

---------

Signed-off-by: Divy Srivastava <[email protected]>
  • Loading branch information
littledivy authored Oct 31, 2023
1 parent ba6bd44 commit edee8ab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ deno_fetch.workspace = true
deno_fs.workspace = true
deno_media_type.workspace = true
deno_net.workspace = true
deno_whoami = "0.1.0"
digest = { version = "0.10.5", features = ["core-api", "std"] }
dsa = "0.6.1"
ecb.workspace = true
Expand Down Expand Up @@ -66,7 +67,6 @@ signature.workspace = true
tokio.workspace = true
typenum = "1.15.0"
url.workspace = true
whoami = "1.4.0"
winapi.workspace = true
# https://github.com/dalek-cryptography/x25519-dalek/pull/89
x25519-dalek = "2.0.0-pre.1"
Expand Down
2 changes: 1 addition & 1 deletion ext/node/ops/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ where
permissions.check_sys("userInfo", "node:os.userInfo()")?;
}

Ok(whoami::username())
Ok(deno_whoami::username())
}

#[cfg(unix)]
Expand Down

0 comments on commit edee8ab

Please sign in to comment.