Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/route-coverage

Package Overview
Dependencies
Maintainers
0
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/route-coverage - npm Package Compare versions

Comparing version 1.29.0 to 1.30.0

lib/normalized-url-mapper.js

12

lib/index.js

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

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc