@contrast/route-coverage 1.27.0 → 1.28.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.
- package/lib/index.js +4 -0
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -37,6 +37,8 @@ module.exports = function init(core) {
|
|
|
37
37
|
const routeQueue = new Map();
|
|
38
38
|
const routeCoverage = core.routeCoverage = {
|
|
39
39
|
discover(info) {
|
|
40
|
+
logger.trace({ info }, 'Discovered new route:');
|
|
41
|
+
|
|
40
42
|
routeInfo.set(routeIdentifier(info), info);
|
|
41
43
|
},
|
|
42
44
|
|
|
@@ -86,6 +88,8 @@ module.exports = function init(core) {
|
|
|
86
88
|
|
|
87
89
|
recentlyObserved.add(route.signature);
|
|
88
90
|
|
|
91
|
+
logger.trace({ info }, 'Observed route:');
|
|
92
|
+
|
|
89
93
|
// these events need source correlation
|
|
90
94
|
messages.emit(Event.ROUTE_COVERAGE_OBSERVATION, {
|
|
91
95
|
...route,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/route-coverage",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.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)",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@contrast/common": "1.26.0",
|
|
21
|
-
"@contrast/config": "1.
|
|
22
|
-
"@contrast/dep-hooks": "1.
|
|
21
|
+
"@contrast/config": "1.35.0",
|
|
22
|
+
"@contrast/dep-hooks": "1.8.0",
|
|
23
23
|
"@contrast/fn-inspect": "^4.3.0",
|
|
24
|
-
"@contrast/logger": "1.
|
|
25
|
-
"@contrast/patcher": "1.
|
|
26
|
-
"@contrast/scopes": "1.
|
|
24
|
+
"@contrast/logger": "1.13.0",
|
|
25
|
+
"@contrast/patcher": "1.12.0",
|
|
26
|
+
"@contrast/scopes": "1.9.0",
|
|
27
27
|
"semver": "^7.6.0"
|
|
28
28
|
}
|
|
29
29
|
}
|