summaryrefslogtreecommitdiff
path: root/cli/npm
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2024-08-01 08:35:35 -0400
committerGitHub <noreply@github.com>2024-08-01 08:35:35 -0400
commitc79cb339ef74e671c39f4bb13879b281eadd9aaa (patch)
treea3e6a8002d456c87e9478b63b07a9389722165d3 /cli/npm
parent8e6b06b89d47c0ce27c2f959be6d8d48ffab5ebf (diff)
chore: upgrade flaky_test, fastwebsockets, base64, base32, notify (#24746)
Diffstat (limited to 'cli/npm')
-rw-r--r--cli/npm/cache_dir.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/cache_dir.rs b/cli/npm/cache_dir.rs
index 1f1f5e956..4467d685e 100644
--- a/cli/npm/cache_dir.rs
+++ b/cli/npm/cache_dir.rs
@@ -197,14 +197,14 @@ pub fn mixed_case_package_name_encode(name: &str) -> String {
// use base32 encoding because it's reversible and the character set
// only includes the characters within 0-9 and A-Z so it can be lower cased
base32::encode(
- base32::Alphabet::RFC4648 { padding: false },
+ base32::Alphabet::Rfc4648Lower { padding: false },
name.as_bytes(),
)
.to_lowercase()
}
pub fn mixed_case_package_name_decode(name: &str) -> Option<String> {
- base32::decode(base32::Alphabet::RFC4648 { padding: false }, name)
+ base32::decode(base32::Alphabet::Rfc4648Lower { padding: false }, name)
.and_then(|b| String::from_utf8(b).ok())
}