Remove dry-run scanner for npm, relying on the proxy to block maliscious package downloads instead

This commit is contained in:
Sander Declerck 2025-10-10 16:18:43 +02:00
parent dc4352bffb
commit 8aebb1b96b
No known key found for this signature in database
12 changed files with 29 additions and 496 deletions

View file

@ -14,9 +14,9 @@ const state = {
packageManagerName: null,
};
export function initializePackageManager(packageManagerName, version) {
export function initializePackageManager(packageManagerName) {
if (packageManagerName === "npm") {
state.packageManagerName = createNpmPackageManager(version);
state.packageManagerName = createNpmPackageManager();
} else if (packageManagerName === "npx") {
state.packageManagerName = createNpxPackageManager();
} else if (packageManagerName === "yarn") {