interceptors icon indicating copy to clipboard operation
interceptors copied to clipboard

Low-level network interception library.

Results 104 interceptors issues
Sort by recently updated
recently updated
newest added

I have been trying to upgrade to the latest 0.29.1 from 0.25.1 and running into a variety of issues that I am trying to isolate down top the smallest repros...

- Fixes #446 - Related to #575 Added failing test. @kettanaito 1. At first, I thought to adopt [Nock's implementation (inspired by undici)](https://github.com/nock/nock/blob/beta/lib/create_response.js#L24), but IIRC, `interceptors` is cross-platform and AFAIK...

release candidate

If I try to install this package using npx with the `-p` flag I get an error saying `Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@mswjs/interceptors' imported from` For example: npx -p...

Following this: https://github.com/mswjs/interceptors/pull/598#discussion_r1672224165

With #613 and #616, we've improved how the XHR interceptor calculates the `total` length of the request/response bodies. There are, however, cases when that length won't be calculated. For example,...

good first issue

resolves https://github.com/mswjs/msw/issues/2309 **Underlying issue** As i understand the code: if consumer attempts to start reading stream before buffer is sent, the items will be removed from the writeBuffer. If `passthrough()`...

`interceptors` expects the error to be from type `Error` in [`handleRequest`](https://github.com/mswjs/interceptors/blob/472bcbe4b6b7f0652da10eb647a3aaa898ad4f7c/src/utils/handleRequest.ts#L47), which is not required by [Node](https://nodejs.org/api/net.html#socketdestroyerror). ```js const http = require('http') const { ClientRequestInterceptor } = require('@mswjs/interceptors/ClientRequest') const interceptor...

Document the limitation around https://github.com/mswjs/msw/issues/2259.

- Related https://github.com/mswjs/msw/issues/2259 ## Changes - The `MockHttpSocket` class now has a special scenario for _buffered_ requests. A buffered request is one whose stream is pending while the connection is...

- Related to #575 Relevant comments: https://github.com/mswjs/interceptors/pull/515#issuecomment-2197566539 https://github.com/mswjs/interceptors/pull/515#issuecomment-2067760131

help wanted