Skip to content

fix: correct POSITIVE_CHECKS logic in seo-audit and 429 retry exhaustion in fetchWithRetry#41

Merged
MAlshaik merged 2 commits intowespreadjam:mainfrom
adityasai1234:main
Feb 28, 2026
Merged

fix: correct POSITIVE_CHECKS logic in seo-audit and 429 retry exhaustion in fetchWithRetry#41
MAlshaik merged 2 commits intowespreadjam:mainfrom
adityasai1234:main

Conversation

@adityasai1234
Copy link
Contributor

  • seo-audit: both branches of the POSITIVE_CHECKS if/else were
    assigning checkData.passed identically, making the distinction
    a no-op. Normal checks now correctly invert with !checkData.passed
    so that a DataForSEO "passed=true" (problem absent) maps to isPassed=true.

  • fetchWithRetry: a 429 on the final retry attempt fell through the
    if-block and returned the rate-limit Response to the caller instead
    of throwing. Now throws FetchRetryError("Rate limit exceeded after N
    attempts") consistent with how 5xx exhaustion is handled.

…ion in fetchWithRetry

- seo-audit: both branches of the POSITIVE_CHECKS if/else were
  assigning `checkData.passed` identically, making the distinction
  a no-op. Normal checks now correctly invert with `!checkData.passed`
  so that a DataForSEO "passed=true" (problem absent) maps to isPassed=true.

- fetchWithRetry: a 429 on the final retry attempt fell through the
  if-block and returned the rate-limit Response to the caller instead
  of throwing. Now throws FetchRetryError("Rate limit exceeded after N
  attempts") consistent with how 5xx exhaustion is handled.
- Add utils/resolve-path.ts as canonical path resolver
- Supports dot notation, keyed array (contacts[0]), standalone
  index ([0].name), and empty paths
- map.ts now imports from shared utility
@MAlshaik MAlshaik merged commit fcaf242 into wespreadjam:main Feb 28, 2026
2 checks passed
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