Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --port 3010",
"build": "next build",
"start": "next start",
"lint": "eslint",
Expand All @@ -23,7 +23,8 @@
"react-dom": "19.2.3",
"recharts": "^2.15.4",
"shiki": "^3.20.0",
"tailwind-merge": "^2.6.0"
"tailwind-merge": "^2.6.0",
"turndown": "^7.2.4"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Verify whether turndown is used anywhere in the repo.
rg -n -P "\\bfrom\\s+[\"']turndown[\"']|require\\(\\s*[\"']turndown[\"']\\s*\\)|\\bTurndownService\\b"

Repository: AnmolSaini16/mapcn

Length of output: 44


🏁 Script executed:

cat -n package.json | grep -A 5 -B 5 "turndown"

Repository: AnmolSaini16/mapcn

Length of output: 411


🏁 Script executed:

# Check if turndown might be referenced in any comments or configuration
rg -i "turndown" --type json

Repository: AnmolSaini16/mapcn

Length of output: 291


🏁 Script executed:

# Look for any dynamic imports or eval patterns that might use turndown
rg -E "(import\(|require\.resolve|eval)" -A 2 -B 2

Repository: AnmolSaini16/mapcn

Length of output: 458


🏁 Script executed:

# Search all source files for any reference to turndown
find . -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" \) ! -path "./node_modules/*" ! -path "./.next/*" ! -path "./dist/*" | head -20

Repository: AnmolSaini16/mapcn

Length of output: 1132


🏁 Script executed:

# Search for turndown case-insensitively across the entire repo (excluding node_modules and build dirs)
rg "turndown" --type-list | head -20

Repository: AnmolSaini16/mapcn

Length of output: 451


🏁 Script executed:

# Direct search for turndown in all text files excluding node_modules
rg "turndown" --glob "!node_modules" --glob "!.next" --glob "!dist" --glob "!build"

Repository: AnmolSaini16/mapcn

Length of output: 291


Remove the unused turndown dependency from package.json.

The package is declared as a runtime dependency but has no imports or usages anywhere in the codebase, unnecessarily increasing bundle size and supply-chain surface area.

    "turndown": "^7.2.4"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 27, Remove the unused dependency "turndown" from
package.json by deleting the "turndown": "^7.2.4" entry, then update your
lockfile (run npm install or yarn install) to remove it from node_modules and
the lockfile; also scan the repo for any imports/usages of turndown (e.g.,
require('turndown') or import TurndownService) to confirm it's not used, and run
the test/build scripts to ensure no regressions.

},
"devDependencies": {
"@tailwindcss/postcss": "^4",
Expand Down
Loading