mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
chore(cli): remove atty crate (#20275)
Removes a crate with an outstanding vulnerability.
This commit is contained in:
parent
9e31f9452e
commit
c272d26ae8
10 changed files with 37 additions and 39 deletions
3
cli/cache/cache_db.rs
vendored
3
cli/cache/cache_db.rs
vendored
|
@ -9,6 +9,7 @@ use deno_runtime::deno_webstorage::rusqlite::Connection;
|
|||
use deno_runtime::deno_webstorage::rusqlite::OptionalExtension;
|
||||
use deno_runtime::deno_webstorage::rusqlite::Params;
|
||||
use once_cell::sync::OnceCell;
|
||||
use std::io::IsTerminal;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
|
@ -261,7 +262,7 @@ impl CacheDB {
|
|||
};
|
||||
|
||||
// Failed, try deleting it
|
||||
let is_tty = atty::is(atty::Stream::Stderr);
|
||||
let is_tty = std::io::stderr().is_terminal();
|
||||
log::log!(
|
||||
if is_tty { log::Level::Warn } else { log::Level::Trace },
|
||||
"Could not initialize cache database '{}', deleting and retrying... ({err:?})",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue