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 origin handler #5

Merged
merged 14 commits into from
Jul 12, 2024

Conversation

Lordfirespeed
Copy link
Contributor

Resolves #4

@Lordfirespeed
Copy link
Contributor Author

I've missed a case here - when origin is false an error will be thrown. I'll fix before you guys merge

the JetBrains git integration uses a non-login non-interactive shell to
execute Git commands, which means `pnpm` cannot be found

the `-l` option means a login shell is used,
so `~/.bashrc` is used as a startup file, which adds `$PNPM_HOME` to `$PATH`
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
@talentlessguy talentlessguy merged commit 11b94a7 into tinyhttp:master Jul 12, 2024
3 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9908624002

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 7083495285: 0.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@talentlessguy
Copy link
Member

Dismiss the report, coverage report was broken

The bug fix is published in 2.0.1, thanks a lot for fixing

https://github.com/tinyhttp/cors/releases/tag/v2.0.1

Coverage is 93%

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.

Passing string[] for origin option causes internal server error
3 participants