News for hackers. Stuff that matters.
Re:GitHub shouldn't allow username reuse by AgentME on Friday February 09, 2018 @05:16PM (#16344337)
NPM fixed that situation by no longer allowing packages to be unpublished after 24 hours. NPM does not allow packages to republish new content under a previously-used version number. NPM by default generates a package-lock.json file (separate from package.json) which pins the versions of all dependencies (including transitive ones) and includes the hashes of the dependencies, which would protect users if npm's servers ever became malicious.
Re:GitHub shouldn't allow username reuse by oneweekwonder on Saturday February 10, 2018 @09:15AM (#16347345)
> NPM by default generates a package-lock.json file

Thanks for the tidbit, seen it been added May last year to npm5[0]. Hard to keep up if you don't use the tooling activity and only depend on it for other tooling.

[0]: http://blog.npmjs.org/post/161081169345/v500