Hence why you should audit your third-party dependencies in cases like these.
And until it does, developers should not use Electron.
There's a number of reasons why I refuse to use Electon-based apps, and this is one of them.
The only answer is that as a developer, you are responsible. Yes, we have to make calculated risks. But the buck stops at you. There is nobody else who can take responsibility for the contents of your app.
If you pull in some bad modules, directly or transitively, and as a result your app steals my data or worse, that’s on you for shipping malicious code to my computer. There is no one else who can be responsible for that. Not Apple. Not the user. You.