Comparing version 13.3.2 to 13.3.3
@@ -113,3 +113,3 @@ 'use strict' | ||
function remove(interceptor) { | ||
if (--interceptor.counter > 0) { | ||
if (interceptor.__nock_scope.shouldPersist() || --interceptor.counter > 0) { | ||
return | ||
@@ -126,8 +126,2 @@ } | ||
interceptors.some(function (thisInterceptor, i) { | ||
if (interceptor.__nock_scope.shouldPersist()) { | ||
return thisInterceptor === interceptor | ||
? interceptors.push(interceptors.splice(i, 1)[0]) | ||
: false | ||
} | ||
return thisInterceptor === interceptor ? interceptors.splice(i, 1) : false | ||
@@ -134,0 +128,0 @@ }) |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "13.3.2", | ||
"version": "13.3.3", | ||
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -1008,3 +1008,3 @@ # Nock | ||
Note that while a persisted scope will always intercept the requests, it is considered "done" after the first interception, and they are pushed to the bottom of the stack after consumption. | ||
Note that while a persisted scope will always intercept the requests, it is considered "done" after the first interception. | ||
@@ -1011,0 +1011,0 @@ If you want to stop persisting an individual persisted mock you can call `persist(false)`: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179943
3509