From 7db729a42dca760e1024f296ba4b9e5982f25325 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 6 Jan 2023 11:36:12 -0500 Subject: fix(npm): support old packages and registries with no integrity, but with a sha1sum (#17289) Closes #17281 --- cli/npm/resolution/snapshot.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cli/npm/resolution') diff --git a/cli/npm/resolution/snapshot.rs b/cli/npm/resolution/snapshot.rs index d7da35eba..ad6aee6d9 100644 --- a/cli/npm/resolution/snapshot.rs +++ b/cli/npm/resolution/snapshot.rs @@ -275,11 +275,7 @@ impl NpmResolutionSnapshot { id: package_id.clone(), copy_index: copy_index_resolver.resolve(&package_id), // temporary dummy value - dist: NpmPackageVersionDistInfo { - tarball: "foobar".to_string(), - shasum: "foobar".to_string(), - integrity: Some("foobar".to_string()), - }, + dist: NpmPackageVersionDistInfo::default(), dependencies, }; -- cgit v1.2.3