Socket
Socket
Sign inDemoInstall

@contrast/route-coverage

Package Overview
Dependencies
16
Maintainers
9
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.19.0 to 1.20.0

lib/install/restify.js

1

lib/index.js

@@ -88,4 +88,5 @@ /*

require('./install/koa')(core);
require('./install/restify')(core);
return routeCoverage;
};

2

lib/install/express.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc