diff --git a/src/components/App.tsx b/src/components/App.tsx index f143f72..0b5202e 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -109,7 +109,10 @@ export default function App() { try { const [pkgName, requestedRange] = getPackageNameAndVersion(pkg); const dev = isDev(); - const limit = parseInt(limitInput(), 10) || 200; + const limit = Math.min( + 3000, + Math.max(1, parseInt(limitInput(), 10) || 200), + ); if (replaceState) { const url = new URL(window.location.href); @@ -203,11 +206,11 @@ export default function App() { return ( <> -