interceptors
interceptors copied to clipboard
Low-level network interception library.
Bumps [terser](https://github.com/terser/terser) from 5.9.0 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
- Dependencies: ``` "node": "v16.15.1", "supertest": "^6.1.6", "jest": "^28.1.3", "@mswjs/interceptors": "^0.17.3", ``` - Code: ```javascript import { app } from '../base/config' import { ClientRequestInterceptor } from '@mswjs/interceptors/lib/interceptors/ClientRequest' const interceptor =...
  When I using this module in the browser, I can't find the 'EventEmitter' property in the console output. I guess this is because the 'strict-event-emitter' module relies on...
Bumped into this in MSW, setting `ctx.status(0)` results in a `200` status in the mocked response. Guessing this change will more closely match the intent of the code since `status`...
Hey, tests in node >= 17.0.0 are not passing due to the way in which `localhost` gets resolved. From (https://github.com/nodejs/node/issues/40537#issuecomment-948047193): > Node.js now returns IP addresses in the order they...
This is a third generation of the request interception algorithm. To improve on the previous class augmentation principle, we are introducing proxies. Proxies allow us to keep the original request...
[undici](https://undici.nodejs.org/) is a node.js library written by some core node.js contributors. It offers many great features for making fast http request that largely outperform the native `http` & `https` modules...
## SocketIO support - [x] "websocket" transport (browser) - [ ] "polling" transport (browser `XMLHttpRequest`) - [x] Add `send`/`emit` integration tests - [ ] Support sending requests to the original...
See #159.
With the addition of `jest-setup-glob` dependency we can remove the following commands: - `yarn test:internal` - `yarn test:integration` - `yarn test:integration:node` - `yarn test:integration:browser` And use a single `yarn test`...