diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-06 11:36:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 11:36:12 -0500 |
commit | 7db729a42dca760e1024f296ba4b9e5982f25325 (patch) | |
tree | e08ab4a6fc322bb88f936c7a6b9f38d374c65151 /cli/npm/resolution/snapshot.rs | |
parent | f26700862a2b35fb18a7cfec8dea8f81f665a75c (diff) |
fix(npm): support old packages and registries with no integrity, but with a sha1sum (#17289)
Closes #17281
Diffstat (limited to 'cli/npm/resolution/snapshot.rs')
-rw-r--r-- | cli/npm/resolution/snapshot.rs | 6 |
1 files changed, 1 insertions, 5 deletions
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, }; |