Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
giterlizzi committed Jan 24, 2025
2 parents d6abbe5 + bca9d21 commit db8e489
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/CSAF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use overload '""' => \&to_string, fallback => 1;

use Moo;

our $VERSION = '0.24';
our $VERSION = '0.24_1';
$VERSION =~ tr/_//d; ## no critic

our $CACHE = {};
Expand Down
2 changes: 1 addition & 1 deletion lib/CSAF/ROLIE/Feed.pm
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ sub render {
$self->init;

my $json = Cpanel::JSON::XS->new->utf8->canonical->allow_nonref->allow_unknown->allow_blessed->convert_blessed
->stringify_infnan->escape_slash(0)->allow_dupkeys->pretty;
->stringify_infnan->escape_slash(0)->allow_dupkeys->pretty->space_before(0);

my @sorted_entries = sort { $b->updated->epoch <=> $a->updated->epoch } @{$self->entry->to_array};
$self->entry->items(\@sorted_entries);
Expand Down
2 changes: 1 addition & 1 deletion lib/CSAF/Renderer/JSON.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extends 'CSAF::Renderer::Base';
sub render {

my $json = Cpanel::JSON::XS->new->utf8->canonical->allow_nonref->allow_unknown->allow_blessed->convert_blessed
->stringify_infnan->escape_slash(0)->allow_dupkeys->pretty;
->stringify_infnan->escape_slash(0)->allow_dupkeys->pretty->space_before(0);

my $csaf = shift->csaf->build;
my $json_string = $json->encode($csaf);
Expand Down

0 comments on commit db8e489

Please sign in to comment.