* added support for TAS application
* Added prod url. Fixed test-case
* fixed label
* updated tests
* streamlining of test badge
* mock test cases
* updated tests to make it live
* updated schema validation
* updated example
Co-authored-by: Saurabh Prakash <saurabhp@lambdatest.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Update Packagist service to use v2 api
Packagist deprecated the original `packagist.org/p/username/package` endpoint in favor of v2 `packagist.org/p2/username/package` endpoint. Because of this, new packages aren't being found using v1.
This PR updates the Packagist service to use the new endpoint.
* Adjust validation schema
Some packages don't return the same data structure as others with the new api endpoints. This changes the validation schema to account for the potential differences.
* Fix typo
* Throw NotFound when license not found
* Expand response and find the correct release
* Address issues raised by reviewer
Address issues raised by @chris48s in #6508, which this PR is base on.
Includes:
* Remove getDefaultBranch() from base class for it is no longer used.
* Change try-catch statement syntax to align code style.
* Rename findRelease() to findLatestRelease() for clarity.
* remove unusued param
* throw if no version found
* require version key
* use a single consistent method for identifying the latest (tagged) release
* don't throw in render()
* rename method (this is not really 'transform' in our usual parlance)
* Improve BasePackagistService testing
* Change BasePackagistService.decompressResponse to static
method BasePackagistService.expandPackageVersions.
* Fix expandPackageVersions implementation.
* Add unit test for the function.
* Extend BasePackagistService.findLatestRelease
* extend BasePackagistService.findLatestRelease to also handle
PackagistVersion.
* remove PackagistVersion.transform.
* Improve BasePackagistService.findLatestRelease
* Update findLatestRelease to throw NotFound itself.
* Update PackagistLicense and PackagistVersion and remove the
NotFound throwing logics.
* Revert unneeded change
* Corrected packagist php version spec
* The test was on a false assumption that '__unset' might appear
inside an array leaf while the composer's MetadataMinifier::minify
never does thing recursively. The '__unset' should be value of the
top level key.
Co-authored-by: Geoff Selby <geoff@geoffcodesthings.com>
Co-authored-by: Koala Yeung <koalay@gmail.com>
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Add [Conan] version service
* Rework to use conan-center-index GitHub repo
* Conditional mock based on presence of github token
* Refactor yaml parsing into a helper function, move tests to .spec.js
* remove custom version parsing
* improve test data
* updates from review
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
When documentation for a crate is rebuilt the `builds.json` can return
multiple results, ordered latest first, so we must take the first
element of the array rather than the last.
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* Support Feedz response with multiple pages without items
* Parallelize fetches from Feedz when getting multiple pages
* Simplify schema management
* Retrun early if we don't need to fetch any more pages
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
* update terminology
- "regular update" to "cached resource"
- "interval" to "ttl"
- move file and update imports
* set a default TTL, don't explicitly pass params if we want the default
* add tests
* update docs
* expose fetchLimitBytes/userAgent in got-config module
* export a function not a factory
* send better user-agent values
- add userAgentBase setting
- send short SHA in user agent on heroku
- set a version (tag or short SHA) in Dockefile and use
it to report server version in UA for docker users
* add a comment explaining fileSize
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>