Does anyone know what the malicious code was and what it did?
The malicious code had nothing to do with the stylus package. One of the maintainers of stylus published malicious code in another package, and GitHub / npmjs response was to nuke ALL packages that he was a maintainer of, including stylus.
Add this on your package.json on the end of file bevor last }: