mirror of
https://github.com/jason5ng32/MyIP.git
synced 2026-11-04 08:55:47 +00:00
runChain's optional originalSite / accept move into an options object, so a chain that needs only one no longer passes an `undefined` placeholder. The per-version validators become isValidIPv4 / isValidIPv6 in common/valid-ip.js, next to isValidIP: the "Valid" prefix keeps them apart from the non-validating isIPv6 discriminator. Tests now run the four single-version entry points against a stubbed fetch, so dropping or swapping a chain's validator fails the suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>