prodlint 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/action.yml +1 -1
- package/dist/cli.js +584 -78
- package/dist/index.d.ts +4 -0
- package/dist/index.js +584 -78
- package/dist/mcp.js +583 -77
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npx prodlint
|
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
prodlint v0.10.
|
|
16
|
+
prodlint v0.10.5
|
|
17
17
|
Scanned 148 files · 2 critical · 5 warnings · 1 info
|
|
18
18
|
|
|
19
19
|
src/app/api/checkout/route.ts
|
|
@@ -145,10 +145,10 @@ npm i -g prodlint # Global install
|
|
|
145
145
|
|
|
146
146
|
prodlint avoids common false positives:
|
|
147
147
|
|
|
148
|
-
- **AST parsing** — Babel-based analysis for
|
|
148
|
+
- **AST parsing** — Babel-based analysis for 14 rules (imports, catch blocks, redirects, redirects in try/catch, SSRF, path traversal, JWT, HTML injection, hydration, transactions, env leaks, loops, SQL, route handlers) with regex fallback
|
|
149
149
|
- **Monorepo support** — npm/yarn/pnpm workspace dependencies resolved automatically
|
|
150
150
|
- **Framework awareness** — Prisma, Drizzle, Supabase, Knex, and Sequelize whitelists prevent false SQL injection flags
|
|
151
|
-
- **Middleware detection** — Clerk, NextAuth, Supabase middleware detected — auth findings downgraded
|
|
151
|
+
- **Middleware detection** — Clerk, NextAuth, Supabase middleware (`middleware.ts`, or `proxy.ts` on Next.js 16) detected — auth findings downgraded
|
|
152
152
|
- **Block comment awareness** — patterns inside `/* */` are ignored
|
|
153
153
|
- **Path alias support** — `@/`, `~/`, and tsconfig paths aren't flagged as hallucinated imports
|
|
154
154
|
- **Route exemptions** — auth, webhook, health, and cron routes are exempt from auth/rate-limit checks
|
package/action.yml
CHANGED
|
@@ -64,7 +64,7 @@ runs:
|
|
|
64
64
|
# pinning the action — @v1, a version tag or a commit SHA — also pins the scanner.
|
|
65
65
|
# It exits 1 when it finds criticals and 2 when the scan fails; "Check results" decides.
|
|
66
66
|
EXIT_CODE=0
|
|
67
|
-
npx -y prodlint@0.10.
|
|
67
|
+
npx -y prodlint@0.10.5 "${CMD_ARGS[@]}" > "$RUNNER_TEMP/prodlint-result.json" || EXIT_CODE=$?
|
|
68
68
|
echo "exit-code=$EXIT_CODE" >> "$GITHUB_OUTPUT"
|
|
69
69
|
node "$GITHUB_ACTION_PATH/scripts/action-check.cjs" outputs "$RUNNER_TEMP/prodlint-result.json" >> "$GITHUB_OUTPUT"
|
|
70
70
|
|