Skip to content

Commit a250daa

Browse files
committed
pkgupd: fix node.js parser
1 parent 9e9ecd7 commit a250daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/OOCEapps/PkgUpd/NodeJS.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sub getVersions {
2525
($name, $ver) = $self->extractNameMajVer($name);
2626

2727
return [
28-
map { m!/v($ver\.(?:\d+\.?)*)! } map { $_->{version} } $res->json
28+
map { m!v($ver\.(?:\d+\.?)*)! } map { $_->{version} } @{$res->json}
2929
];
3030
}
3131

@@ -35,7 +35,7 @@ __END__
3535
3636
=head1 COPYRIGHT
3737
38-
Copyright 2023 OmniOS Community Edition (OmniOSce) Association.
38+
Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
3939
4040
=head1 LICENSE
4141

0 commit comments

Comments
 (0)