File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ export function createAltTextForVersionsBarChart({
557557 : undefined
558558
559559 const per_version_analysis = versions
560- ? .toReversed ( )
560+ . toReversed ( )
561561 . filter ( v => v . index !== versionWithMaxDownloads ?. index )
562562 . map ( v =>
563563 config . $t ( `package.versions.copy_alt.per_version_analysis` , {
@@ -574,10 +574,10 @@ export function createAltTextForVersionsBarChart({
574574
575575 const altText = `${ config . $t ( 'package.versions.copy_alt.general_description' , {
576576 package_name : dataset ?. bars [ 0 ] ?. name ?? '-' ,
577- versions_count : versions ?. length ?? '0' ,
577+ versions_count : versions ?. length ,
578578 semver_grouping_mode : semver_grouping_mode . toLocaleLowerCase ( ) ,
579- first_version : versions ?. [ 0 ] ?. name ?? '-' ,
580- last_version : versions ? .at ( - 1 ) ?. name ?? '-' ,
579+ first_version : versions [ 0 ] ?. name ?? '-' ,
580+ last_version : versions . at ( - 1 ) ?. name ?? '-' ,
581581 date_range_label : config . dateRangeLabel ?? '-' ,
582582 max_downloaded_version : versionWithMaxDownloads ?. name ?? '-' ,
583583 max_version_downloads : versionWithMaxDownloads ?. downloads ?? '-' ,
You can’t perform that action at this time.
0 commit comments