find-my-way
Advanced tools
Comparing version 1.8.1 to 1.8.2
19
index.js
@@ -279,8 +279,2 @@ 'use strict' | ||
// if exist, save the wildcard child | ||
if (currentNode.wildcardChild !== null) { | ||
wildcardNode = currentNode.wildcardChild | ||
pathLenWildcard = pathLen | ||
} | ||
var node = currentNode.find(path[0], method) | ||
@@ -300,2 +294,7 @@ if (node === null) { | ||
if (kind === 0) { | ||
// if exist, save the wildcard child | ||
if (currentNode.wildcardChild !== null) { | ||
wildcardNode = currentNode.wildcardChild | ||
pathLenWildcard = pathLen | ||
} | ||
currentNode = node | ||
@@ -309,2 +308,8 @@ continue | ||
// if exist, save the wildcard child | ||
if (currentNode.wildcardChild !== null) { | ||
wildcardNode = currentNode.wildcardChild | ||
pathLenWildcard = pathLen | ||
} | ||
// parametric route | ||
@@ -370,2 +375,4 @@ if (kind === 1) { | ||
} | ||
wildcardNode = null | ||
} | ||
@@ -372,0 +379,0 @@ } |
{ | ||
"name": "find-my-way", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "Crazy fast http radix based router", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
86736
21
2527