Socket
Socket
Sign inDemoInstall

nock

Package Overview
Dependencies
Maintainers
4
Versions
430
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 13.3.2 to 13.3.3

8

lib/intercept.js

@@ -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 @@ })

2

package.json

@@ -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)`:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc