Skip to content

Commit 9a73cd7

Browse files
committed
add main_module to versions end point
1 parent fcd2c46 commit 9a73cd7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/MetaCPAN/Query/Release.pm

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,17 @@ sub versions {
563563
query => $query,
564564
size => $size,
565565
sort => [ { date => 'desc' } ],
566-
_source => [
567-
qw( name date author version status maturity authorized download_url)
568-
],
566+
_source => [ qw(
567+
name
568+
date
569+
author
570+
version
571+
status
572+
maturity
573+
authorized
574+
download_url
575+
main_module
576+
) ],
569577
};
570578

571579
my $ret = $self->es->search( es_doc_path('release'), body => $body, );

0 commit comments

Comments
 (0)