Comparing version 6.1.3 to 6.1.4
{ | ||
"name": "wayfarer", | ||
"version": "6.1.3", | ||
"version": "6.1.4", | ||
"description": "Composable trie based router", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -29,5 +29,7 @@ const mutate = require('xtend/mutable') | ||
// if node is a name match, set name and append to ':' node | ||
if (!trie.nodes[':']) { | ||
if (!trie.nodes['$$']) { | ||
node = { nodes: {} } | ||
trie.nodes[':'] = node | ||
trie.nodes['$$'] = node | ||
} else { | ||
node = trie.nodes['$$'] | ||
} | ||
@@ -68,3 +70,3 @@ trie.name = route.replace(/^:/, '') | ||
params[trie.name] = route | ||
return search(index + 1, trie.nodes[':']) | ||
return search(index + 1, trie.nodes['$$']) | ||
} else { | ||
@@ -71,0 +73,0 @@ // no matches found |
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
13067
146