* Revert "send custom user agent when using got (#6256)"
This reverts commit fd7eddc7bb.
* Revert "Migrate request to got (part 1 of many) (#6160)"
This reverts commit 2359eb278b.
* install got as a prod dependency, allow npm 7
* install new packages
* migrate request to got
* update dynamic json test
This is a behavioural difference between request and got
request will send the request, then we'll get a
`400 Bad Request` back and re-throw at as invalid
got will pick up that the URL is invalid and throw
`RequestError: URI malformed` before attempting to send it
which we'll re-throw as inaccessible
* fix OPM service
* fix wordpress querystring
Got doesn't natively support assmebling a querystring
from nested objects because it uses node's URLSearchParams
internally. Use qs and pass qs a string.
Wordpress is the only service that needs this,
so we could build the string manually in this case
if we don't want to take qs as a prod dependency.
It is mostly hard-coded values anyway.
* fix wercker
got overwrites any ?foo=bar in the URL string if
searchParams is also passed whereas request appends
see https://github.com/sindresorhus/got#url
* fix keybase
* add tests for got wrapper
* bootstrap global agent in server start
* Added a possibility for no follow redirects
* Changed from noFollowRedirects to ignoreRedirects
* Update services/security-headers/security-headers.service.js
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
* correct test color
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Allow links only for social badges, affects [GitHubMilestone Dependabot]
* Remove getLink function
* Remove unused import
* Mention social links in guidelines as well
* Add docs.rs badge
* Do suggested changes
* Fix incorrect tests
* Make some small changes
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
Shields has long had an in-memory cache with some complex logic for determining when the cached values are used and when they are flushed. At the time this was implemented, squeezing cache performance was helpful since there was no downstream cache. For years now we've used Cloudflare as a CDN, so trying to cache onboard is less useful than before. Furthermore, since the cache is very small and only used in fairly restrictive ways, it probably has very little impact on performance.
* [PyPI] Fixes Python versions order by using proper Semver comparison
* [PyPI] Adds a proper specification file for Python versions service
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add GH commit check badge
* Fix class name, tests
* Run prettier
* Refactor to generic checks
* Run prettier
* Make keywords separate from title
* Make commit failing tests actually fail
* Resolve suggested edits
* Sanitize imports
* Follow import order requirements
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add Downloads, Category, License, Sponge Versions, Stars, and Version badges for Ore, an API platform for Sponge Minecraft plugins
* Update services/ore/ore-downloads.service.js
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
* Replace mocked e2e tests with unit tests, fix schema and add test case for Ore License
* Simplify single case forCases
Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add support for Feedz NuGet feeds
* Fix tests & error messages that are used
* Cleanup service and change route according to the conventions
* Change route nomenclature
* Extract `searchServiceUrl`, `stripBuildMetadata` and `selectVersion` to NuGet helpers
* Fix Feedz examples
* Fixup the pattern in Feedz examples
Missed save...
* Use MongoDB.Driver.Core in Feedz examples
* Use standard route pattern instead of `RouteBuilder`
* Extract `transform` function in feedz service
* Add simple test for the `apiUrl` function
* Distinguish repository/package errors
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* [Docker] Support architecture query param in docker version badge
* [Docker] Add new unit test with architecture query param
* Run prettier
* [Docker] Add arch param in customizer example
* [Docker] version badge: Update test cases for arch param
* [Docker] Add arch param valid values
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* feat: added schema and API options for new badge
* fix: fixed platform test's for new schema and api options
* feat: added new badge for theme and plugin last updated
* test: added testing for new badge
* feat: added regex pattern for last update string
* fix: fixed mock test's that didn't match regex pattern
* refactor: changed to moment formatting
Changed to use the moment lib to validate and format last_update date strings from upstream API
* fix: fixed failing platform service tests
Co-authored-by: chris48s <chris48s@users.noreply.github.com>