replace AnalysePackage with QueryPackageAnalysis API & use community API

This commit is contained in:
Sahilb315
2025-05-09 03:05:50 +05:30
parent 6a28fb16a1
commit 1dd07f13bb
5 changed files with 15 additions and 48 deletions
-4
View File
@@ -24,10 +24,6 @@ func NewNpmCommand() *cobra.Command {
}
if len(args) >= 2 && utils.IsInstallCommand(string(registry.RegistryNPM), args[0]) {
if err := utils.ValidateEnvVars(); err != nil {
return err
}
pmw := wrapper.NewPackageManagerWrapper(registry.RegistryNPM)
pmw.Action = args[0]
pmw.PackageName = args[1]
-4
View File
@@ -24,10 +24,6 @@ func NewPnpmCommand() *cobra.Command {
}
if len(args) >= 2 && utils.IsInstallCommand(string(registry.RegistryPNPM), args[0]) {
if err := utils.ValidateEnvVars(); err != nil {
return err
}
pmw := wrapper.NewPackageManagerWrapper(registry.RegistryPNPM)
pmw.Action = args[0]
pmw.PackageName = args[1]