• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kikobeats / parse-proxy-uri / 31317223135
97%

Build:
DEFAULT BRANCH: master
Ran 09 Aug 2026 01:58PM UTC
Jobs 1
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Aug 2026 01:58PM UTC coverage: 100.0%. Remained the same
31317223135

push

github

web-flow
fix: apply http↔socks protocol mutations (#28)

* fix: apply http↔socks protocol mutations

WHATWG silently ignores protocol assignments between special schemes
(http/https) and non-special ones (socks*), so `proxy.protocol = 'socks5:'`
left the proxy on HTTP CONNECT with no error. Rebuild via href when the
native setter no-ops so the documented mutation contract holds.

* refactor: table-drive protocol mutation writes

Drop the setter-loop protocol branch; always assign via href so
special↔non-special scheme switches share one write path.

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: unify ProxyURL mutations behind one applicator

Setter loop no longer branches on encode/authority/protocol — each
field mutator returns an optional authority token for validation.

Co-authored-by: Cursor <cursoragent@cursor.com>

* refactor: make the mutation table declarative again

Each entry now names what differs (encode, authority, write) instead of
carrying its own `set.call`, so the setter loop owns the single write site
and `protocol` stops bypassing the applicator it was handed.

Restores the allocation-free pathname check and the hostname destructure in
assertValidProxy, hoists the two per-call regexes, and covers the two branches
the previous shape left untested.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PUyFcup3KwDoj7q5CbMovq

* refactor: splice the scheme instead of rebuilding the href

A protocol write reused `toString`'s serializer, so it re-derived the href
from already-canonical getters and left `assertValidProxy` nothing to check.
Splicing onto the live href keeps the write surgical and the shared validator
load-bearing for every setter.

Also drops the inert `authority ?? hostname` fallback (a dotted-quad hostname
tokenizes to itself), and folds the ftp case into the protocol switch table.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claud... (continued)

67 of 67 branches covered (100.0%)

Branch coverage included in aggregate %.

58 of 58 new or added lines in 1 file covered. (100.0%)

186 of 186 relevant lines covered (100.0%)

67.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31317223135.1 09 Aug 2026 01:58PM UTC 1
100.0
GitHub Action Run
Source Files on build 31317223135
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31317223135
  • 5175bdd8 on github
  • Prev Build on master (#31181760862)
  • Next Build on master (#31938663191)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc