nock
Advanced tools
Comparing version 13.0.3 to 13.0.4
@@ -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. |
@@ -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", |
173734
3395
27