@belmonddev/catch-request-express-middleware 3.3.3 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -165,6 +165,7 @@ const catchExpressIncomingRequest = (req, res, incomingRequestCb) => {
165
165
  // we override write method ASAP cause otherwise if the request finishes too fast the response callback is not called
166
166
  let writeCount = 0;
167
167
  let firstData = '';
168
+ res.bodyWritten = '';
168
169
  override(req.socket, 'write', (result, data) => {
169
170
  writeCount++;
170
171
  if (writeCount === 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belmonddev/catch-request-express-middleware",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "main": "index.js",
5
5
  "author": "David Escalera",
6
6
  "license": "ISC",