route-node
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -0,1 +1,11 @@ | ||
<a name="3.4.2"></a> | ||
## [3.4.2](https://github.com/troch/route-node/compare/v3.4.1...v3.4.2) (2018-10-16) | ||
### Bug Fixes | ||
* fix TypeError when there is no match for path ([338df8c](https://github.com/troch/route-node/commit/338df8c)) | ||
<a name="3.4.1"></a> | ||
@@ -2,0 +12,0 @@ ## [3.4.1](https://github.com/troch/route-node/compare/v3.4.0...v3.4.1) (2018-10-04) |
@@ -159,2 +159,5 @@ 'use strict'; | ||
} | ||
else { | ||
remainingPath = segment; | ||
} | ||
if (!strictTrailingSlash && !child.children.length) { | ||
@@ -161,0 +164,0 @@ remainingPath = remainingPath.replace(/^\/\?/, '?'); |
@@ -157,2 +157,5 @@ import { build, omit, parse } from 'search-params'; | ||
} | ||
else { | ||
remainingPath = segment; | ||
} | ||
if (!strictTrailingSlash && !child.children.length) { | ||
@@ -159,0 +162,0 @@ remainingPath = remainingPath.replace(/^\/\?/, '?'); |
@@ -619,2 +619,5 @@ (function (global, factory) { | ||
} | ||
else { | ||
remainingPath = segment; | ||
} | ||
if (!strictTrailingSlash && !child.children.length) { | ||
@@ -621,0 +624,0 @@ remainingPath = remainingPath.replace(/^\/\?/, '?'); |
@@ -63,4 +63,8 @@ import { omit, parse } from 'search-params' | ||
// regexp character. | ||
if (segment.toLowerCase().indexOf(consumedPath.toLowerCase()) === 0) { | ||
if ( | ||
segment.toLowerCase().indexOf(consumedPath.toLowerCase()) === 0 | ||
) { | ||
remainingPath = segment.slice(consumedPath.length) | ||
} else { | ||
remainingPath = segment | ||
} | ||
@@ -67,0 +71,0 @@ |
{ | ||
"name": "route-node", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "A package to create a tree of named routes", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/route-node.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
2630
129115
17