Replace `rc` with `ini` (#15464)
We use the `rc` package to read the `.metamaskrc` configuration file, which is in "ini" format. This package has been replaced by the `ini` package. The `rc` package was not actively maintained, and it has had recent security vulnerabilities. But most importantly, the config object returned by `rc` includes a bunch of extra information that made build script validation [1] difficult to implement. Specifically, it made it challenging to ensure no extra environment variables were present. The `ini` package on the other hand is simple, well maintained, and is simpler to use. This package doesn't add any extra properties to the object it returns, making validation easy. [1]: https://github.com/MetaMask/metamask-extension/issues/15003feature/default_network_editable
parent
7b42c54728
commit
44f8e9e10e
Loading…
Reference in new issue