Skip to content

Fix CJS module resolution for fraud detection system (issue #596)#690

Open
kingAkinwale wants to merge 1 commit into
Nanle-code:masterfrom
kingAkinwale:fraud-recognition
Open

Fix CJS module resolution for fraud detection system (issue #596)#690
kingAkinwale wants to merge 1 commit into
Nanle-code:masterfrom
kingAkinwale:fraud-recognition

Conversation

@kingAkinwale

Copy link
Copy Markdown
Contributor
  • Add .cjs to vitest resolve extensions for proper module resolution
  • Rename CJS files used with require() to .cjs extension (scoringEngine.js -> scoringEngine.cjs, feature_extraction.js -> feature_extraction.cjs, isolation_forest.js -> isolation_forest.cjs, server.js -> server.cjs, train.js -> train.cjs)
  • Fix all internal require() paths in .cjs files to include .cjs extension
  • Make scoringEngine.cjs handle TensorFlow import failure gracefully
  • Fix fraud detection test data to create actual coordinated fraud patterns (fixed: transactions now within burst window, use fixed amounts for clustering, same timestamps for temporal coordination)

closes #596

…e#596)

- Add .cjs to vitest resolve extensions for proper module resolution
- Rename CJS files used with require() to .cjs extension
  (scoringEngine.js -> scoringEngine.cjs, feature_extraction.js -> feature_extraction.cjs,
   isolation_forest.js -> isolation_forest.cjs, server.js -> server.cjs, train.js -> train.cjs)
- Fix all internal require() paths in .cjs files to include .cjs extension
- Make scoringEngine.cjs handle TensorFlow import failure gracefully
- Fix fraud detection test data to create actual coordinated fraud patterns
  (fixed: transactions now within burst window, use fixed amounts for clustering,
   same timestamps for temporal coordination)

Co-authored-by: opencode <opencode@opencode.ai>
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

@kingAkinwale is attempting to deploy a commit to the nanle-code's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Intelligent Fraud Pattern Recognition

1 participant