File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+ import ( '../build/index.js' ) ;
Original file line number Diff line number Diff line change 55 "type" : " module" ,
66 "main" : " build/index.js" ,
77 "bin" : {
8- "pageindex-mcp" : " build/index .js"
8+ "pageindex-mcp" : " bin/cli .js"
99 },
1010 "scripts" : {
1111 "build" : " tsup" ,
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ async function downloadPdf(url: string): Promise<FileInfo> {
205205 console . log (
206206 `Initial request failed for arxiv URL: ${ url } , retrying with .pdf suffix` ,
207207 ) ;
208- const retryUrl = url . endsWith ( '/' ) ? url + ' pdf' : url + ' .pdf' ;
208+ const retryUrl = url . endsWith ( '/' ) ? ` ${ url } pdf` : ` ${ url } .pdf` ;
209209
210210 try {
211211 response = await fetchWithRetry ( retryUrl ) ;
@@ -247,7 +247,7 @@ async function downloadPdf(url: string): Promise<FileInfo> {
247247
248248 // Ensure filename has .pdf extension if not present
249249 if ( ! filename . toLowerCase ( ) . endsWith ( '.pdf' ) ) {
250- filename = filename + ' .pdf' ;
250+ filename = ` ${ filename } .pdf` ;
251251 }
252252
253253 const contentType = response . headers . get ( 'content-type' ) ;
You can’t perform that action at this time.
0 commit comments