@contrast/route-coverage
Advanced tools
Comparing version 1.29.0 to 1.30.0
@@ -20,2 +20,3 @@ /* | ||
const { routeIdentifier } = require('./utils/route-info'); | ||
const NormalizedUrlMapper = require('./normalized-url-mapper'); | ||
@@ -37,9 +38,15 @@ /** | ||
const recentlyObserved = new Set(); | ||
const routeQueue = new Map(); | ||
const routeQueue = new Map(); | ||
const routeCoverage = core.routeCoverage = { | ||
_normalizedUrlMapper: new NormalizedUrlMapper(), | ||
uriPathToNormalizedUrl(uriPath) { | ||
return this._normalizedUrlMapper.map(uriPath); | ||
}, | ||
discover(info) { | ||
logger.trace({ info }, 'Discovered new route:'); | ||
routeInfo.set(routeIdentifier(info), info); | ||
this._normalizedUrlMapper.handleDiscover(info); | ||
}, | ||
@@ -50,3 +57,2 @@ | ||
messages.emit(Event.ROUTE_COVERAGE_DISCOVERY_FINISHED, routes); | ||
this.discover = this.queue; | ||
@@ -53,0 +59,0 @@ this.discoveryFinished = this.queuingFinished; |
{ | ||
"name": "@contrast/route-coverage", | ||
"version": "1.29.0", | ||
"version": "1.30.0", | ||
"description": "Handles route discovery and observation", | ||
@@ -21,10 +21,10 @@ "license": "SEE LICENSE IN LICENSE", | ||
"@contrast/common": "1.26.0", | ||
"@contrast/config": "1.35.0", | ||
"@contrast/dep-hooks": "1.8.0", | ||
"@contrast/config": "1.36.0", | ||
"@contrast/dep-hooks": "1.9.0", | ||
"@contrast/fn-inspect": "^4.3.0", | ||
"@contrast/logger": "1.13.0", | ||
"@contrast/patcher": "1.12.0", | ||
"@contrast/scopes": "1.9.0", | ||
"@contrast/logger": "1.14.0", | ||
"@contrast/patcher": "1.13.0", | ||
"@contrast/scopes": "1.10.0", | ||
"semver": "^7.6.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75954
20
1943
+ Added@contrast/config@1.36.0(transitive)
+ Added@contrast/dep-hooks@1.9.0(transitive)
+ Added@contrast/logger@1.14.0(transitive)
+ Added@contrast/patcher@1.13.0(transitive)
+ Added@contrast/scopes@1.10.0(transitive)
- Removed@contrast/config@1.35.0(transitive)
- Removed@contrast/dep-hooks@1.8.0(transitive)
- Removed@contrast/logger@1.13.0(transitive)
- Removed@contrast/patcher@1.12.0(transitive)
- Removed@contrast/scopes@1.9.0(transitive)
Updated@contrast/config@1.36.0
Updated@contrast/dep-hooks@1.9.0
Updated@contrast/logger@1.14.0
Updated@contrast/patcher@1.13.0
Updated@contrast/scopes@1.10.0