summaryrefslogtreecommitdiff
path: root/cli/npm/registry.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-01-23 23:41:02 +0100
committerGitHub <noreply@github.com>2023-01-23 23:41:02 +0100
commitbf237c6241f53122e37341a0dda65ef9e3b51a49 (patch)
treee352b4f60887e4d009cacdef250b7e8c294ff829 /cli/npm/registry.rs
parentcd192313064bc2e9d65e3e734930cfaf15f4191b (diff)
refactor: Move lockfile to a separate crate (#17503)
Moves the lockfile implementation to a separate crate so other projects like Deploy can use it as well.
Diffstat (limited to 'cli/npm/registry.rs')
-rw-r--r--cli/npm/registry.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/cli/npm/registry.rs b/cli/npm/registry.rs
index 0b35079de..97397350d 100644
--- a/cli/npm/registry.rs
+++ b/cli/npm/registry.rs
@@ -184,19 +184,6 @@ pub struct NpmPackageVersionDistInfo {
}
impl NpmPackageVersionDistInfo {
- #[cfg(test)]
- pub fn new(
- tarball: String,
- shasum: String,
- integrity: Option<String>,
- ) -> Self {
- Self {
- tarball,
- shasum,
- integrity,
- }
- }
-
pub fn integrity(&self) -> Cow<String> {
self
.integrity