0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-13 16:11:49 +00:00
renovatebot_renovate/lib/modules/datasource/cpan/__fixtures__/empty.json
IKEDA Sho 8bff91a48b
feat(datasource): add cpan datasource (#16545)
* feat(datasource): add cpan datasource

* Update perl versioning's readme

* Extract copystr function to lib/util/string.ts

* Remove unnecessary optional chaining

* Use registryUrl and logger.trace

* Use `perl` versioning's `isStable`

* Remove possibly unnecessary try/catch

* Use MetaCPAN API

* Use reduce

* Use maturity field for `isStable` handling

https://metacpan.org/pod/CPAN::DistnameInfo#maturity

* Revert "Extract copystr function to lib/util/string.ts"

This reverts commit 51ebf55c90.

# Conflicts:
#	lib/modules/datasource/cpan/index.ts

* Remove downloadUrl

* Extract types

* Use toMatchObject

* Improve tests

* Rename to MetaCpanSearchResult

* Rename to searchUrl

* Rename to MetaCpanFileSearchResult and add tsdoc

* Use for...of over reduce

* More safely handle the response JSON

* Use joinUrlParts

* Don't embed distribution info

* Split tsdoc comments
2022-07-26 06:39:51 +00:00

14 lines
210 B
JSON

{
"took" : 3,
"_shards" : {
"total" : 3,
"successful" : 3,
"failed" : 0
},
"hits" : {
"max_score" : null,
"hits" : [],
"total" : 0
},
"timed_out" : false
}