Skip to content

Fix clippy warnings and WhatsApp gateway Node 25 compat#9

Closed
devatsecure wants to merge 1 commit intoRightNow-AI:mainfrom
devatsecure:fix/clippy-and-whatsapp-node25
Closed

Fix clippy warnings and WhatsApp gateway Node 25 compat#9
devatsecure wants to merge 1 commit intoRightNow-AI:mainfrom
devatsecure:fix/clippy-and-whatsapp-node25

Conversation

@devatsecure
Copy link
Copy Markdown

Summary

  • Fix 2 collapsible else-if clippy warnings in CLI doctor command
  • Add "type": "commonjs" to packages/whatsapp-gateway/package.json — Node.js 25 defaults to ESM and the gateway uses require()
  • Replace import.meta.url with __dirname in packages/whatsapp-gateway/index.jsimport.meta is invalid in CommonJS context

Test plan

  • cargo clippy --workspace --all-targets -- -D warnings passes with zero warnings
  • cargo test --workspace — 1,769 tests pass
  • WhatsApp gateway starts successfully on Node.js 25 and returns QR code
  • Dashboard serves correctly at http://127.0.0.1:50051/

🤖 Generated with Claude Code

- Collapse nested else-if blocks in CLI doctor command to satisfy clippy
- Add "type": "commonjs" to whatsapp-gateway package.json (Node 25 defaults to ESM)
- Replace import.meta.url with __dirname in gateway index.js (import.meta is invalid in CJS)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jaberjaber23
Copy link
Copy Markdown
Member

Good catch on the Node 25 ESM default change. We'll patch this ourselves. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants