diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-09-01 11:50:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 11:50:12 -0400 |
commit | e1d7d7b0e365c3ddfee9e52371dd2c6d75e132e6 (patch) | |
tree | 526dc1bfb9fd1b4e491c8a06cacd954398356d48 /cli/npm/tarball.rs | |
parent | 20c835407c695a0cc92be45604bbe5ea652565ea (diff) |
fix(npm): better node version and version requirement compatibility (#15714)
Diffstat (limited to 'cli/npm/tarball.rs')
-rw-r--r-- | cli/npm/tarball.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/npm/tarball.rs b/cli/npm/tarball.rs index 33e4faa69..3971e0b07 100644 --- a/cli/npm/tarball.rs +++ b/cli/npm/tarball.rs @@ -158,12 +158,13 @@ fn extract_tarball(data: &[u8], output_folder: &Path) -> Result<(), AnyError> { #[cfg(test)] mod test { use super::*; + use crate::npm::semver::NpmVersion; #[test] pub fn test_verify_tarball() { let package_id = NpmPackageId { name: "package".to_string(), - version: semver::Version::parse("1.0.0").unwrap(), + version: NpmVersion::parse("1.0.0").unwrap(), }; let actual_checksum = "z4phnx7vul3xvchq1m2ab9yg5aulvxxcg/spidns6c5h0ne8xyxysp+dgnkhfuwvy7kxvudbeoglodj6+sfapg=="; |