Socket
Socket
Sign inDemoInstall

nock

Package Overview
Dependencies
Maintainers
4
Versions
424
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.0.1 to 13.0.2

3

lib/intercepted_request_router.js

@@ -298,2 +298,5 @@ 'use strict'

matchedInterceptor.markConsumed()
matchedInterceptor.req = req
// wait to emit the finish event until we know for sure an Interceptor is going to playback.

@@ -300,0 +303,0 @@ // otherwise an unmocked request might emit finish twice.

2

lib/playback_interceptor.js

@@ -127,4 +127,2 @@ 'use strict'

function start() {
interceptor.markConsumed()
interceptor.req = req
req.headers = req.getHeaders()

@@ -131,0 +129,0 @@

@@ -10,3 +10,3 @@ {

],
"version": "13.0.1",
"version": "13.0.2",
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>",

@@ -41,3 +41,3 @@ "repository": {

"eslint-plugin-import": "^2.16.0",
"eslint-plugin-mocha": "^6.2.0",
"eslint-plugin-mocha": "^7.0.1",
"eslint-plugin-node": "^11.0.0",

@@ -44,0 +44,0 @@ "eslint-plugin-promise": "^4.1.1",

@@ -577,3 +577,3 @@ # Nock

When using `scope.reply()` to set a response body manually, you can have the
When using `interceptor.reply()` to set a response body manually, you can have the
`Content-Length` header calculated automatically.

@@ -580,0 +580,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc