[chocolatey powershellgallery resharper] Fix "not found" error for chocolatey badge #10060
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #10045
The "got" package encodes spaces in
searchParams
as+
(see sindresorhus/got#1113) but the Chocolatey API requires spaces to be encoded as%20
instead.I have tested that
npm run test:services -- --only=chocolatey,nuget
passes with these changes.Example of failing query:
https://community.chocolatey.org/api/v2/Packages()?%24filter=Id+eq+%27windynamicdesktop%27+and+IsLatestVersion+eq+true
Example of working query:
https://community.chocolatey.org/api/v2/Packages()?%24filter=Id%20eq%20%27windynamicdesktop%27%20and%20IsLatestVersion%20eq%20true