As I said in another thread, I think the happy medium is lots of small packages (people want that). And a capability security model within programming languages so small dependencies are limited to interacting with their parameters (and any resources their parameters provide them) and can’t speak to the OS directly. That would solve 98% of the supply chain problem.
Leftpad has already been solved by a npm policy change forbidding packages from being unpublished.
Leftpad has already been solved by a npm policy change forbidding packages from being unpublished.