UNPKG

@mswjs/interceptors

Version:

Low-level HTTP/HTTPS/XHR/fetch request interception library.

15 lines (13 loc) 370 B
export class BrotliDecompressionStream extends TransformStream { constructor() { console.warn( '[Interceptors]: Brotli decompression of response streams is not supported in the browser' ) super({ transform(chunk, controller) { // Keep the stream as passthrough, it does nothing. controller.enqueue(chunk) }, }) } }