detectAllFields function exported ✓ 100.0%

Last updated: 2026-03-04T23:21:38.397Z

Metrics

LOC: 7 Complexity: 1 Params: 0 Coverage: 100.0% (1/1 lines, 0x executed)

Signature

detectAllFields(): : DetectionResult

Summary

Synchronous detection — used by dom-watcher and any context that cannot await. Delegates to the PageDetectors in DEFAULT_COLLECTION_PIPELINE.

Source Code

export function detectAllFields(): DetectionResult {
  const nativeFields = nativeInputDetector.detect();
  const customFields = classifyCustomFieldsSync(detectCustomComponents());
  const fields = deduplicateFields(nativeFields, customFields);
  log.debug("fields detectados :", fields);
  return { fields };
}

Dependencies (Outgoing)

graph LR detectAllFields["detectAllFields"] classifyCustomFieldsSync["classifyCustomFieldsSync"] detectCustomComponents["detectCustomComponents"] deduplicateFields["deduplicateFields"] detectAllFields -->|calls| classifyCustomFieldsSync detectAllFields -->|calls| detectCustomComponents detectAllFields -->|calls| deduplicateFields style detectAllFields fill:#dbeafe,stroke:#2563eb,stroke-width:2px click detectAllFields "394718c982f136bb.html" click classifyCustomFieldsSync "ffb8372ab6791e8f.html" click detectCustomComponents "e93e9888463f9367.html" click deduplicateFields "10d773974adfc3cb.html"

Impact (Incoming)

graph LR detectAllFields["detectAllFields"] DomWatcherCallback["DomWatcherCallback"] getCurrentFieldSignature["getCurrentFieldSignature"] detectFormFields["detectFormFields"] makeField["makeField"] DomWatcherCallback -->|uses| detectAllFields getCurrentFieldSignature -->|calls| detectAllFields detectFormFields -->|calls| detectAllFields makeField -->|uses| detectAllFields style detectAllFields fill:#dbeafe,stroke:#2563eb,stroke-width:2px click detectAllFields "394718c982f136bb.html" click DomWatcherCallback "3bef99a9ca0785db.html" click getCurrentFieldSignature "e72508d8f19c287a.html" click detectFormFields "f533b30bd49ac06c.html" click makeField "a5977875ae7cda10.html"