@mswjs/interceptors
Advanced tools
Comparing version 0.31.0 to 0.31.1
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkETCNJNDTjs = require('../../chunk-ETCNJNDT.js'); | ||
var _chunkIS3CIGXUjs = require('../../chunk-IS3CIGXU.js'); | ||
require('../../chunk-MQJ3JOOK.js'); | ||
@@ -8,3 +8,3 @@ require('../../chunk-E4AC7YAC.js'); | ||
exports.ClientRequestInterceptor = _chunkETCNJNDTjs.ClientRequestInterceptor; | ||
exports.ClientRequestInterceptor = _chunkIS3CIGXUjs.ClientRequestInterceptor; | ||
//# sourceMappingURL=index.js.map |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkETCNJNDTjs = require('../chunk-ETCNJNDT.js'); | ||
var _chunkIS3CIGXUjs = require('../chunk-IS3CIGXU.js'); | ||
@@ -14,3 +14,3 @@ | ||
var node_default = [ | ||
new (0, _chunkETCNJNDTjs.ClientRequestInterceptor)(), | ||
new (0, _chunkIS3CIGXUjs.ClientRequestInterceptor)(), | ||
new (0, _chunkAPT7KA3Bjs.XMLHttpRequestInterceptor)() | ||
@@ -17,0 +17,0 @@ ]; |
@@ -6,3 +6,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkETCNJNDTjs = require('./chunk-ETCNJNDT.js'); | ||
var _chunkIS3CIGXUjs = require('./chunk-IS3CIGXU.js'); | ||
@@ -27,3 +27,3 @@ | ||
interceptors: [ | ||
new (0, _chunkETCNJNDTjs.ClientRequestInterceptor)(), | ||
new (0, _chunkIS3CIGXUjs.ClientRequestInterceptor)(), | ||
new (0, _chunkAPT7KA3Bjs.XMLHttpRequestInterceptor)() | ||
@@ -30,0 +30,0 @@ ] |
{ | ||
"name": "@mswjs/interceptors", | ||
"description": "Low-level HTTP/HTTPS/XHR/fetch request interception library.", | ||
"version": "0.31.0", | ||
"version": "0.31.1", | ||
"main": "./lib/node/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./lib/node/index.mjs", |
@@ -667,3 +667,3 @@ import { ClientRequest, IncomingMessage, STATUS_CODES } from 'node:http' | ||
response.emit = new Proxy(response.emit, { | ||
apply(target, thisArg, args) { | ||
apply: (target, thisArg, args) => { | ||
const [event] = args | ||
@@ -674,3 +674,3 @@ const callEmit = () => Reflect.apply(target, thisArg, args) | ||
promise.finally(() => callEmit()) | ||
return | ||
return this.listenerCount('end') > 0 | ||
} | ||
@@ -677,0 +677,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1174621