News for hackers. Stuff that matters.
Re:A one-line package broke `npm create-react-app` by foepys on Sunday April 26, 2020 @03:42PM (#22989601)
The problem was to get the promise out of the iframe when you shouldn't do this directly in the first place.

This literally is an XY problem: "I need to do A but it's giving me bad results, what do I need to add?" - "Don't use A, it's bad practice. Use B instead and keep using built-in tools instead of hacking something together" In this case use instanceof instead of is-promise because it's a hack around the actual problem of getting objects out of a different context that was explicitly designed to behave this way.

I'm afraid that you don't know what an XY problem is.

JavaScript developers always seem to think they are the smart ones after their 6 weeks of some random bootcamp and then you end up with some crap like NPM where a single line in a package out of hundreds maintained by amateurs can break everybody's development environment.

[dead]
Re:A one-line package broke `npm create-react-app` by dang on Tuesday April 28, 2020 @01:26AM (#23003696)
Yikes, please don't break the site guidelines like this.

https://news.ycombinator.com/newsguidelines.html

Re:A one-line package broke `npm create-react-app` by foepys on Monday April 27, 2020 @01:01AM (#22993018)
I didn't even mean you but the general JS community but if you want to think I did, okay, feel free to do so.