File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ requires 'HTTP::Request::Common';
4141requires ' IO::Async::Loop' ;
4242requires ' IO::Async::SSL' ;
4343requires ' IO::Socket::SSL' ;
44- requires ' JSON::MaybeXS' => ' 1.004000' ;
4544requires ' List::Util' , ' 1.45' ;
4645requires ' Locale::Country' ,' 3.62' ;
4746requires ' Log::Dispatch' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use Plack::Builder qw( builder enable mount );
55use Plack::App::File ();
66use Cwd qw( cwd ) ;
77use Plack::MIME ();
8- use JSON::MaybeXS ();
8+ use Cpanel:: JSON::XS ();
99
1010Plack::MIME-> add_type(
1111 ' .eot' => ' application/vnd.ms-fontobject' ,
@@ -34,7 +34,7 @@ sub wrap {
3434 or die " can't find asset map" ;
3535 my $json = do { local $/ ; <$fh > };
3636 close $fh ;
37- my $files = JSON::MaybeXS -> new-> decode($json );
37+ my $files = Cpanel:: JSON::XS -> new-> decode($json );
3838 return [ map " /assets/$_ " , @$files ];
3939 };
4040
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use Moose;
55BEGIN { extends ' MetaCPAN::Web::Controller' }
66
77use MetaCPAN::Web::RenderUtil ();
8- use JSON::MaybeXS ();
8+ use Cpanel:: JSON::XS ();
99
1010sub auto : Private {
1111 my ( $self , $c ) = @_ ;
@@ -36,7 +36,7 @@ sub login_status : Local : Args(0) : Auth(0) {
3636 my $output = $c -> {stash }{json } ||= {};
3737
3838 if ( my $user = $c -> user ) {
39- $output -> {logged_in } = JSON::MaybeXS ::true;
39+ $output -> {logged_in } = Cpanel:: JSON::XS ::true;
4040 if ( my $pause_id = $user -> pause_id ) {
4141
4242 # this is not a complete author record, but enough for now
@@ -62,7 +62,7 @@ sub login_status : Local : Args(0) : Auth(0) {
6262 $c -> forward(' /account/favorite/list_as_json' );
6363 }
6464 else {
65- $c -> stash-> {json }{logged_in } = JSON::MaybeXS ::false;
65+ $c -> stash-> {json }{logged_in } = Cpanel:: JSON::XS ::false;
6666 $c -> cdn_max_age(' 30d' );
6767 }
6868}
You can’t perform that action at this time.
0 commit comments