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.3 to 13.0.4

1

lib/intercepted_request_router.js

@@ -299,3 +299,2 @@ 'use strict'

matchedInterceptor.markConsumed()
matchedInterceptor.req = req

@@ -302,0 +301,0 @@ // wait to emit the finish event until we know for sure an Interceptor is going to playback.

7

lib/playback_interceptor.js

@@ -152,2 +152,9 @@ 'use strict'

// TODO: MAJOR: Don't tack the request onto the interceptor.
// The only reason we do this is so that it's available inside reply functions.
// It would be better to pass the request as an argument to the functions instead.
// Not adding the req as a third arg now because it should first be decided if (path, body, req)
// is the signature we want to go with going forward.
interceptor.req = req
if (interceptor.replyFunction) {

@@ -154,0 +161,0 @@ const parsedRequestBody = parseJSONRequestBody(req, requestBodyString)

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

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

@@ -45,2 +45,3 @@ "repository": {

"eslint-plugin-standard": "^4.0.0",
"form-data": "^3.0.0",
"got": "^11.3.0",

@@ -47,0 +48,0 @@ "mocha": "^8.0.1",

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