Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch body-parser to use json-bigint, like gateway #922

Conversation

MaddyUnderStars
Copy link
Member

Adds a patch file for body-parser, which replaces usage of JSON.parse with json-bigint, as was done with the gateway and it's usage of JSON.parse for incoming messages.
Addresses #696, and would fix mobile client replies, and dsharpplus support as notable examples.

Making this a PR so it's more visible for testers. I'm not very pleased with having to patch body-parser. I also haven't tested this yet with dsharpplus or the mobile client themselves, just through curl mimicking the requests.

@MaddyUnderStars
Copy link
Member Author

Oh whoops that commit isn't meant to be in here

@MaddyUnderStars
Copy link
Member Author

Turns out this patch may be unnecessary at some point: expressjs/body-parser#282

@MaddyUnderStars MaddyUnderStars merged commit b70f8fc into spacebarchat:maddy/refactor Jan 2, 2023
@MaddyUnderStars MaddyUnderStars deleted the maddy/bodyParserPatch branch January 12, 2023 10:46
MaddyUnderStars added a commit that referenced this pull request Mar 1, 2023
Patch body-parser to use json-bigint, like gateway
@sdellysse
Copy link

@MaddyUnderStars yeah, as author of that PR you mentioned, I wouldn't get your hopes up. I come back to that PR every couple years, get it up to date, and try to get it merged but it looks like it's probably just not happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants