@contrast/route-coverage 1.41.0 → 1.43.0

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.
@@ -55,6 +55,10 @@ module.exports = function init(core) {
55
55
  function patchHandler(route, handle, routeInfo) {
56
56
  const pre = ({ args }) => {
57
57
  const [req] = args;
58
+
59
+ // todo(NODE-3793): support for @fastify/websocket
60
+ if (req.constructor.name == 'WebSocket') return;
61
+
58
62
  const method = StringPrototypeToLowerCase.call(req.raw?.method);
59
63
  const [url] = StringPrototypeSplit.call(req.url, /\?/);
60
64
  routeCoverage.observe({ ...routeInfo, url, method });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/route-coverage",
3
- "version": "1.41.0",
3
+ "version": "1.43.0",
4
4
  "description": "Handles route discovery and observation",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@contrast/common": "1.32.0",
24
- "@contrast/config": "1.45.0",
25
- "@contrast/dep-hooks": "1.19.0",
24
+ "@contrast/config": "1.47.0",
25
+ "@contrast/dep-hooks": "1.21.0",
26
26
  "@contrast/fn-inspect": "^4.3.0",
27
- "@contrast/logger": "1.23.0",
28
- "@contrast/patcher": "1.22.0",
29
- "@contrast/scopes": "1.20.0",
27
+ "@contrast/logger": "1.25.0",
28
+ "@contrast/patcher": "1.24.0",
29
+ "@contrast/scopes": "1.22.0",
30
30
  "semver": "^7.6.0",
31
31
  "path-to-regexp": "^8.2.0"
32
32
  }