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

fix(secure-headers): optimize getPermissionsPolicyDirectives function #3398

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

kbkn3
Copy link
Contributor

@kbkn3 kbkn3 commented Sep 9, 2024

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

I am very sorry.
I found a bug (wrong specification) and fixed it.

  • When specified with {delective}: true, true means “allowed at all origins” and should be represented as * in the header. However, an empty parenthesis () is printed, implying a restriction.

Please let me know if there is a problem, because I don't know if I should direct the PR to the next branch.

@kbkn3 kbkn3 force-pushed the fix/secureHeader-permissionsPolicy branch from c3343c7 to 6d5ab32 Compare September 9, 2024 05:25
@kbkn3 kbkn3 changed the base branch from next to main September 9, 2024 05:25
@kbkn3 kbkn3 force-pushed the fix/secureHeader-permissionsPolicy branch from 6d5ab32 to 8add1b7 Compare September 9, 2024 05:32
@kbkn3 kbkn3 changed the base branch from main to next September 9, 2024 05:33
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.77%. Comparing base (c2b0de4) to head (0787d00).
Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff            @@
##             next    #3398    +/-   ##
========================================
  Coverage   95.77%   95.77%            
========================================
  Files         154      154            
  Lines        9271     9277     +6     
  Branches     2725     2850   +125     
========================================
+ Hits         8879     8885     +6     
  Misses        392      392            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kbkn3 kbkn3 force-pushed the fix/secureHeader-permissionsPolicy branch from 8add1b7 to 0787d00 Compare September 9, 2024 06:11
@yusukebe yusukebe changed the title Fix/secure header permissions policy fix(secure-headers): secure header permissions policy Sep 9, 2024
Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

yusukebe commented Sep 9, 2024

@kbkn3

Thanks! No problem. I'll merge it into the next.

@yusukebe yusukebe changed the title fix(secure-headers): secure header permissions policy fix(secure-headers): optimize getPermissionsPolicyDirectives function Sep 9, 2024
@yusukebe yusukebe merged commit 3c4d4c2 into honojs:next Sep 9, 2024
14 checks passed
@yusukebe yusukebe mentioned this pull request Sep 11, 2024
11 tasks
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