@contrast/route-coverage 1.55.0 → 1.55.1

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.
@@ -294,7 +294,7 @@ class ExpressInstrumentation {
294
294
  const next = data.args[2];
295
295
  const meta = data.obj[kMetaKey] || data.obj.route?.[kMetaKey];
296
296
 
297
- if (meta.template) {
297
+ if (meta?.template) {
298
298
  const store = handleScope.getStore();
299
299
  // this runs often and there's no need to use patcher here. monkey patch directly to optimize
300
300
  data.args[2] = function (...args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/route-coverage",
3
- "version": "1.55.0",
3
+ "version": "1.55.1",
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)",
@@ -20,15 +20,15 @@
20
20
  "test": "bash ../scripts/test.sh"
21
21
  },
22
22
  "dependencies": {
23
- "@contrast/common": "1.41.0",
24
- "@contrast/config": "1.57.0",
25
- "@contrast/core": "1.62.0",
26
- "@contrast/dep-hooks": "1.31.0",
23
+ "@contrast/common": "1.41.1",
24
+ "@contrast/config": "1.57.1",
25
+ "@contrast/core": "1.62.1",
26
+ "@contrast/dep-hooks": "1.31.1",
27
27
  "@contrast/fn-inspect": "^5.0.2",
28
- "@contrast/logger": "1.35.0",
29
- "@contrast/patcher": "1.34.0",
30
- "@contrast/rewriter": "1.39.0",
31
- "@contrast/scopes": "1.32.0",
28
+ "@contrast/logger": "1.35.1",
29
+ "@contrast/patcher": "1.34.1",
30
+ "@contrast/rewriter": "1.39.1",
31
+ "@contrast/scopes": "1.32.1",
32
32
  "semver": "^7.6.0"
33
33
  }
34
34
  }