New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

swagger-router

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-router - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

8

lib/node.js

@@ -94,9 +94,11 @@ "use strict";

* parameters encountered during the lookup process.
* @param {bool} exact, whether to do an exact segment lookup
* (where * and ** only match themselves)
* @return {null|Node}
*/
getChild(segment, params) {
getChild(segment, params, exact) {
if (segment.constructor === String) {
// Fast path
let res = this._children[_keyPrefix + segment];
if (!res) {
if (!res && !exact) {
// Fall back to the wildcard match.

@@ -132,3 +134,3 @@ res = this._children['*'];

// Unwrap the pattern
return this.getChild(segment.pattern, params);
return this.getChild(segment.pattern, params, exact);
} else if (this._children['*']

@@ -135,0 +137,0 @@ && this._children['*']._paramName === segment.name) {

{
"name": "swagger-router",
"version": "0.6.0",
"version": "0.7.0",
"description": "An efficient swagger 2 based router with support for multiple APIs. For use in RESTBase.",

@@ -5,0 +5,0 @@ "main": "index.js",

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