@contrast/agent 4.10.1 → 4.10.2

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.
@@ -422,12 +422,14 @@ class ExpressFramework {
422
422
 
423
423
  Whatever the core issue is, it doesn't appear to have any effects
424
424
  elsewhere in any of our Express/Kraken framework support.
425
-
426
- BODY_PARSED event is emitted to support Sails framework
427
425
  */
428
426
  if (req.body) {
429
427
  decorateRequest({ body: req.body });
430
- agentEmitter.emit(EVENTS.BODY_PARSED, req, res, req.body);
428
+
429
+ // BODY_PARSED event is emitted to support Sails framework
430
+ if (req._sails) {
431
+ agentEmitter.emit(EVENTS.BODY_PARSED, req, res, req.body);
432
+ }
431
433
  }
432
434
  }
433
435
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "4.10.1",
3
+ "version": "4.10.2",
4
4
  "description": "Node.js security instrumentation by Contrast Security",
5
5
  "keywords": [
6
6
  "security",