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

Obfuscate Function(...) fallback to thwart static misanalysis #9164

Merged

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Dec 7, 2021

PR apollographql/invariant-packages#233 took care of Function(...) usage within the ts-invariant/process package, so this PR updates ts-invariant to the latest version.

Additionally, there was one similar bit of code using Function(...) within the @apollo/client package, so this PR cleans that up in way similar to the ts-invariant changes.

Unless I'm mistaken about the cause of #9128 (static misanalysis reporting false positives), this PR should fix that issue.

@benjamn benjamn self-assigned this Dec 7, 2021
@benjamn benjamn added this to the v3.5.x patch releases milestone Dec 7, 2021
@benjamn benjamn added the 2021-12 label Dec 7, 2021
@benjamn benjamn changed the title Obfuscate Function("return this") fallback to thwart static misanalysis Obfuscate Function(...) fallback to thwart static misanalysis Dec 7, 2021
@benjamn benjamn merged commit 6d86a52 into main Dec 7, 2021
@benjamn benjamn deleted the obfuscate-Function-fallback-to-thwart-static-misanalysis branch December 7, 2021 18:23
@benjamn benjamn restored the obfuscate-Function-fallback-to-thwart-static-misanalysis branch December 7, 2021 18:23
@benjamn benjamn deleted the obfuscate-Function-fallback-to-thwart-static-misanalysis branch January 31, 2022 18:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apollo Client is not compatible with Next.js _middleware due to eval/new Function calls
2 participants