mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
chore: update base64 crate (#20877)
This commit is contained in:
parent
842e29057d
commit
08b99f3909
13 changed files with 56 additions and 32 deletions
|
@ -5,6 +5,8 @@ use std::fs;
|
|||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use base64::prelude::BASE64_STANDARD;
|
||||
use base64::Engine;
|
||||
use deno_core::anyhow::bail;
|
||||
use deno_core::error::AnyError;
|
||||
use deno_npm::registry::NpmPackageVersionDistInfo;
|
||||
|
@ -52,7 +54,7 @@ fn verify_tarball_integrity(
|
|||
let mut hash_ctx = Context::new(algo);
|
||||
hash_ctx.update(data);
|
||||
let digest = hash_ctx.finish();
|
||||
let tarball_checksum = base64::encode(digest.as_ref());
|
||||
let tarball_checksum = BASE64_STANDARD.encode(digest.as_ref());
|
||||
(tarball_checksum, base64_hash)
|
||||
}
|
||||
NpmPackageVersionDistInfoIntegrity::LegacySha1Hex(hex) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue