Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nock/nock
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v14.0.15
Choose a base ref
...
head repository: nock/nock
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v14.0.16
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jun 26, 2026

  1. fix: guard against AbortSignal-aborted requests in response handler (#…

    …2977)
    
    When a request's AbortSignal fires, @mswjs/interceptors immediately
    transitions the request to an error state. If nock's response callback
    runs after that transition (e.g. because a reply delay was configured),
    calling controller.respondWith() throws an InterceptorError
    ("the request has already been handled").
    
    Add a signal.aborted check before respondWith() so that a late-firing
    response callback exits early rather than throwing.
    
    Fixes #2949
    sapirbaruch authored Jun 26, 2026
    Configuration menu
    Copy the full SHA
    2d68e8a View commit details
    Browse the repository at this point in the history
Loading