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

refactor: cover fastify deprecated syntax #105

Merged
merged 1 commit into from Jun 16, 2022

Conversation

favna
Copy link
Member

@favna favna commented Jun 14, 2022

types go brrrrr

@favna favna requested a review from kyranet as a code owner June 14, 2022 06:52
@favna favna self-assigned this Jun 14, 2022
@codecov
Copy link

codecov bot commented Jun 14, 2022

Codecov Report

Merging #105 (923d9a1) into main (c6b10ec) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #105   +/-   ##
=======================================
  Coverage   52.66%   52.66%           
=======================================
  Files          24       24           
  Lines         619      619           
  Branches      135      135           
=======================================
  Hits          326      326           
  Misses        256      256           
  Partials       37       37           
Impacted Files Coverage Δ
packages/http-framework/src/index.ts 100.00% <ø> (ø)
packages/http-framework/src/lib/Client.ts 23.72% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6b10ec...923d9a1. Read the comment docs.

this.server.post(options.postPath ?? process.env.HTTP_POST_PATH ?? '/', this.handleHttpMessage.bind(this));
public async listen({ serverOptions, postPath, port, address, ...listenOptions }: ListenOptions) {
this.server = Fastify(serverOptions);
this.server.post(postPath ?? process.env.HTTP_POST_PATH ?? '/', this.handleHttpMessage.bind(this));

Check failure

Code scanning / CodeQL

Missing rate limiting

This route handler performs [authorization](1), but is not rate-limited.
@kyranet
Copy link
Member

kyranet commented Jun 14, 2022

Might be worth to wait for fastify/fastify#4013 to merge and release first, so we can remove the hacky types.

Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll roll with this for now, and revert once the linked PR is landed and released.

@favna favna merged commit 3167d6a into main Jun 16, 2022
@favna favna deleted the refacor/cover-fastify-deprecated-code branch June 16, 2022 11:25
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.

None yet

2 participants