+7
-0
@@ -401,2 +401,9 @@ 'use strict' | ||
| nockRequest.on('response', nockResponse => { | ||
| // Guard against the case where the AbortSignal fired before nock | ||
| // finished building the response. In that scenario the interceptor | ||
| // has already transitioned the request to an error state and calling | ||
| // controller.respondWith() would throw an InterceptorError. | ||
| if (mswRequest.signal.aborted) { | ||
| return | ||
| } | ||
| const response = createResponse(nockResponse, mswRequest.signal) | ||
@@ -403,0 +410,0 @@ controller.respondWith(response) |
+1
-1
@@ -10,3 +10,3 @@ { | ||
| ], | ||
| "version": "14.0.15", | ||
| "version": "14.0.16", | ||
| "author": "Pedro Teixeira <pedro.teixeira@gmail.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
185263
0.21%3599
0.19%