@contrast/route-coverage
Advanced tools
Comparing version 1.19.0 to 1.20.0
@@ -88,4 +88,5 @@ /* | ||
require('./install/koa')(core); | ||
require('./install/restify')(core); | ||
return routeCoverage; | ||
}; |
@@ -39,3 +39,3 @@ /* | ||
const isRoute = (layer) => !!layer.route; | ||
const isRouter = (layer) => toLowerCase(layer.name) === 'router'; | ||
const isRouter = (layer) => layer.name && toLowerCase(layer.name) === 'router'; | ||
const isValidPath = (path) => isString(path) || Array.isArray(path) || path instanceof RegExp; | ||
@@ -42,0 +42,0 @@ const regExpToPath = (regex) => regex?.source?.split('/?')[0].replace(/\\/g, '').replace('^', ''); //TODO: replaceAll when v14 deprecated |
{ | ||
"name": "@contrast/route-coverage", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"description": "Handles route discovery and observation", | ||
@@ -20,5 +20,5 @@ "license": "SEE LICENSE IN LICENSE", | ||
"dependencies": { | ||
"@contrast/common": "1.20.1", | ||
"@contrast/common": "1.21.0", | ||
"@contrast/fn-inspect": "^4.0.0" | ||
} | ||
} |
23857
11
585
+ Added@contrast/common@1.21.0(transitive)
- Removed@contrast/common@1.20.1(transitive)
Updated@contrast/common@1.21.0