diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-28 16:19:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 16:19:55 -0400 |
commit | edaceecec771cf0395639175b5a21d20530f6080 (patch) | |
tree | 8c9708d095a8ed7c9e897869a68f9d2c9b4d7ffd /cli/npm/resolvers/common.rs | |
parent | 2c674dcd20aeb19d694e03d969f5792d1581e87a (diff) |
feat: support npm specifiers in `deno info` for display text output only (#16470)
Diffstat (limited to 'cli/npm/resolvers/common.rs')
-rw-r--r-- | cli/npm/resolvers/common.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/npm/resolvers/common.rs b/cli/npm/resolvers/common.rs index e114f3f8a..07996c4e1 100644 --- a/cli/npm/resolvers/common.rs +++ b/cli/npm/resolvers/common.rs @@ -15,6 +15,7 @@ use crate::lockfile::Lockfile; use crate::npm::cache::should_sync_download; use crate::npm::resolution::NpmResolutionSnapshot; use crate::npm::NpmCache; +use crate::npm::NpmPackageId; use crate::npm::NpmPackageReq; use crate::npm::NpmResolutionPackage; @@ -36,6 +37,8 @@ pub trait InnerNpmPackageResolver: Send + Sync { specifier: &ModuleSpecifier, ) -> Result<PathBuf, AnyError>; + fn package_size(&self, package_id: &NpmPackageId) -> Result<u64, AnyError>; + fn has_packages(&self) -> bool; fn add_package_reqs( |