🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

nock

Package Overview
Dependencies
Maintainers
4
Versions
468
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nock - npm Package Compare versions

Comparing version
14.0.15
to
14.0.16
+7
-0
lib/intercept.js

@@ -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": {