Files
MyIP/frontend/utils
jason5ng32andClaude Opus 5.5 79a91171f7 Refactor(probes): take chain options as an object and share version validators
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>
2026-10-15 23:28:12 +08:00
..
2026-10-13 09:48:16 +08:00
2026-08-19 13:56:41 +08:00
2026-06-28 12:02:39 +08:00
2026-10-09 14:23:04 +08:00
2026-08-16 15:29:00 +08:00
2026-09-24 09:37:12 +08:00