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

ProjectOpenSea / opensea-js / 21042669726

15 Jan 2026 06:52PM UTC coverage: 88.203% (+0.1%) from 88.092%
21042669726

push

github

web-flow
feat(api): add request options for timeout and abort signal (#1871)

* feat(api): add request options for timeout and abort signal

Add support for request-level options in post() method:
- timeout: Set request timeout in milliseconds
- signal: Pass AbortController signal for request cancellation

This enables:
- Abort/timeout control via AbortController (useful for CI, batch scripts)
- Custom timeout settings per request

The new RequestOptions interface is exported for SDK consumers.

Closes the use case from #1868 with a clean, typed interface instead
of heuristics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(api): add request options to get() method

Extend RequestOptions support to get() for consistency with post().
Same timeout and abort signal options now available for GET requests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

481 of 682 branches covered (70.53%)

Branch coverage included in aggregate %.

68 of 73 new or added lines in 2 files covered. (93.15%)

4274 of 4709 relevant lines covered (90.76%)

4.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

67.71
/src/api/api.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc