replace AnalysePackage with QueryPackageAnalysis API & use community API (#15)

This commit is contained in:
Sahil Bansal
2025-05-11 22:41:34 +05:30
committed by GitHub
parent 6a28fb16a1
commit 86f8bd42b7
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]